Export (0) Print
Expand All
Expand Minimize

How to Use the Group Policy Results (GPResult.exe) Command Line Tool

Published: October 25, 2001

Intended for administrators, the Group Policy Results (GPResult.exe) command line tool verifies all policy settings in effect for a specific user or computer. Administrators can run GPResult on any remote computer within their scope of management. By default, GPResult returns settings in effect on the computer on which GPResult is run.

To run GPResult on your own computer:

  1. Click Start, Run, and enter cmd to open a command window.

  2. Type gpresult and redirect the output to a text file as shown in Figure 1 below:

    Directing GPResult data to a text file

    Figure 1. Directing GPResult data to a text file
  3. Enter notepad gp.txt to open the file. Results appear as shown in the figure below.

    Verifying policies with GPResult

    Figure 2. Verifying policies with GPResult

Administrators can also direct GPResult to other users and computers. Complete parameters of the tool are shown in the table below.

Using GPResult Command Line Tool

Parameters

Function

/s Computer

Specifies the name or IP address of a remote computer. (Do not use backslashes.) The default is the local computer.

/u Domain\User

Runs the command with the account permissions of the user that is specified by User or Domain\User. The default is the permissions of the current logged-on user on the computer that issues the command.

/p Password

Specifies the password of the user account that is specified in the /u parameter.

/user TargetUserName

Specifies the user name of the user whose RSOP data is to be displayed.

/scope {user|computer}

Displays either user or computer results. Valid values for the /scope parameter are user or computer. If you omit the /scope parameter, gpresult displays both user and computer settings.

/v

Specifies that the output display verbose policy information.

/z

Specifies that the output display all available information about Group Policy. Because this parameter produces more information than the /v parameter, redirect output to a text file when you use this parameter (for example, gpresult /z >policy.txt).

/?

Displays help at the command prompt.

Related Links
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft