| | |
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 |
action address advanced ajax apache api array auto autoincrement basics beginner broken cakephp class cms code codingproblem combobox cron curl database date datepart display domain dynamic email error errorlog file folder form format forms function functions google head href htaccess html image include includingmysecondfileinthechain interactive ip javascript job joomla js limit link load login malfunctioning masterthesis menu multiple mysql nodes oop outofmemmory paging password paypal pdf php popup problem procedure query ram random reference script search server sessions smarty source space sql stored syntax system table traffic tutorial unicode unset up-to-date upload url validation variable video web webapplications websitecontactform youtube





