Skip to content

Windows GPRESULT command

The Windows gpresult command is a powerful tool used to generate Group Policy Result reports on a local or remote computer. It provides detailed information about applied Group Policies, settings, and configurations. By running gpresult with various parameters, users can troubleshoot Group Policy-related issues, identify misconfigurations, and verify policy settings. This command is essential for system administrators to ensure proper Group Policy application and compliance across their network.

Terminal window
gpresult [/S system [/U username [/P [password]]]] [/SCOPE {user | computer}] [/USER targetusername] [/R | /V | /Z | /X filename] [/H htmlfilename | /F] [/?]
OptionDescription
/SSpecifies the remote system to connect to.
/USpecifies the user context under which the command should execute.
/PSpecifies the password for the given user context.
/SCOPESpecifies the scope of the command (user or computer).
/USERSpecifies the username for which to display policies.
/RDisplays Resultant Set of Policy for the user or computer.
/VSpecifies verbose output.
/ZDisplays all available information.
/XSaves the report in XML format.
/HSaves the report in HTML format.
/FForces gpresult to apply user settings and policy processing.
/?Displays the Help information.
ParameterDescription
systemSpecifies the remote system to connect to.
usernameSpecifies the user context under which the command should execute.
passwordSpecifies the password for the given user context.
targetusernameSpecifies the username for which to display policies.
filenameSpecifies the file name to save the XML or HTML formatted output.
htmlfilenameSpecifies the file name to save the HTML formatted output.
Terminal window
gpresult /scope user /v

This command displays the Group Policy settings for the current user in verbose mode.

Terminal window
gpresult /scope computer /v

This command displays the Group Policy settings for the current computer in verbose mode.

Terminal window
gpresult /h C:\gpresult_output.html

This command saves the Group Policy result to an HTML file named “gpresult_output.html”.

Terminal window
gpresult /r /scope user

This command displays only the applied Group Policy Objects for the current user.

To use the gpresult command in Windows, execute the following command:

Terminal window
gpresult /r

How can I save the gpresult output to a file?

Section titled “How can I save the gpresult output to a file?”

To save the gpresult output to a text file, use the following command:

Terminal window
gpresult /r > C:\path\to\output.txt

How do I force gpresult to only display user policy settings?

Section titled “How do I force gpresult to only display user policy settings?”

To force gpresult to only display user policy settings, run the following command:

Terminal window
gpresult /scope:user

How can I generate the gpresult report in HTML format?

Section titled “How can I generate the gpresult report in HTML format?”

To generate the gpresult report in HTML format, use the following command:

Terminal window
gpresult /h C:\path\to\output.html

To troubleshoot gpresult errors, make sure to specify the user or computer for which you want to retrieve the group policy results by using the necessary parameters.

How do I view all available options for the gpresult command?

Section titled “How do I view all available options for the gpresult command?”

To view all available options for the gpresult command, you can use the help flag as follows:

Terminal window
gpresult /?
  • To display Resultant Set of Policy (RSoP) data for a user or computer
  • To troubleshoot Group Policy settings and conflicts
  • To verify the applied Group Policy settings on a specific user or computer
  • To check the effect of policy changes on user or computer configurations
  • To analyze Group Policy settings and their impact on the system