How to schedule VMs to startup and shutdown
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??
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:whateverhyperv.ps1
Stop-VM XXX
Start-VM XXX
-
Schedule it http://ss64.com/nt/schtasks.html
HTH
Check more discussion of this question.
Related posts:
Leave a comment
Recent Posts
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?
- Can Windows RDC admin users be immune from being kicked?
- Domain Administrators account policy (After PCI audit)
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





