Once again, Ben Armstrong comes through with another script saver for Virtual Server users. If you wanted to script your virtual machines to startup automatically when the host server comes online, here is your chance to follow along and learn something.
Set objVS = CreateObject("VirtualServer.Application") Set objVM = objVS.FindVirtualMachine("VM Name") objVM.RunAsDefinedAccount = True result = objVM.SetAccountNameAndPassword("DOMAIN\Username","Password") objVM.AutoStartAtLaunch = 2
To comment or thank Ben Armstrong, check out his original post on his blog site, here.