Get help.
gpresult [/?] C:\>gpresult
| Shows the help file if no switches are included or the /? switch is used. |
Display summary data.
| Displays Resultant Set of Policy (RSoP) summary data.
The summary data doesn’t include any settings. |
Send results to an XML file.
/x file.xml C:\>gpresult /x gpresultsx.xml
| Saves
the report in XML format.
You can then open the file in Internet Explorer by just entering the
filename at the command prompt or double-clicking it in Windows
Explorer. |
Send to an HTML file.
/h file.html C:\>gpresult /h gpresultsh.html
| Saves
the report in HTML format. You can then open the file in Internet
Explorer by just entering the filename at the command prompt or
double-clicking it in Windows Explorer.
Figure 1 shows what this file looks like in Internet Explorer. |
Overwrite existing file.
/f C:\>gpresult /x gpresultsx.xml /f C:\>gpresult /h gpresultsh.html /f
| Forces gpresult to overwrite an existing file. This is used with the /x or /h command depending on whether you want an XML or HTML format. |
Verbose mode.
| Returns results on the local computer in verbose mode.
This provides additional details on Group Policy settings. |
Super verbose mode.
| Specifies that the super-verbose mode is used.
This provides significantly more details on Group Policy settings than the verbose mode.
Tip
This output can provide insight into the settings that are applied.
|
Retrieve GPO settings from another computer.
/s computername C:\>gpresult /z /s dc1
| Specifies a remote system to connect to for Group Policy details.
Note
The /s option can be used only when also using one of the following switches: /x, /h, /r, /v, or /z.
|
Run the command with a different user.
/u user | domain\user C:\>gpresult /s dc1 /z /u pearson\administrator
| Runs gpresult with a different user account. You are prompted to provide the password.
Note
The u option can only be used when also using the s switch, which also requires one of the following switches: /x, /h, /r, /v, or /z.
|
Run the command with a different user without prompting for a password.
/u user | domain\user /p password C:\>gpresult /s dc1 /z /u pearson\administrator /p P@ssw0rd
| Runs gpresult with a different user account without prompting for a password. |
Specify only user or computer settings.
/scope user | computer C:\>gpresult /z /scope user C:\>gpresult /z /scope compute
| You can retrieve only the user or only the computer settings with the /scope switch. |