title: Trigger windows updates from command line (wuauclt.exe alternative)
body: <p>So, I've had a script for a while that would trigger windows 7 "windows update" with <code>wuauclt.exe /updatenow</code> (see <a href="http://pauby.com/blog/windows-update-agent-utility-wuauclt-exe/" rel="nofollow noreferrer">this</a> article for wuauclt.exe flags). In windows 10, this seems to not exist (or do anything that I can tell).  </p>
  
  <p>Does anyone know the alternative(s) to force windows 10 to go get it's updates (in my case from a WSUS server)?</p>
  
  <p><em>What I have found so far:</em></p>
  
  <p>I've found using <code>control.exe /name Microsoft.WindowsUpdate</code> pulls up the windows update page now located in the settings panel to then manually click "check for updates".  The purpose of this being in a script of course to automate this process. <a href="https://www.reddit.com/r/Windows10/comments/3iovtx/launch_windows_update_from_command_line/" rel="nofollow noreferrer">Source</a></p>
  
  <p>I did find a vbscript that would trigger updates (though I am  still hopeful that a command line function still exists). Below is the two relevant lines that you need. <a href="https://answers.microsoft.com/en-us/windows/forum/windows_10-update/wuaucltexe-detectnow-command-doesnt-work-in/43dc5e35-6efa-432e-8256-d30096678849?auth=1" rel="nofollow noreferrer">Source</a>   </p>
  
  <pre><code>Set automaticUpdates = CreateObject("Microsoft.Update.AutoUpdate")
  automaticUpdates.DetectNow()
  </code></pre>