| | |
script which will automatic startup for virtual machines under Microsoft Virtual Serv
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 1
Reputation:
Solved Threads: 0
script which will automatic startup for virtual machines under Microsoft Virtual Serv
0
#1 Aug 28th, 2006
Hi,
I am trying to develope a PHP script which will automatic startup for virtual machines under Microsoft Virtual Server 2005 r2 but it failed due to COM object saying Source unknown But the same thing when i tried through VB script it works fine.
VB script:
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("VM Name")
objVM.RunAsDefinedAccount = True
result = objVM.SetAccountNameAndPassword("DOMAIN\Username","Password")
objVM.AutoStartAtLaunch = 2
It Worked fine
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________ _ _ _ _ _
PHP Script:
$objVS = new COM("VirtualServer.Application");
$objVM = $objVS->FindVirtualMachine("Scorpio");
$objVM->Startup();
it throuhgs Error at FindVirtualMachine function saying
ERROR: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown
Plese Help me it's urgengt !!
Thanks in advance
http://forums.digitalpoint.com/images/misc/progress.gif
I am trying to develope a PHP script which will automatic startup for virtual machines under Microsoft Virtual Server 2005 r2 but it failed due to COM object saying Source unknown But the same thing when i tried through VB script it works fine.
VB script:
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("VM Name")
objVM.RunAsDefinedAccount = True
result = objVM.SetAccountNameAndPassword("DOMAIN\Username","Password")
objVM.AutoStartAtLaunch = 2
It Worked fine
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________ _ _ _ _ _
PHP Script:
$objVS = new COM("VirtualServer.Application");
$objVM = $objVS->FindVirtualMachine("Scorpio");
$objVM->Startup();
it throuhgs Error at FindVirtualMachine function saying
ERROR: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown
Plese Help me it's urgengt !!
Thanks in advance
http://forums.digitalpoint.com/images/misc/progress.gif
![]() |
Similar Threads
- Re: High CPU Usage , Lagging (Viruses, Spyware and other Nasties)
- Any problems here? Ad-Aware has found 5 SearchFast entries it says is 'malware' (Viruses, Spyware and other Nasties)
- Wireless Internet is Terminated in an Abnormal Way!!! (Networking Hardware Configuration)
- This Should be Easy for You Guys! (Linux Servers and Apache)
- Another Aurora Victim. Please help! (Viruses, Spyware and other Nasties)
- windows messanger wont stop starting on startup (Windows NT / 2000 / XP)
- virtual network (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: Couple of questions
- Next Thread: 'Lock Down' a form
| Thread Tools | Search this Thread |
access apache api array beginner binary broken button cakephp checkbox class clean cms code compression countingeverycharactersfromastring crack cron curl database date decode directory display dissertation dropdown dynamic echo email error fairness file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link login mail match md5 menu mlm multiple mysql newsletters oop pageing pagerank paypal pdf php problem protocol query radio random recursion remote script search secure server sessions simple sms soap source space spam sql syntax system table tutorial update upload url validator variable video virus votedown web youtube





