VMware Cloud Community
Denjoh
Contributor
Contributor

Update manager -- powershell

From a server toolkit Windows avec powerhell, I muste do the update of vmwaretools ( vphere ) with a baseline.

Which command must do for for realized the update vmwretools a name of vm on vc

Thank you in advance for assistant

0 Kudos
1 Reply
LucD
Leadership
Leadership

You should have the Update Manager snapin installed.

When you have already a baseline defined for the VMware Tools install, you can use the Get-Baseline cmdlet to pick up the baseline, followed by the Remediate-Inventory cmdlet to initiate the actual update.

Something like this

$vmName = "MyVM"
$baselineName = "MyBaseline"
$baseline = Get-Baseline -Name $baselineName
$vm = Get-VM -Name $vmName
Remediate-Inventory -Entity $vm -Baseline $baseline

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos