PowerShell script that installs Windows Updates by using PowerCLI and VmWare vCenter Server. Target machine should have PSWindowsUpdates module installed.
.\install_windows_updates.ps1 -virtual_machine_name:Windows_2008_r2 -VMGuestUsername:Administrator -VMGuestPassword:123456 -VIServerName:vServer.yourcompany.com -VIServerUsername:Administrator -VIServerPassword:123456