1

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.

Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328

1 Answers1

2

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.

DarkLite1
  • 13,637
  • 40
  • 117
  • 214