Link to home
Start Free TrialLog in
Avatar of techlabtest
techlabtest

asked on

batch file or vb script

Hello Guys.

I need to launch gpupdate /force on 100 pc and i want to do it in hidden mode.

How can i do it through my domain controller (Server2003 sp2)

Thanks
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

batch script which loop through computers.txt run gpuupdate remotely:
For /f "Tokens=*" %%a in (computers.txt) Do (
SET Comp_name=%%a
Psexec.exe \\%comp_name% Gpupdate.exe /Target:User /force
Psexec.exe \\%comp_name% Gpupdate.exe /Target:Computer /force
}

Open in new window


based on http://support.microsoft.com/kb/556027
ASKER CERTIFIED SOLUTION
Avatar of Sandesh Dubey
Sandesh Dubey
Flag of India 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
Avatar of techlabtest
techlabtest

ASKER

i have given users access to local domain admin through restricted groups and i need to launch gpupdate /force and also restart the pc...