Powershell on VMware 5.5

Is it possible to write a powershell to shutdown all vm guests (Window & Linux) on a VMware 5.5 host ?

How to allow the VM guests be power-on automatically once the VMware 5.5 host is boot up ?

Tks
AXISHKAsked:
Who is Participating?
 
gheistConnect With a Mentor Commented:
You have to move machines higher in the list to start them automatically.
Current picture says - shut down good, but not start anything
0
 
Seth SimmonsSr. Systems AdministratorCommented:
see if this works for you

Using PowerShell to Gracefully Shut Down Multiple Virtual Machines in VMware
http://pipe2text.com/?page_id=1889
0
 
gheistCommented:
You need to set startup/shutdown configuration on ESX(i) host.
No powershell involved.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
AXISHKAuthor Commented:
Under Per-VM OVerrides, I should select "Guest shutdown" to leave OS performs the work.

For Startup Delay of 120s, does it mean VM will startup when VM host starts up for 120s ?

How about "Shutdown Delay" for VM ? Should I set it to 0 when I shutdown the VM host ?

Tks
VM-host.png
0
 
gheistCommented:
No idea. If you have 128CPUs and 100GB/s disk you can start all systems at once.... Otherwise it s one-after-another...
0
 
AXISHKAuthor Commented:
Tks. What's the meaning for "Shutdown Delay" ? Should the VM be shut down at once if VM host is power off ?
0
 
gheistCommented:
It will wait for 120s for "shut down guest" to complete, then "power off"
0
 
AXISHKAuthor Commented:
When I shutdown the VMhost, it will wait for 120s and each VM guestwill shutdown together.
If the VM host power on again, the VM guests will be startup after 120s.

Is my attached setting correct ?  Tks
VM-host.png
0
 
AXISHKAuthor Commented:
Tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.