VMware Cloud Community
Pyro777
Contributor
Contributor

Create a VB Script to auto launch my MS Virtual PC when Windows Vista reboots

Currently I am running MS Virtual PC 6.0 on Windows Vista. I have 4 virtual PCs that I need automatically start everytime this PC is rebooted (Which is every night, due to company policy) I have been told that it is not possible to auto launch but I am very close with the script that I have wrote. I think that my spacing is off as my script will launch the virtual PC console but not any of my virtul PC sessions. The script below is setup to only launch one virtual PC session for testing purposes. I would also like to place the script into my startup and need for it to wait approx 5 mins before it launches the virtual PC sessions, I am not to sure how to do that Can any one help me ??

Thanks..

Option Explicit

Dim objShell

Set objShell = CreateObject("WScript.Shell")

objShell.Run """C:\program files\Microsoft virtual PC\virtual pc.exe""?singlepc ?pc ws8239v1 ?launch"

0 Kudos
1 Reply
RDPetruska
Leadership
Leadership

Not to sound flippant, but you'd probably get much better responses on a Microsoft forum for your Microsoft product (Virtual PC) than here in VMware's forums.

0 Kudos