Solved

Script to Populate the Virtual PC Console

Posted on 2007-04-08
3
700 Views
Last Modified: 2008-03-03
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.
0
Comment
Question by:KCTS
  • 2
3 Comments
 
LVL 7

Expert Comment

by:avatar-e
ID: 18874474
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.
0
 
LVL 70

Author Comment

by:KCTS
ID: 18874722
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.
0
 
LVL 7

Accepted Solution

by:
avatar-e earned 500 total points
ID: 18876237
VPC sorts VM alphabetically, so add a number or abything to the script:

xxmklink "C:\Documents and Settings\<Username>\Application Data\Microsoft\Virtual PC\Virtual Machines\1. Windows XP Machine.lnk" "c:\Virtual Machines\Windows XP\XP.vmc"
xxmklink "C:\Documents and Settings\<Username>\Application Data\Microsoft\Virtual PC\Virtual Machines\2. Windows 2000 Machine.lnk" "c:\Virtual Machines\Windows 2000\2000.vmc"
...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question