Link to home
Start Free TrialLog in
Avatar of R W
R WFlag for United States of America

asked on

Gp result check on multiple computers

Is there any way I can run a gp check on multiple machines at once and generate a report to make sure it is being applied correctly? This is our screensaver/idle lock out. Some people say it works others say it doesn't and there is to many to just do one at a time. All of our machines are Windows 7
Avatar of Lionel MM
Lionel MM
Flag of United States of America image

You can use a batch file that runs gpresult. You can set it up to run through a list of users you want gpresult on and have each result output to a text file. Something like this--then you can change the userList.csv as needed as the users you want to check changes
for /F "tokens=1=," %%i in (C:\Utils\UserList.csv) do  GPRESULT /USER %%1 /V
gpresult /? will show you other options that provide more details
Avatar of R W

ASKER

%%i was unexpected at this time.
my bad--copy and paste mistake
correct
for /F "tokens=1" %%i in
wrong
for /F "tokens=1=,"
ASKER CERTIFIED SOLUTION
Avatar of Dirk Kotte
Dirk Kotte
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial