PowerShell script exchange
Post Reply
jmcelvoy
Novice
Posts: 7
Liked: never
Joined: Mar 14, 2012 9:34 pm
Full Name: Jason McElvoy
Contact:

How to script powering on VM's

Post by jmcelvoy »

I'm looking for a script that will power on a list of VM's in a specific order for testing. I'd also need to then have a script turn them back off. This is for our Disaster Recovery location.
Sethbartlett
Veteran
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: How to script powering on VM's

Post by Sethbartlett »

Get vPowerCLI from VMware:

Code: Select all

Get-VM "Name of VM" | Start-VM
Get-VM "Name of VM" | Stop-VM
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 4 guests