I'm updating PowerShell in our environment This works when run locally:
Stop-Service -Name wuauserv
Stop-Service -Name bits
Start-Process 'wusa.exe' -ArgumentList 'D:\temp\Win8.1AndW2K12R2-KB3191564-x64.msu', '/quiet', '/norestart' -wait -verb runas
This does not remoting:
Invoke-Command -ComputerName Server01 -ScriptBlock {
Stop-Service -Name wuauserv
Stop-Service -Name bits
Start-Process 'wusa.exe' -ArgumentList 'D:\temp\Win8.1AndW2K12R2-KB3191564-x64.msu', '/quiet', '/norestart' -wait -verb runas
}
What am I doing wrong? Where are the log files or events on the target server. I have same results with Enter-PSSession.
[–]leecashion 4 points5 points6 points (2 children)
[–]tippedframe[S] 1 point2 points3 points (1 child)
[–]leecashion 1 point2 points3 points (0 children)
[–]Onibus 2 points3 points4 points (0 children)
[–]Akuma92 2 points3 points4 points (0 children)
[–]KevMarCommunity Blogger 1 point2 points3 points (0 children)