<?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: Poweroff / poweron VM via powerCLI script in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830201#M22469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was 2nd code block in my first reply.&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>Fri, 04 Jun 2010 15:19:56 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2010-06-04T15:19:56Z</dc:date>
    <item>
      <title>Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830194#M22462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&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;Is it possible to script a CLEAN poweroff for all my VM on a cluster (RedHat and Windows). Idem for poweron.&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;If YES, can you give me lines to put in the batch&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;Thx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:36:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830194#M22462</guid>
      <dc:creator>xybal</dc:creator>
      <dc:date>2010-06-04T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830195#M22463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the VMware Tools installed you can do&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code"&gt;
Get-VM | Shutdown-VMGuest -Confirm:$false
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code"&gt;
Get-VM | Start-VM -Confirm:$false
&lt;/PRE&gt;&lt;P&gt;Note that the Shutdown-VMGuest cmdlet does not wait for the guest OS to complete the shutdown !&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;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>Fri, 04 Jun 2010 13:40:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830195#M22463</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2010-06-04T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830196#M22464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&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;Is thi powering off cleanly my VMs ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how can I apply this to all VMs from a specific cluster ?&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;Thx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:52:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830196#M22464</guid>
      <dc:creator>xybal</dc:creator>
      <dc:date>2010-06-04T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830197#M22465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this initiates a shutdown through the guest OS.&lt;/P&gt;&lt;P&gt;For a cluster you could do&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
Get-Cluster -Name &amp;lt;your-clustername&amp;gt; | Get-VM | Shutdown-VMGuest -Confirm:$false
&lt;/PRE&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;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>Fri, 04 Jun 2010 14:05:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830197#M22465</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2010-06-04T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830198#M22466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally is this shutdown my VMs properly ?&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;Thx very much &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:09:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830198#M22466</guid>
      <dc:creator>xybal</dc:creator>
      <dc:date>2010-06-04T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830199#M22467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the same to powerOn my VMs ?&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;Thx very much &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:37:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830199#M22467</guid>
      <dc:creator>xybal</dc:creator>
      <dc:date>2010-06-04T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830200#M22468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found the answer : &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="noformat"&gt;Start-VM   instead of shutdown-VMguest&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:40:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830200#M22468</guid>
      <dc:creator>xybal</dc:creator>
      <dc:date>2010-06-04T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Poweroff / poweron VM via powerCLI script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830201#M22469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was 2nd code block in my first reply.&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>Fri, 04 Jun 2010 15:19:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Poweroff-poweron-VM-via-powerCLI-script/m-p/830201#M22469</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2010-06-04T15:19:56Z</dc:date>
    </item>
  </channel>
</rss>

