Applies to: Windows templates in VMware vSphere; guest update tooling depends on the Windows image and management platform.
Before you start
- Record the template name, current version, guest credentials and approved update method. Keep a recoverable previous image.
- Use an isolated maintenance network where needed and plan any reboot or image-preparation requirements.
Procedure
- Convert the selected template to a VM, or maintain a separate build VM according to your image process.
- Start the VM and confirm guest tools and the operating system are ready before invoking guest commands.
- Install approved updates using your managed update process.
Install-WindowsUpdatebelongs to the separate PSWindowsUpdate module; it is not a built-in PowerShell command. - Wait for update completion and required reboots. Check update history, pending reboot state and guest health rather than relying on fixed sleep intervals.
- Complete your image-cleanup and preparation steps, shut down cleanly, convert back to a template and record the new image version.
Check the result
- Deploy a test VM and check boot, guest customisation, updates and application readiness.
- Retain the previous template until the new image is accepted.