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.