Tech: Starting Microsoft Virtual Server 2005 virtual machines launch at system boot

Another script from Ben Armstrong.
This time he teaches how to automatically launch virtual machines in a Virtual Server 2005 environment when the host operating system boots up:

Set objVS = CreateObject(“VirtualServer.Application”)
Set objVM = objVS.FindVirtualMachine(“VM Name”)
objVM.RunAsDefinedAccount = True
result = objVM.SetAccountNameAndPassword(“DOMAIN\Username”,”Password”)
objVM.AutoStartAtLaunch = 2

Be sure to read the original post for comments and updates.