February 16, 2015

Prevent RSI with Powershell

Here a quick useful Powershell snippet, that will prevent you from getting RSI!

Have you ever waited for a group policy to replicate, sat there hitting “gpupdate /force

If you are like me – and a grumpy admin thatis too lazy to wait or keep typing “gpupdate /force” – you can encapsulate your command in this quick Powershell line.

1..5 | % { gpupdate /force ; “running gpupdate $_ $(get-date)”}

The first section is just a range change the 5 to how ever many time you want to run the command. –

you could put “ipconfig /renew” in a loop perhaps…