Gpresult Command In Windows Server 2008

In this article I am going to explain about Gpresult command in Windows Server 2008 operating system and also explain it's related syntax.
  • 2813

Introduction

The Gpresult.exe command line tool enables you to create and display Result Set of Policy (RSoP) information for a remote user and computer. It also provides general information about the operating system, user and computer. This command is available in Windows Server 2008, Windows 7, Windows Server 2003, Windows Server 2008 R2, Windows Vista and Windows XP. Basic syntax for using this command is given below.

Syntax

gpresult [/s <COMPUTER> [/u <USERNAME> [/p [<PASSWORD>]]]] [/user [<TARGETDOMAIN>\] <TARGETUSER>] [/scope {user | computer}] {/r | /v | /z | [/x | /h] <FILENAME> [/f] | /?}

Parameter List

Parameter Description
/s <COMPUTER> Specifies the name or IP address of remote system.
/u <USERNAME> Runs the command with the account permissions of the user, specified by user or domain\user. The default is the permissions of the current logged on user on the computer issuing the command.
/p [<PASSWORD> Assigns the password of the user account. If this parameter is omitted than user is prompted to enter password.
/user [ <TARGETDOMAIN>\<TARGETUSER> Specifies the user name of the user whose RSoP data is to be displayed.
/scope {user | computer} Displays either user or computer results. If you omit the /scope parameter, RSOP information will be displayed for both the user and the computer.
/r Displays summary of RSOP information.
/v Verbose policy information is displayed.
/z Output displays all available information about Group Policy.
/x | /h] <FILENAME> Saves the report in XML format at the location and with the file name specified
by the <filename> parameter.
/f Overwrite the filename that is specified in /x or /h parameter.

Example

 Retrieves RSoP data User11 on the computer issuing the command, type:

gpresult /user User11 /scope computer

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.