Saurabh Dubey
Saurabh Dubey

Reputation: 11

Using invoke command to create com object on a remote system

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

Answers (1)

DarkLite1
DarkLite1

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

Related Questions