IT tutorials
 
Windows
 

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us