GPRESULT Command: Syntax, Parameters, Examples




GPRESULT is a command line tool that displays the Resultant Set of Policy (RSoP) information for a target user and computer. GPRESULT works on local and remote computers.

In this guide, I will cover GPRESULT syntax, parameters and real examples you can apply in your day to day job as a Windows admin.


The syntax of GPRESULT is:

GPRESULT [/S ComputerName [/U username [/P [password]]]] [/SCOPE scope] [/USER targetusername] [/R | /V | /Z] [(/X | /H)  [/F]]

Each parameter (switch) in the syntax affects the output of GPRESULT. In the next section, I will explain what each switch means.

Sponsored Content

GPRESULT Parameters

The table below explains what each parameter means and how it can be used.

1/S ComputerNameSpecifies a remote system to connect to.
2/U [domain]\userUsed to enter the user with the right permission to connect to the computer specified with the /S switch.
3/P [password]Specifies the password for the user above
4/SCOPE scopeSpecifies whether to display user or the computer settings. Valid values: “USER”, “COMPUTER”.
5/USER [domain]userSpecifies the user to display RSoP data for.
6/X <filename>Report is saved in XML format. Report is saved at the location specified by the parameter. <Filename> must be specified. If the path is not specified, the file will be saved in the directory the command is executed from.
7/H <filename>Saves the report as a HTML file at the location and with the <filename>. File name is required.
8/FForces GPResult to overwrite existing files.
9/RDisplays RSoP summary data.
10/VSpecifies that verbose information should be displayed. Provides additional information
11/ZOutputs additional settings data (Super-verbose).
12/?Displays help information

How to Use GPRESULT (Examples)

Below are some examples of how to use GPResult.

Use GPRESULT /H for HTML Reports

The /H parameter of GPResult command is used to generate RSoP in HTML format. Here is an example

GPRESULT /H GPReport.html 
GPResult Command: Syntax, Parameters, Examples

The command will create a HTML RSoP report with default values. Report is saved in the location the command was executed. In this instance, my drive C.

To save GPResult output in a different location, use the command below:

GPRESULT /H c:\RSoP\GPReport.html
The full path must exist. If the path does not exist you will receive an error message ERROR: The system cannot find the path specified.

The report is created in the path.

GPResult Command: Syntax, Parameters, Examples

How to Create RSoP XML Report

To output your report in XML, use this command:

 GPRESULT /X c:\RSoP\GPReport.xml 
You must include .XML file extension in the file.

The XML file is in the location.

GPResult Command: Syntax, Parameters, Examples

How to Run GPRESULT on a Remote Computer

Use the /S parameter as shown below:


Here is the result

Options /U, /P, /R, /V, /Z cannot be specified along with /X, /H.

You can pipe the last GPRESULT command to a text file as shown below:


The text file output

How to Show Computer Settings from GPRESULT

Use the /SCOPE switch as shown below:


The result

Sponsored Content


Getting the RSoP information of a computer or user, showing the Group Policy settings applied to the computer is very useful for troubleshooting GPO issues. I hope this has been helpful to you.

If you have any question or comment use the “leave a Reply” form at the end of the page. Alternatively, you could share your experience so other readers can benefit from it.

Other Helpful Guides

Additional Resources and References


Please enter your comment!
Please enter your name here


network discovery keeps turning off server 2016

How to Fix Network Discovery If it Keeps Turning Off in Server 2016

Does network discovery keep turning off in your Windows server 2016? It is likely that one of its dependent services is not...
how to install windows 10 1903 update manually

How to Install Windows 10 1903 Update Manually

Windows 10 1903 Update was released in May, 2019. But some users are not yet offered the update via automatic update. The...
spotify web player not working

Spotify Web Player Not Working [Fixed]

Introduction Spotify Web Player may stop working for you with the following error messages: "Spotify Web Player an Error...
DISM.exe /Online /Cleanup-Image /Restorehealth

DISM.exe /Online /Cleanup-Image /Restorehealth Explained

What is DISM.EXE /Online /Cleanup-image /RestoreHealth? "DISM.exe /Online /Cleanup-Image /Restorehealth" is a DISM command that repairs issue with the...
DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...


Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
What is the Difference Between PowerShell and CMD?

Windows Powershell vs CMD: Differences and Similarities

Introduction This short guide compares Windows PowerShell vs CMD (Windows command prompt). I will cover the history and nature...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...


DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...
most useful powershell commands

18 Most Useful Powershell Commands for Windows Admins

Introduction This guide will cover 18 most useful powershell commands for sys admins. PowerShell commands,...
bullet points in excel

4 Easy Ways to Insert Bullet points in Excel

Introduction Inserting bullet points in excel is not as straightforward as adding bullet points in Word. This guide demonstrates...
Excel Not Equal

Excel “Not Equal” Comparison Operator: Syntax, Examples

Introduction Excel "Not Equal" is a Comparison operator that compares two values. "Not Equal" will return TRUE if the...
Powershell Substring

How to Extract a Powershell Substring from a String

Introduction A substring is a part of a string. You can create a PowerShell substring from a string using...


disable cortana windows 10 featured

How to Disable Cortana in Windows 10 (2 Methods)

Introduction Some Windows 10 users may not like Cortana. Solution? Disable Cortana. You are probably reading this because you...
bootrec /fixboot access is denied

How to Fix BootRec /FixBoot Access is Denied Error in Windows 10

Introduction BootRec /FixBoot Access is Denied Error in Windows 10? This error is likely caused by corrupt EFI directory.
Reset Windows 10

How to Reset Windows 10 (2 Methods)

Introduction If your Windows 10 is broken, one available way to fix it is to use Windows 10 reset....
system restore windows 10

How to Enable and Use System Restore in Windows 10

Introduction System restore in windows 10 is a very important tool that is probably ignored by most users. But...
windows has stopped this device code 43

How to Fix Windows Has Stopped this Device Code 43 Error

Introduction Sometimes you may receive "Windows has stopped this device code 43" error. This error is likely to come...
Windows could not automatically detect this network's proxy settings

How to Fix “Windows Could not Automatically Detect this Network’s Proxy Settings”

Introduction You suddenly lose the ability to connect to the internet. Then you run network troubleshooter and it returns...
printer offline

5 Ways to Restore Your Printer Online If Status is Offline

Introduction Is your printer offline? Setting it online is very simple but sometimes it is more than just setting...

How to Fix “BootMgr is Missing” Error in Windows 10

Introduction If you receive Fix "BootMgr is missing" Error in Windows 10, the default response is panic! But you...
windows 10 search featured

How to Fix Windows 10 Search If it Stops Working

Introduction Are you having troubles with Windows 10 search? Apparently, it is a fairly common problem with a number...
oooops, something went wrong. reload

How to Fix “Oooops something went wrong. reload” Spotify Error

Introduction If you receive "Oooops something went wrong. reload" Spotify error, do not panic. The fix is simpler than...


Group Policy, GPResult, Group Policy Object and RSoP

Group Policy, Group Policy Object and RSoP Explained

Introduction This guide gives an overview of Group Policy, RSoP (Resultant Set of Policy) and Group Policy Objects.
DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...
Transfer Schema Master Role

Transfer Schema Master Role With MMC or NTDSUTIL Command Tool

Introduction There are situations when an administrator may need to transfer the schema master role from one Domain Controller...

How to Calculate Standard Deviation in Excel

Introduction Standard Deviation is a measure of how dispersed values are from their mean (average). You can calculate standard...
Active Directory Domain Services

Active Directory Concepts & Administration

Introduction Active Directory (AD) is a Microsoft directory service that stores information about objects in a network. AD also...

By using this website you agree to accept our Privacy Policy and Terms & Conditions