3

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

4 Answers 4

1

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.

1
  • 1
    It worked like a charm in the Win7. Great answer, tks a lot.
    – Igor B.
    Jun 20, 2009 at 18:39
3

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.

4
  • Everyone seems to have forgotten about the good old Startup folder!! Jun 19, 2009 at 9:12
  • Not that simple guys.... because the startup folder will start the application, but NOT the virtual machine.
    – Igor B.
    Jun 20, 2009 at 18:01
  • Also, this happened when I added the .vmc: An error occurred while processing the command line options. A virtual machine with the same name has already been added to the Virtual PC Console.
    – Igor B.
    Jun 20, 2009 at 18:08
  • This error happens if you create a copy of the file instead of a shortcut.
    – Sam
    Jun 22, 2009 at 9:26
0

I've stuck a .vbs script in the win startup folder with:

Set objVS = CreateObject("VirtualServer.Application") Set myVPC = objVS.FindVirtualMachine("myVPCNAME")

myVPC.Startup()

1
  • Hmmm, probably it will work, but I have no idea about vb script.
    – Igor B.
    Jun 20, 2009 at 18:39
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .