VMware Cloud Community
gmorrow
Contributor
Contributor
Jump to solution

Power off all VM's from Virtual Center?

Hello all, I am wondering is there a way to shutdown all VM's from the my virtual center server? I would like one simple way to shut them all down at one time.

The GUI has the shutdown schedule, but it will only allow you to schedule one at a time! With 70+ VM's it would take a mighty long time to create those jobs 1 at a time.

Any help appreciated!

Reply
0 Kudos
1 Solution

Accepted Solutions
sbeaver
Leadership
Leadership
Jump to solution

Have you looked at the scripting API's? There should be an example on how to do that with a VB / WSF script

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**

View solution in original post

Reply
0 Kudos
6 Replies
sbeaver
Leadership
Leadership
Jump to solution

You can highlight more then one server and then shut them all down at once. FYI it will be very resource intensive and might take a little bit to finish

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
gmorrow
Contributor
Contributor
Jump to solution

\*EDIT* never mind, I see from each host I can select bunches at one time.

Still a VB script on the VC that I could schedule would be great, any out there ??

\----


My GUI for VC will not allow me to select more than one VM at a time.

Message was edited by:

gmorrow

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Have you looked at the scripting API's? There should be an example on how to do that with a VB / WSF script

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
gmorrow
Contributor
Contributor
Jump to solution

I was able to find how to shut down single VM's but need help with the syntax on shutting down all of them. Not sure what to use in lieu of the single variable for a each VM.

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Look at sample3.vbs You can reverse engineer this to do what you need

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
gmorrow
Contributor
Contributor
Jump to solution

thanks will do!

Reply
0 Kudos