Link to home
Start Free TrialLog in
Avatar of Brian Pierce
Brian PierceFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Script to Populate the Virtual PC Console

Has anybody got a nice script that will remove all of the Virtual PCs from the Virtual PC console (without deleting the .vmc files) and then add all the .vmc files from a specified folder into the Virtual PC Console.
Avatar of avatar-e
avatar-e
Flag of Chile image

Just add or remove shortcuts to VMC files from:
C:\Documents and Settings\<Username>\Application Data\Microsoft\Virtual PC\Virtual Machines\

From a BAT file you can create shortcuts with:
http://www.xxcopy.com/download/xxmklink.zip

This way (to add 2 machines to VPC menu):
xxmklink "C:\Documents and Settings\<Username>\Application Data\Microsoft\Virtual PC\Virtual Machines\Windows XP Machine.lnk" "c:\Virtual Machines\Windows XP\XP.vmc"
xxmklink "C:\Documents and Settings\<Username>\Application Data\Microsoft\Virtual PC\Virtual Machines\Windows 2000 Machine.lnk" "c:\Virtual Machines\Windows 2000\2000.vmc"
...

Then delete that .lnk files to remove the machines.
Avatar of Brian Pierce

ASKER

Any way of enumerating all the VPCs in a particular folder and adding them automatically? I  run some microsoft courses that use VPC and some of them have a new VPC for each module so there can be as many as 15 VPCs to add to the console each time.
ASKER CERTIFIED SOLUTION
Avatar of avatar-e
avatar-e
Flag of Chile image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial