Invoke-Command -ComputerName "AnyPC" {
$cmd1 = "cmd.exe"
$arg1 = "/c"
$arg2 = "echo y | gpupdate /force /wait:0"
&$cmd1 $arg1 $arg2
}
AEPPLEY
Autodidactic introvert that embraces technology. True geek in all form and fashion.
We take the Sh out of I.T.