1

Is there a way to interact with Virtual PC1?

Looking to do basic things like startup and shutdown (with choice of save or turn off etc..) specific VM's.

Any solution other than simulating key presses would be fine, for example

  • WMI
  • COM+
  • ADSI
  • PowerShell

1 - Specifically for Virtual PC as in Microsoft Virtual PC (i.e. the one that runs on Vista and earlier), not Windows Virtual PC (i.e. the Win7 one)

Robert MacLean
  • 38,975
  • 25
  • 98
  • 152
  • Why were you so quick to accept the "no" answer? I've been told that it is possible with PowerShell, but haven't found any details on how to do it. I would have left the question open until finding the "yes" answer. – CoderDennis May 29 '09 at 20:48
  • All my own investigation proved the same answer. For Virtual PC Powershell is of not help either :( – Robert MacLean May 30 '09 at 17:24
  • For more answers see this http://stackoverflow.com/q/971590/328397 – makerofthings7 Mar 28 '12 at 11:56

2 Answers2

1

It's not quite what you're after but there are a whole set of command line parameters you can use on Virtual PC.exe to start and pause VMs as well as set screen modes and disable/enable various options.

You can find them on this MS KB 831501 article.

"Virtual PC.exe" [-singlepc] [-quiet] [-usehostdiskcache] [-pc virtual_machine_name [-disableclose] [-disableopt] [-s3bitclip] [-setbiosno bios_serial_number] [-setassettag asset_tag] [-extnetworking] [-launch] [{-fullscreen|-window}] [-geometry widthxheight{+|-}x offset{+|-}y offset] [{-minimize|-restore}] [{-pause|-resume}]] [-help] [-registervm filename.vmc] [-startvm filename.vmc]

GAThrawn
  • 280
  • 2
  • 13
0

Alas, no, see http://www.aspdeveloper.net/Virtual_PC/rn-739-16434_Virtual_PC_API.aspx .

Alex Martelli
  • 854,459
  • 170
  • 1,222
  • 1,395
  • That's an old post and says that there will be one for Virtual PC 2005. Doesn't that mean that Virtual PC 2007 would have one also? – CoderDennis May 29 '09 at 20:49