Solved

Script to Populate the Virtual PC Console

Posted on 2007-04-08
3
691 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need change "file dialogue" box defaults 10 65
Tasks remote computer 12 148
Windows XP network hardware for dummies 12 104
Decrypting the Zepto Virus 21 612
Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now