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? 


    Monday, December 11, 2017 7:48 PM


  • 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