User Tools

Site Tools


software:utilities:winupdate

WinUpdate

WinUpdate was developed to keep Images/Templates up to date (Windows Patches only!). To avoid new VM's created from a template being x number of years old (missing patches and a security risk!) and any new VM needs to spend several hours of patching before it is up to date.

WinUpdate will use the WUAPI to install ALL Windows patches from Windows Update, and it's made to be without any user interaction. Some limitations does apply:

  • ONLY Windows Update is supported (So you cannot use your own WSUS or anything, it does ignore all settings and just connects to Microsoft update servics directly)
  • Any patches marked as “User Interaction required” will NOT be installed (Hint: VMware has alot of these for some stupid reason)
Paramenters
-debugOutput all debug info.
-shutdownShutdown after applying packages.
-removeRemove(Delete) winupdate.exe after execution.
-rebootReboot after applying packages.
-ListList available updates (and quit)
-LogToFileWrite to logfile.(C:\\Winupdate.log)
-UserName{USER}Username for autologon after reboot.
-Password{PASSWORD}Password for autologon after reboot.
-MaxRetry{Count}Max reboots before failing update.

If you supply UserName/Password and -Reboot(or shutdown), the computer will reboot as many times as needed and apply any packages as needed.

Usage Examples:

WinUpdate.exe (no parameter)Will download and install all patches found, but not reboot or install any patches that comes after reboot.
WinUpdate.exe -RebootWill download and install all patches found,then reboot.(Any pending packages will not be installed!)
WinUpdate.exe -ShutdownWill download and install all patches found, then shutdown. (Any pending packages will not be installed, any pending reboot will still be pending!)
WinUpdate.exe -Username Administrator -Password MyPass -RebootWill download and install all patches found, reboot, and continue to install until all patches are applied.
WinUpdate.exe -Username Administrator -Password MyPass -Reboot -ShutdownWill download and install all patches found, reboot, and continue to install until all patches are applied. When all patches is installed it will shutdown the machine.
WinUpdate.exe -Username Administrator -Password MyPass -Reboot -Shutdown -removeWill download and install all patches found, reboot, and continue to install until all patches are applied. When all patches is installed, remove winupdate.exe and shutdown the machine.
software/utilities/winupdate.txt · Last modified: 2021/06/30 00:54 (external edit)