![]() Note the difference between the /u and /user switches: the /u switch is used to specify user credentials for running the gpresult command, while the /user switch specifies the user account whose policy data will be included in the report. Generates a very verbose report of user and computer policy settings and saves it in a text file. Gpresult /s ComputerName /user Domain\UserName /z > policy.txt Generates the same report as the first example but uses the specified credentials to run the command. ![]() Gpresult /s ComputerName /u domain\UserCred /p /user Domain\UserName /r ![]() Generates the same report as the first example but saves it in an HTML file. Gpresult /s ComputerName /user Domain\UserName /h gpreport.html Lists only user policies from the above report. Gpresult /s ComputerName /user Domain\UserName /r /scope user Lists summary of applied GPOs when the specified user is logged onto the specified computer. Gpresult /s ComputerName /user Domain\UserName /r The following list shows some examples of the switches available with gpresult: The gpresult command can then be used to list the GPOs that are currently applied to the user and/or computer in question. Start by running Gpupdate /force to ensure that the latest policies are applied. Before beginning to test for policy issues, make sure you don’t have unapplied policies that will skew the results.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |