GPRESULT Command: Syntax, Parameters, Examples

-

|

What is GPRESULT?

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.

GPRESULT Syntax

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.

Advertisement

GPRESULT Parameters

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

S/NParameterDescription
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
Tip
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 
Tip
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:

GPRESULT /S DCSRV1 /U ITECHGUIDES\ADMINISTRATOR /R

Here is the result

Tip
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:

GPRESULT /S DCSRV1 /U ITECHGUIDES\ADMINISTRATOR /R > E:\RSoP\GPResult.txt

The text file output

How to Show Computer Settings from GPRESULT

Use the /SCOPE switch as shown below:

GPRESULT /R /SCOPE COMPUTER

The result

Advertisement

Conclusion

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

FEATURED POSTS

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 19H2 Preview Build

Introduction If you are a member of Windows 10 Insider Program you can install Windows 10 19H2 Preview Build....

How to Sign in to Windows 10 with a Microsoft Account

Introduction When you installed Windows 10 you may have created and signed in with a local account. You can...
Disable IPv6 in Windows 10

How to Disable IPv6 in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to disable IPv6 in Windows 10: Disable IPv6 from...

Advertisement

TRENDING POSTS

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...

Advertisement

BEST OF ITECHGUIDES

Windows 7 Safe Mode: How to Start Windows 7 in Safe Mode

Introduction If need to perform some advanced troubleshooting on Windows 7, then you may need to start Windows 7...
Benefits and Shortcomings of RAID 10

Benefits and Shortcomings of RAID 10: Quick Reference Guide

Introduction When you stripe (RAID 0) two mirrored arrays (RAID 1) arrays you produce a RAID 10. This quick...

How to Fix DISM Error 87 in Windows Server 2016 and Windows 10

Introduction DISM Error 87 in Windows Server 2016 can be cause by any of the following:
WhatsApp web

How to Use WhatsApp Web from a Browser on Your Computer

Introduction WhatsApp web is a WhatsApp service that allows you to use WhatsApp from a browser on your computer....
DISM error 50: dism doesn't support servicing windows PE with the /online option

How to Fix DISM Error 50 in Windows 10 and Windows Server 2016

Introduction Dis you received DISM error 50: "DISM doesn't support servicing windows PE with the /online option"? This is...

RECENT POSTS

How to Enable Hyper-V in Windows 10 (3 Methods)

How to Enable Hyper-V in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Hyper-V in Windows 10. To install Hyper-V...
RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

Introduction Starting from October 2018 (1809) update, RSAT Tools became part of Windows 10. From this version of Windows...

How to Enable RSAT for Active Directory in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Active Directory in Windows 10. It is not exactly enabling "Active...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 1909 (19H2) Preview Build

Introduction Windows 10 1909 Preview is available for Windows Insiders. Made available early September, 2019 you have to be...
How to Install RSAT in Windows 10 (3 Methods)

How to Install RSAT in Windows 10 (3 Methods)

Introduction This guide demos how to Install RSAT in Windows 10. Starting with Windows 10...

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...
Configure Map Network Drive with Group Policy

Map Network Drive in Windows 10 with Group Policy

Introduction This guide demos how to map network drive with group policy. This guide is...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Download Windows 10 ISO with Media Creation Tool

How to Download Windows 10 ISO with Media Creation Tool

Introduction This guide demos the steps to download Windows 10 ISO. You can download Windows 10 ISO with Media...

How to Install Windows 10 from Network Boot (Via WDS Server)

Introduction This guide demos how to install Windows 10 from network boot. The steps discussed in...

Advertisement

MUST READ

windows was unable to complete the format

Windows was Unable to Complete the Format [Fixed]

Introduction When you try to format a USB stick or SD memory card you may receive the message "Windows...
Windows Server 2016 Interview Questions and Answers

Windows Server 2016 Interview Questions and Answers

Introduction This guide provides common Windows Server 2016 interview questions and answers. The questions are...

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...
Hotmail email (outlook.live.com)

Hotmail Email (Outlook.com Email): Your Definitive Guide

Introduction I suppose the first question on your mind is, "what happened to Hotmail email?" This is because when...
windows server 2016 recovery mode

2 Ways to Boot Windows Server 2016 to Recovery Mode

Introduction You can boot Windows Server 2016 Recovery Mode in two ways: Without installation media...

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