Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

gpresult

Feedback

In this article

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.

Syntax

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.

Parameters

ParameterDescription
/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.
/fForcesgpresult to overwrite the file name that is specified in the/x or/h option.
/rDisplays RSoP summary data.
/vDisplays verbose policy information. This includes detailed settings that were applied with a precedence of 1.
/zDisplays 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.

Remarks

  • 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.

Examples

To retrieve RSoP data for only the remote usermaindom\targetuser, on the computersrvmain, enter:

gpresult /s srvmain /user maindom\targetuser /scope user /r

To 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.txt

To 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 /r

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?