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.

Advertisements


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

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

  • Was this post Helpful?
  • YesNo

LEAVE A REPLY

Please enter your comment!
Please enter your name here

FEATURED POSTS

How to Add Bullet Points in Google Slides

How to Add Bullet Points in Google Slides (Android or iOS Apps or PC)

This Itechguide teaches you how to add bullet points in Google Slides. The guide offers steps to add bullet points in Google...
How to Create a Business Facebook Page without a Personal Account

How to Create a Business Facebook Page without a Personal Account

This Itechguide teaches how to create a business Facebook page without a personal account. There could be a...
How to Wrap Text in Google Sheets

How to Wrap Text in Google Sheets (from a PC or the Apps)

This Itechguide teaches you how to wrap text in Google Sheets. The guide offers steps to wrap text in Google Sheets from...
How to Change Birthday on Facebook

How to Change Birthday on Facebook (from the App or PC)

This Itechguide teaches you how to change birthday on Facebook. The guide contains steps to change birthday on Facebook from the Facebook...
Best Thrillers on Netflix

The 10 Best Thrillers on Netflix

The thrillers on Netflix is quite a large number of movies. Knowing the best thrillers to watch can be a challenge.

ADVERTISEMENTS

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

BEST OF ITECHGUIDES

powershell windows 10

Frequently Asked Powershell Windows 10 Questions

This guide brings the top 8 Frequently asked Powershell Windows 10 questions. Get answers to common Windows 10 PowerShell FAQs…
How to Hide Rows in Google Sheets

How to Hide Rows in Google Sheets (from PC or the App)

Introduction This guide demos how to hide rows in Google Sheets. The guide has two sections:
Active Directory Domain Services

Active Directory Domain Services: Installation & Configuration

What is Active Directory Domain Services? Active Directory Domain Services (AD DS) is at the core of Microsoft's Directory...
windows 10 start menu not working featured

How to Restore Windows 10 Start Menu if it Stops Working

Introduction Windows 10 start menu not working? You are not alone! A number of Windows 10 users report that...
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...

ADVERTISEMENTS

RECENT POSTS

How to Logout of Amazon App

How to Logout of Amazon App (from Android, iPhone or Windows 10)

This Itechguide teaches you how to logout of Amazon app. The guide offers steps to logout of Amazon app for Android, for...
How to Turn off YouTube Notifications

How to Turn off YouTube Notifications (PC or YouTube Apps)

This Itechguide teaches you how to turn off YouTube notifications. The guide offers steps to turn off YouTube notifications from a PC...
How to Change YouTube Thumbnail

How to Change YouTube Thumbnail (PC or YouTube Studio App)

This Itechguide teaches you how to change YouTube thumbnail. The guide offers steps to change YouTube thumbnail from a PC or...
How to Add Bullet Points in Google Slides

How to Add Bullet Points in Google Slides (Android or iOS Apps or PC)

This Itechguide teaches you how to add bullet points in Google Slides. The guide offers steps to add bullet points in Google...
How to Change Shipping Address on Amazon

How to Change Shipping Address on Amazon

This Itechguide teaches you how to change shipping address on Amazon. The guide offers steps to change shipping address on Amazon:

MUST READ

WSCRIPT and CSCRIPT Commands: Syntax, Parameters, Examples

WSCRIPT and CSCRIPT Commands: Syntax, Parameters, Examples

Introduction WSCRIPT is the Windows-based version of Windows Script Host while CSCRIPT is the command-prompt-based version. This guide...
Check Disk (CHKDSK) Windows 10

Check Disk (CHKDSK) in Windows 10: Syntax, Parameters, Examples

Introduction Check Disk (CHKDSK) is a Windows 10 command tool that checks a disk for errors, fixes errors, recovers...
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.
active directory interview questions

35 Active Directory Interview Questions and Answers

I have compiled 35 Active Directory interview questions and answers. Where necessary, I have also provided additional information to help you understand...
RAID 5 vs RAID 6

RAID 5 vs RAID 6: Differences, Benefits and Disadvantages

What is RAID 5 vs RAID 6? RAID 5 and RAID 6 uses striping with distributed parity technique. However,...

LATEST DEALS

Exclusive Student Offer_Save 10% on selected Surface devices

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