I'm running several VMs (Mainly windows XP) on a 2008 server under Hyper-V.
I'd like to automatically schedule some of these machines to startup and shutdown according to a schedule. To limit availability to the times when people are supposed to be in the office to log into them.
How can this be achieved??
Asked
Active
Viewed 1.5k times
4
![](../../users/profiles/29379.webp)
Tom Brown
- 177
- 1
- 3
- 6
1 Answers
7
So basically it is pretty easy with PowerShell
- Install PS
- Get the library written for managing VMs http://www.codeplex.com/PSHyperv
Write your PS script which looks like something like this:
. c:\whatever\hyperv.ps1
Stop-VM XXX
Start-VM XXX
Schedule it http://ss64.com/nt/schtasks.html
HTH
![](../../users/profiles/5258.webp)
Istvan
- 2,562
- 3
- 20
- 28
-
Thanks - It took me a while to get powershell up and running, now I've been using it for a few days I've got the startup/shutdown running smoothly. Great Answer! – Tom Brown Dec 23 '09 at 20:31