locked
Remove the install prompt from WUA script RRS feed

  • Question

  • Hi guys, 

    I really like this script and use it all the time. What I would like to do however, is remove the "Would you like to install updates now (y/n)" part so that once you run the script, it just does it. 

    Ideally it would just auto-accept the EULA's, then automatically download and install the patches, but not reboot automatically. Is this doable? 

    https://msdn.microsoft.com/en-us/library/windows/desktop/aa387102(v=vs.85).aspx

    Monday, December 11, 2017 7:48 PM

Answers

  • For anyone interested, the solution is to change strInput = WScript.StdIn.Readline to strInput = “Y”

    The script does not auto-reboot. 

    • Marked as answer by ClaytonDM Tuesday, December 12, 2017 4:08 PM
    Tuesday, December 12, 2017 4:08 PM

All replies