This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Displays the Resultant Set of Policy (RSoP) information for a remote user and computer. To use RSoP reporting for remotely targeted computers through the firewall, you must have firewall rules that enable inbound network traffic on the ports.
gpresult [/s <system> [/u <username> [/p [<password>]]]] [/user [<targetdomain>\]<targetuser>] [/scope {user | computer}] {/r | /v | /z | [/x | /h] <filename> [/f] | /?}Note
Except when using/?, you must include an output option,/r,/v,/z,/x, or/h.
| Parameter | Description |
|---|---|
/s<system> | Specifies the name or IP address of a remote computer. Don't use backslashes. The default is the local computer. |
/u<username> | Uses the credentials of the specified user to run the command. The default user is the user who is signed in to the computer that issues the command. |
/p[<password>] | Specifies the password of the user account that is provided in the/u parameter. If/p is omitted,gpresult prompts for the password. The/p parameter can't be used with/x or/h. |
/user[<targetdomain>\]<targetuser>] | Specifies the remote user whose RSoP data is to be displayed. |
/scope{user | computer} | Displays RSoP data for either the user or the computer. If/scope is omitted,gpresult displays RSoP data for both the user and the computer. |
[/x | /h] <filename> | Saves the report in either XML (/x) or HTML (/h) format at the location and with the file name that is specified by thefilename parameter. Can't be used with/u,/p,/r,/v, or/z. |
| /f | Forcesgpresult to overwrite the file name that is specified in the/x or/h option. |
| /r | Displays RSoP summary data. |
| /v | Displays verbose policy information. This includes detailed settings that were applied with a precedence of 1. |
| /z | Displays all available information about Group Policy. This includes detailed settings that were applied with a precedence of 1 and higher. |
| /? | Displays help at the command prompt. |
Group Policy is the primary administrative tool for defining and controlling how programs, network resources, and the operating system operate for users and computers in an organization. In an active directory environment, Group Policy is applied to users or computers based on their membership in sites, domains, or organizational units.
Because you can apply overlapping policy settings to any computer or user, the Group Policy feature generates a resulting set of policy settings when the user signs in. Thegpresult command displays the resulting set of policy settings that were enforced on the computer for the specified user when the user signed in.
Because/v and/z produce much information, it's useful to redirect output to a text file (for example,gpresult/z >policy.txt).
On ARM64 versions of Windows, only thegpresult in SysWow64 works with the/h parameter.
To retrieve RSoP data for only the remote usermaindom\targetuser, on the computersrvmain, enter:
gpresult /s srvmain /user maindom\targetuser /scope user /rTo save all available information about Group Policy to a file namedpolicy.txt for only the remote usermaindom\targetuser, on the computersrvmain, enter:
gpresult /s srvmain /user maindom\targetuser /z > policy.txtTo display RSoP data for the signed-in user,maindom\hiropln with the passwordp@ssW23, for the computersrvmain, enter:
gpresult /s srvmain /u maindom\hiropln /p p@ssW23 /rWas this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?