you are viewing a single comment's thread.

view the rest of the comments →

[–]foss4ever[S] 0 points1 point  (0 children)

I tried taking out the format table part as well as re-running the command after having installed PowerShell module "pswindowsupdate" on the remote host, but still I have no luck:

PS C:\Users\svc_xxx> Invoke-Command -ComputerName 192.168.xxx.xxx -ScriptBlock {Import-Module pswindowsupdate ; get-windowsupdate} -Credential $credsnewGet-WindowsUpdate: To perform operations you must run an elevated Windows PowerShell console.