programming4us
 
Windows
 

Windows Server 2008 : Group Policy Command-Line Tools - Viewing Group Policy Settings with gpresult

1/7/2014 8:00:02 PM

You can view current Group Policy settings with the gpresult command. The syntax is

gpresult [switches]

Common switches are shown in the following table.

gpresult SwitchesComments
Get help.
gpresult [/?]
C:\>gpresult

Shows the help file if no switches are included or the /? switch is used.
Display summary data.
/r
C:\>gpresult /r

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.
/v
C:\>gpresult /v

Returns results on the local computer in verbose mode. This provides additional details on Group Policy settings.
Super verbose mode.
/z
C:\>gpresult /z

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.

Tip

You can output the settings to a text file with the redirect command. For example, gpresult /z > gpr.txt sends the output to a text file named gpr.txt.


Figure 1. Group Policy Results in Internet Explorer

The Group Policy Management Console (GPMC) enables you to view these settings in a GUI. Figure 2 shows the GPMC with a Group Policy Results report.

Figure 2. Group Policy Results in the GPMC
 
Others
 
- Windows Server 2008 : Group Policy Overview - Using Loopback Processing, Running Scripts with Group Policy
- Windows Server 2008 : Group Policy Overview - Blocking Inheritance, Enforcing GPOs
- Windows 7 : Updating Software - How to Remove Updates
- Windows 7 : Updating Software - How to Troubleshoot Problems Installing Updates
- Windows 7 : Updating Software - How to Verify Updates
- Windows 7 : BitLocker (part 4) - How to Disable or Remove BitLocker Drive Encryption, Troubleshooting BitLocker Problems
- Windows 7 : BitLocker (part 3) - How to Manage BitLocker Keys on a Local Computer, How to Recover Data Protected by BitLocker
- Windows 7 : BitLocker (part 2) - How to Enable BitLocker Encryption
- Windows 7 : BitLocker (part 1) - How to Use BitLocker with TPM Hardware
- Windows 7 : Encrypting File System (part 3) - How to Recover to an EFS-encrypted File Using a Data Recovery Agent
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- How To Install Android Market & Google Apps On Kindle Fire
- How To Make Ubuntu Look Like Windows 7
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8
- How To Get Microsoft Office 2013 Trial Product Key From Microsoft