Windows server and Windows XP – How to troubleshoot Group Policy from the command line using GPRESULT
Posted by aidas | Posted in Group policy, Windows 2003, Windows 2008, Windows XP | Posted on 26-07-2010
0
If you are trying to determine why Your new GPO policy is not being applied as expected, one of first things you should do is examine the Resultant Set of Policy (RSoP) for the user and computer experiencing problems with policy settings on Your Windows Server 2008.
Using the Gpresult command-line utility, you can view RSoP.
Gpresult command provides details on the following:
- special settings applied for folder redirection, software installation, disk quota, IPSec, and scripts;
- last time Group Policy was applied;
- domain controller from which policy was applied and the security group memberships for the computer and user accounts;
- complete list of GPO that were applied and complete list of GPO that were not applied because of filters.
Gpresult has the following syntax:
gpresult /s [ComputerName] /user [Domain\UserName]
[ComputerName] – is the name of the computer that you want to log policy results for
[Domain\UserName] – domain user that you want to log policy results for
Lets for example view the RSoP for server named “TestServer1” and the user “testuser1” in the “test.lan” domain. In this case open command line on Your Windows server and type:
gpresult /s TestServer1 /user test.lan\testuser1
Also You can view more detailed output by using one of the two verbose options.
/v parameter turns on verbose output and results are displayed only for policy settings in effect
/z parameter turns on verbose output with settings for policy settings in effect and all other GPOs that have the policy set
In additionYou can create an HTML report using the /h parameter or an XML report using the /x parameter.
Have fun !
