Reputation: 11
This command is used to get the status of Microsoft update. In my environment it is set to never check for updates.
$WUSettings = (New-Object -Com "Microsoft.Update.AutoUpdate").Settings
But I want to run this command on remote computer. I am using Invoke-Command
but its giving null value. If I go in the system itself, the command will work, but its not working remotely.
Upvotes: 1
Views: 540
Reputation: 14745
Tested this and have the same issue. Seems it's not supported.
There's a script that you can use that does something similar, but uses another call instead of a COM
object.
Upvotes: 2