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:
-debug | Output all debug info. | |
-shutdown | Shutdown after applying packages. | |
-remove | Remove(Delete) winupdate.exe after execution. | |
-reboot | Reboot after applying packages. | |
-List | List available updates (and quit) | |
-LogToFile | Write 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 -Reboot | Will download and install all patches found,then reboot.(Any pending packages will not be installed!) |
WinUpdate.exe -Shutdown | Will 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 -Reboot | Will download and install all patches found, reboot, and continue to install until all patches are applied. |
WinUpdate.exe -Username Administrator -Password MyPass -Reboot -Shutdown | Will 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 -remove | Will 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. |