Files
System-Scripts/vSphere/BatchPatch/vm-update-tools.ps1

11 lines
357 B
PowerShell

# Update VMware Tools on vSphere Machine
# Script is called from BatchPatch
param (
[Parameter(Mandatory=$true)][string]$Computer
)
connect-viserver -server SERVERNAME -user USERNAME -password PASSWORD | out-null
Update-Tools -Server SERVERNAME -VM $Computer* -NoReboot
Disconnect-VIServer -Server * -Force -Confirm:$false | out-null