<?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: Automate scheduling hardware upgrade on 5.1U1 in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716037#M94269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost works although i get this when trying to run it any ideas does the script need to be placed in a directory containing the files?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scheduling hardware upgrade for 12345678&lt;/P&gt;&lt;P&gt;New-Object : Cannot find type [VMware.Vim.ScheduledHardwareUpgradeInfo]: make sure the assembly containing this type is loaded.&lt;/P&gt;&lt;P&gt;At C:\...\vmhardware.ps1:69 char:50&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo = New-Object &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; VMware.Vim.ScheduledHardwareUpgradeInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidType: (:) [New-Object], PSArgumentException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'scheduledHardwareUpgradeStatus' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\...\vmhardware.ps1:70 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; scheduledHardwareUpgradeStatus = 'pending'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (scheduledHardwareUpgradeStatus:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'upgradePolicy' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\...\vmhardware.ps1:71 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; upgradePolicy = 'onSoftPowerOff'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (upgradePolicy:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'versionKey' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\.....\vmhardware.ps1:72 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; versionKey = 'vmx-09'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (versionKey:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&amp;nbsp; : Task&lt;/P&gt;&lt;P&gt;Value : task-5830&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 20:18:37 GMT</pubDate>
    <dc:creator>athurston</dc:creator>
    <dc:date>2013-06-07T20:18:37Z</dc:date>
    <item>
      <title>Automate scheduling hardware upgrade on 5.1U1</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716036#M94268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw that someone posted how to set the properties on a vm to schedule the the hardware upgrade when there has been a clean os shutdown. I am a novice at powershell, but threw this script together that will automate this for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It assumes your windows log on account has permission to vcenter and you have powercli installed. It will prompt you for the vcenter name then for the cluster name, if you leave out cluster it will do all powered on VMs that are not at vmx-09 and schedule them for update and next clean reboot. It will display on the screen which VMs it is updating. Hope this helps make your busy day a little easier. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:32:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716036#M94268</guid>
      <dc:creator>kluken</dc:creator>
      <dc:date>2013-06-06T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automate scheduling hardware upgrade on 5.1U1</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716037#M94269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost works although i get this when trying to run it any ideas does the script need to be placed in a directory containing the files?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scheduling hardware upgrade for 12345678&lt;/P&gt;&lt;P&gt;New-Object : Cannot find type [VMware.Vim.ScheduledHardwareUpgradeInfo]: make sure the assembly containing this type is loaded.&lt;/P&gt;&lt;P&gt;At C:\...\vmhardware.ps1:69 char:50&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo = New-Object &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; VMware.Vim.ScheduledHardwareUpgradeInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidType: (:) [New-Object], PSArgumentException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'scheduledHardwareUpgradeStatus' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\...\vmhardware.ps1:70 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; scheduledHardwareUpgradeStatus = 'pending'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (scheduledHardwareUpgradeStatus:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'upgradePolicy' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\...\vmhardware.ps1:71 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; upgradePolicy = 'onSoftPowerOff'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (upgradePolicy:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property 'versionKey' cannot be found on this object; make sure it exists and is settable.&lt;/P&gt;&lt;P&gt;At C:\Users\.....\vmhardware.ps1:72 char:38&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spec.ScheduledHardwareUpgradeInfo. &amp;lt;&amp;lt;&amp;lt;&amp;lt; versionKey = 'vmx-09'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (versionKey:String) [], RuntimeException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : PropertyNotFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&amp;nbsp; : Task&lt;/P&gt;&lt;P&gt;Value : task-5830&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:18:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716037#M94269</guid>
      <dc:creator>athurston</dc:creator>
      <dc:date>2013-06-07T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automate scheduling hardware upgrade on 5.1U1</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716038#M94270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have latest PowerCLI 5.1 Release 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 21:48:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Automate-scheduling-hardware-upgrade-on-5-1U1/m-p/2716038#M94270</guid>
      <dc:creator>kluken</dc:creator>
      <dc:date>2013-06-07T21:48:13Z</dc:date>
    </item>
  </channel>
</rss>

