VMware Communities > VMTN > VMware vCenter™ > VMware vCenter™ Server > Discussions

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Jun 26, 2009 3:56 PM by cvservices
Reply

Change the power state of a virual machine for multiple guests

Jun 26, 2009 3:32 PM

Click to view cvservices's profile Lurker cvservices 4 posts since
May 21, 2009

Hello,

I'm running vCenter 4.0, and I'm trying to create a scheduled task that would shutdown mutliple guests at the same time. The options that I get in the Scheduled Tasks for the machine shutdown is only for one VM at a time. Is there any way that this scheduled task can be setup for a group of machines? even on a resource pool level if needed. I tried to choose the containing folder, but it only allowed me to select a guest VM.

If there are other ways to do this, I would appreciate if someone can point me in the right direction.

I am in ESX4 enterprise with HA, DRS and vMotion, so I can't really have some cron job running, as I wouldn't think that would be efficient to setup on every single host I have.

Thanks in advance for your assistance,


Reply Re: Change the power state of a virual machine for multiple guests Jun 26, 2009 3:38 PM
Click to view Troy Clavell's profile Guru Troy Clavell 6,042 posts since
Oct 12, 2007
Reply Re: Change the power state of a virual machine for multiple guests Jun 26, 2009 3:56 PM
Click to view cvservices's profile Lurker cvservices 4 posts since
May 21, 2009

Thanks! I think these should point me in the right direction. I haven't done any powershell scripts for VMWare yet. but I guess there's a first for everything :)

Some other threads I read also suggested psshutdown from PSTools, though I would think the powershell method might be more elegant.

I'll take a look at both.

Thanks again!

Actions