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.

$computers = 1..333 | % { "CTX-XD-WIN7" + $_.ToString("000")}
Invoke-Command -ComputerName $computers -ScriptBlock {gpupdate /force /target:computer}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s