title: Install missing SCCM updates on remote computer using PowerShell
body: <p>I'm looking for a way to install missing SCCM updates on remote computers using PowerShell.</p>
  
  <p>I came across this function but can't get it to run on a remote computer any ideas?</p>
  
  <pre><code>    function Install-MissingUpdate {
  
      param (
      $computer = "Remote-Computer"
      )
          ([wmiclass]'ROOT\ccm\ClientSDK:CCM_SoftwareUpdatesManager').InstallUpdates([System.Management.ManagementObject[]] (
           Get-WmiObject -Query 'SELECT * FROM CCM_SoftwareUpdate' -namespace 'ROOT\ccm\ClientSDK'))
      }
  </code></pre>