2020年8月10日 星期一

GPUpdate /force everytime

 https://community.spiceworks.com/topic/355881-gpupdate-force-everytime


GUIn00b

Thai Pepper

GUIn00b

Jul 6, 2013 at 4:57 AM

I put this batch script called gpupdate_noreboot.bat on a network share:


gpupdate /force /wait:60

and then deployed a Scheduled Task to all computers through Group Policy so I can run it on demand.  That way I can just use the task scheduler from the command prompt targeting whatever computer I want to gpupdate.  I also made some other batch scripts to run the task en masse.  Totally free.


Example:


schtasks /run /s COMPUTERNAME /tn gpupdate_noreboot