Scripting Automatic Startup For Virtual Machines Under Virtual Server |
Friday, 17 March 2006 by Michel Roth | |||
Set objVS = CreateObject("VirtualServer.Application") Set objVM = objVS.FindVirtualMachine("VM Name") objVM.RunAsDefinedAccount = True result = objVM.SetAccountNameAndPassword("DOMAIN\Username","Password") objVM.AutoStartAtLaunch = 2 If you want the virtual machine to always start (whether it was running before or not) you should set AutoStartAtLaunch to 1. Read the whole tip at the source, Virtual PC Guy's WebLog.
Show/Hide comment form
|