Windows gpresult Command Tutorial

Windows operating systems provide the gpresult tool or command in order to display Resultant Set of Policy or RSoP information for a remote user and computer. This tool reports and displays group policy objects applied to the user and computer. This command can be also used for remote computers by providing the required credentials.

gpresult Help

The gpresult command help information can be listed or displayed running gpresult without any option or parameter.

gpresult
gpresult Help

Display All Applied GPO for User and Computer via Command Line Interface

The most popular use case for the gpresult is running for the current system for both user and computer policies. The /r option is provided in order to display RSoP summary data.

> gpresult /r
List GPOs for User and System

Display GPO For User

Only user GPOs can be displayed by using the /scope:user option.

> gpresult /r /scope:user

Display GPO For Computer

Computer or system-specific GPOs can be displayed with the following command by using the /scope:computer option.

> gpresult /r /scope:computer

Display GPOs Applied In The Remote Computer

The gpresult command can be used to display GPOs for remote systems. The /s option is used to specify a remote system with computer name, domain name, or IP address.

> gpresult /s pc1.windowstect.com /r

Alternatively the remote system IP address can be specified like below.

> gpresult /s 192.168.1.10 /r

Generate HTML Report/Output

The GPO configuration for the users and computer can be displayed in a more human-friendly and pretty print way by using the HTML output. The /h can be used to generate HTML reports. The name or path of the report should be also provided.

> gpresult /r /h D:\GPO_Report.html

Generate Text Report/Output

An alternative way to export gpresult command output is to use text files. The gpresult command output can be stored as a text file by specifying the text file name or path like below.

> gpresult /r D:\GPO_Report.txt
See also  How To Open Microsoft Edge In Windows?

Leave a Comment