Running Group policy update on all computers in parallel using powershell

User Case: Made a group policy update and want all the machines to pick up the update. especially  in VDI (XenDesktop/View) environment.
[code language=”powershell”]
$computers = 1..333 | % { "CTX-XD-WIN7" + $_.ToString("000")}
Invoke-Command -ComputerName $computers -ScriptBlock {gpupdate /force /target:computer}
[/code]

Leave a comment

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux