Link to home
Start Free TrialLog in
Avatar of mgosden33
mgosden33

asked on

How to restart a Hyper-V hosted virtual machine

Good afternoon Experts

We have a Hyper-V server that hosts 50 Windows 7 based virtual machines for our IT classrooms to use. What I would like to do is schedule a reboot of all 50 - either by shutting them all down and the "switching" them back on, or a reboot.

Is it possible to write a batch file/power shell script to do this for us, which can then go into Windows scheduler?

With thanks.
ASKER CERTIFIED SOLUTION
Avatar of Gerald26
Gerald26
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Darius Ghassem
Here is a script that will allow you to stop and start VMs in Hyper-V

http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=125