Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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??

share|improve this question
up vote 3 down vote accepted

So basically it is pretty easy with PowerShell

  1. Install PS
  2. Get the library written for managing VMs
  3. Write your PS script which looks like something like this:

    . c:\whatever\hyperv.ps1

    Stop-VM XXX

    Start-VM XXX

  4. Schedule it


share|improve this answer
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
Thank you! PowerShell is awesome. – Istvan Dec 25 '09 at 8:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.