<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script to update all your hosts in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154659#M300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get a chance to downloading the software and look at the documentation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.vmware.com/support/developer/ps-libs/vumps/vumps40u1/vumps40U1-20103-releasenotes.html"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 19:47:27 GMT</pubDate>
    <dc:creator>MartinAmaro</dc:creator>
    <dc:date>2010-09-07T19:47:27Z</dc:date>
    <item>
      <title>Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154655#M296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made the following script to update all our hosts. It saves me a lot of time when updating all my hosts because now I can start the script and have just to wait untill all my hosts are updated. Before I had to put a host in maintenance mode, remediate the host and exit maintenance mode. And I had to do this for all my hosts. The script asumes that you use DRS in your clusters to move the VM's when you put a host in maintenance mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="noformat"&gt;
$Baseline = Get-Baseline -TargetType host
Get-VMhost | ForEach-Object {
  Set-VMhost  -vmhost $_ -state maintenance
  Remediate-Inventory -Entity $_ -Baseline $Baseline -Confirm:$False
  Set-VMhost -vmhost $_ -state connected
}
&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert van den Nieuwendijk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 12:31:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154655#M296</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-03-03T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154656#M297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you should mention that this will only work with cluster nodes when the DRS Automation level is set to "fully automated".&lt;/P&gt;&lt;P&gt;As long as there are active guests, your hosts will not enter maintenance mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;____________&lt;/P&gt;&lt;P&gt;Blog: &lt;A href="http://lucd.info"&gt;LucD notes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Twitter: &lt;A href="http://twitter.com/lucd22"&gt;lucd22&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 13:05:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154656#M297</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2010-03-03T13:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154657#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luc, thanks for this extra info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 13:18:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154657#M298</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-03-03T13:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154658#M299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand the stages to be realized to update with update manager and powershell, a vm or several vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My baseline is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 19:09:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154658#M299</guid>
      <dc:creator>Denjoh</dc:creator>
      <dc:date>2010-09-07T19:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154659#M300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get a chance to downloading the software and look at the documentation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.vmware.com/support/developer/ps-libs/vumps/vumps40u1/vumps40U1-20103-releasenotes.html"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 19:47:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154659#M300</guid>
      <dc:creator>MartinAmaro</dc:creator>
      <dc:date>2010-09-07T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154660#M301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I make the update in graphic mode with update manager and the baseline created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i'm sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a greenhorn in powershell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would have the commands to be crossed (go) to make the update with the commands powershell of a vm or several vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 19:15:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154660#M301</guid>
      <dc:creator>Denjoh</dc:creator>
      <dc:date>2010-09-09T19:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154661#M302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that my script got a little mangled by the forum software. I was quite new to the forum when I posted the script. Will do it better this time ;-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
$Baseline = Get-Baseline -TargetType host
Get-VMhost | ForEach-Object {
  Set-VMhost -vmhost $_ -state maintenance
  Remediate-Inventory -Entity $_ -Baseline $Baseline -Confirm:$False
  Set-VMhost -vmhost $_ -state connected
} 
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 19:38:04 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154661#M302</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-09-09T19:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to update all your hosts</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154662#M303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;B&gt;RvdNieuwendijk&lt;/B&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="null"&gt;$Baseline = Get-Baseline -TargetType host Get-VMhost | ForEach-Object {&amp;nbsp;&amp;nbsp; Set-VMhost -vmhost $_ -state maintenance&amp;nbsp;&amp;nbsp; Remediate-Inventory -Entity $_ -Baseline $Baseline -Confirm:$False&amp;nbsp;&amp;nbsp; Set-VMhost -vmhost $_ -state connected } &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QQ I have below requirement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On each cluster the all the hosts should be patched, one after the other.&lt;/P&gt;&lt;P&gt;2. Will the above run simultaneously&amp;nbsp; for all host ,( in that case it will result in outage)?&lt;/P&gt;&lt;P&gt;3. I want to apply only "critical &amp;amp; non-critical" patches only ?&lt;/P&gt;&lt;P&gt;4. I would like to skip host which is already patched to latest , will it do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 01:14:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Script-to-update-all-your-hosts/m-p/1154662#M303</guid>
      <dc:creator>esxi1979</dc:creator>
      <dc:date>2014-09-29T01:14:22Z</dc:date>
    </item>
  </channel>
</rss>

