title: Unable to Use Windows Update COM object in RemotePS sessions
body: <p>Im trying to change the windows update settings in a remote server using powershell, but when i run the below commands it gives me an error.</p>
  
  <pre><code>PS C:\Windows\system32&gt; Enter-PSSession opalisbinary
  
  [opalisbinary]: PS C:\Users\superv\Documents&gt; $AUSettings = (New-Object -com "Microsoft.Update.AutoUpdate").Settings
  [opalisbinary]: PS C:\Users\superv\Documents&gt;  $AUSettings.NotificationLevel=2
  Property 'NotificationLevel' cannot be found on this object; make sure it exists and is settable.
  At line:1 char:14
  +  $AUSettings. &lt;&lt;&lt;&lt; NotificationLevel=2
      + CategoryInfo          : InvalidOperation: (NotificationLevel:String) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
  
  
  
  [opalisbinary]: PS C:\Users\superv\Documents&gt;  $AUSettings.IncludeRecommendedUpdates=$true
  
  
  Property 'IncludeRecommendedUpdates' cannot be found on this object; make sure it exists and is settable.
  At line:1 char:14
  +  $AUSettings. &lt;&lt;&lt;&lt; IncludeRecommendedUpdates=$true
      + CategoryInfo          : InvalidOperation: (IncludeRecommendedUpdates:String) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
  
  [opalisbinary]: PS C:\Users\superv\Documents&gt;  $AUSettings.Save()
  
  
  You cannot call a method on a null-valued expression.
  At line:1 char:18
  +  $AUSettings.Save &lt;&lt;&lt;&lt; ()
      + CategoryInfo          : InvalidOperation: (Save:String) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  </code></pre>
  
  <p>Although when i run it locally on the server it works fine... </p>
  
  <p>Could anyone please help me.</p>