I tried to find the option in MS Virtual PC 2007 to start everytime I boot windows, but did not found such function. Should I write some type of script for that, or would be a better way to make this happen?
Thanks
As far as I know there is no way to get Virtual PC to start as a service. I have a group policy object for the users that only use a Virtual PC (all training users, booting dummy envionments). Group policy setting:
User Configuration Administrative Templates System/Logon Run these programs at user logon
The setting is Enabled with the following item to run at logon:
C:\Program Files\Microsoft Virtual PC\Virtual PC.exe" -startvm "C:\Virtual Machines\Virtual Workstation.vmc" -singlepc
That will start Virtual PC 2007 with a single workstation running.
If you don't want the user to have to login to the host PC before the virtual machine will start, set the folloing keys in this registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
DefaultDomainName (REG_SZ) = [Domain] (Vista Only) DefaultUserName (REG_SZ) = [Username] DefaultPassword (REG_SZ) = [Password] AutoAdminLogon (REG_DWORD) = 1
If AutoLogonCount exists, delete it.
Why not just put it into the autostart folder?
And if you want to start a virtual computer, just put a link to the corresponding .vmc file into the autostart folder.
Just go to the .vmc-file, select 'create shortcut' from the file menu and move the shortcut file to the autostart folder.
I've stuck a .vbs script in the win startup folder with:
Set objVS = CreateObject("VirtualServer.Application") Set myVPC = objVS.FindVirtualMachine("myVPCNAME")
myVPC.Startup()
Create a batch (.bat) file with this in it:
"C:\Program Files\Microsoft Virtual PC\Virtual PC.exe" -pc "YourVMNameHere" -launch
Pop that in your startup folder and Bob's your uncle.