https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Update_host_from_ESXi_5.1_to_5.1_update_1&feed=atom&action=historyPowerCLI: Update host from ESXi 5.1 to 5.1 update 1 - Revision history2024-03-29T09:15:26ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Update_host_from_ESXi_5.1_to_5.1_update_1&diff=1287&oldid=prevWila: Created page with "=== Rolling updates === author: Alan Renouf ==== Description ==== Here Alan shows how you can update your hosts using PowerCLI ==== Usage ==== List hosts and their versions:..."2013-09-09T10:11:32Z<p>Created page with "=== Rolling updates === author: Alan Renouf ==== Description ==== Here Alan shows how you can update your hosts using PowerCLI ==== Usage ==== List hosts and their versions:..."</p>
<p><b>New page</b></p><div>=== Rolling updates ===<br />
author: Alan Renouf<br />
==== Description ====<br />
Here Alan shows how you can update your hosts using PowerCLI<br />
<br />
==== Usage ====<br />
List hosts and their versions:<br />
Get-VMhost | Select name, ConnectionState, Version, Build<br />
<br />
Put the host into maintenance mode so that we can install the patch:<br />
$vmhost = Get-VMhost pod18-esx01a*<br />
$vmhost | Set-VMhost -State Maintenance<br />
<br />
Upload the patch to a datastore<br />
$ds = $vmhost | Get-Datastore datastore1*<br />
Copy-DatastoreItem C:\Updates\Update-from-esxi5.1-5.1-update1.zip $ds.datastorebrowserpath -Recurse<br />
<br />
Install the patch on the host<br />
$esxcli = Get-Esxcli -VMHost $vmhost<br />
$esxcli.software.vib.install("/vmfs/volumes/datastore1/Update-from-esxi5.1-5.1-update1.zip",$false,$true,$true,$false,$false)<br />
and reboot<br />
Restart-VMhost -VMHost $vmhost -Confirm:$false<br />
<br />
Remove the uploaded patch from the datastore<br />
remove-item ($ds.datastorebrowserpath + "\Update-from-esxi5.1-5.1-update1.zip")<br />
<br />
==== Location ====<br />
<br />
http://www.virtu-al.net/2013/07/24/updating-from-esxi-5-1-to-esxi-5-1-update1-with-powercli/<br />
<br />
[[Category: PowerCLI]] [[Category: Host Management]]</div>Wila