Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/future4tech/public_html/wp-includes/functions.php on line 6114
GPRESULT.exe – Windows CMD Command - Future4Tech

GPRESULT.exe – Windows CMD Command

Display Resultant Set of Policy information for a remote user and computer.

Syntax
       gpresult [/s Computer [/u [Domain\]UserName [/p [Password]]]]
          [/user [TargetDomain\]TargetUser] [/scope {user | computer}]
             [/r | /v | /z] [[/x | /h] FileName [/f]]

Key:
   /s        The name or IP address of a remote computer. Do not use backslashes.
             (default = the local computer)

   /u [\]    Run the command with the credentials of the specified user.
             (default = the currently logged on user)

   /p []     The password of the user account that is provided in the /u parameter.
             If /p is omitted, gpresult prompts for the password.

   /user [\] 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 userand the computer.

   [/x | /h] Save the report in either XML (/x) or HTML (/h) format at the location and
             with the file name specified by the FileName parameter.
             Cannot be used with /u, /p, /r, /v, or /z.

   /f        Force gpresult to overwrite the file name specified in the /x or /h option.

   /r        Display RSoP summary data.

   /v        Display verbose policy information, including additional detailed settings that
             have been applied with a precedence of 1.

   /z        Display all available information about Group Policy, including detailed settings
             that have been applied with a precedence of 1 and higher.

   /?        Display help
The /f and /r options were introduced in Windows Vista/7/2008
Examples

C:\> gpresult /z >C:\batch\policy.txt
C:\> gpresult /user targetusername /scope computer /r
C:\> gpresult /s srvmain /u F4Tdom\hiropln /p p@ssW23 /user targetusername /scope user
C:\> gpresult /s srvmain /u F4Tdom\hiropln /p p@ssW23 /user targetusername /z >policy.txt
C:\> gpresult /s srvmain /u F4Tdom\hiropln /p p@ssW23

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *


Notice: ob_end_flush(): Failed to send buffer of zlib output compression (0) in /home/future4tech/public_html/wp-includes/functions.php on line 5464