WMI call to run a remote application
am 22.05.2008 20:12:03 von John Arends
I'd like to have a PHP script running on my web server (running IIS 6)
that can make a WMI call and start a specific remote process on a remote
computer.
For what its worth, the remote process I'd like to trigger is a batch file.
I've googled this extensively and can't find anything that points me in
the right direction. All the sample scripts are in vbscript, but I
assume I can probably do something like this with PHP as well since it
has COM libraries.
Any suggestions?
-John
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: WMI call to run a remote application
am 24.05.2008 15:56:07 von Allain Lalonde
------=_Part_4224_30744276.1211637367710
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
To execute a shell statement on the server side use
http://ca3.php.net/manual/en/function.exec.php. That way you keep Web things
in PHP and Shell Script things in a more appriate language like cscript
(vbs) or batch files.
Even though PHP *can do it*, it doesn't mean it's the best language for
doing it.
My 2 cents,
Allain Lalonde
2008/5/22 John Arends :
> I'd like to have a PHP script running on my web server (running IIS 6) that
> can make a WMI call and start a specific remote process on a remote
> computer.
>
> For what its worth, the remote process I'd like to trigger is a batch file.
>
> I've googled this extensively and can't find anything that points me in the
> right direction. All the sample scripts are in vbscript, but I assume I can
> probably do something like this with PHP as well since it has COM libraries.
>
> Any suggestions?
>
> -John
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
------=_Part_4224_30744276.1211637367710--
Re: WMI call to run a remote application
am 03.06.2008 06:34:57 von Manuel Lemos
Hello,
on 05/22/2008 03:12 PM John Arends said the following:
> I'd like to have a PHP script running on my web server (running IIS 6)
> that can make a WMI call and start a specific remote process on a remote
> computer.
>
> For what its worth, the remote process I'd like to trigger is a batch file.
>
> I've googled this extensively and can't find anything that points me in
> the right direction. All the sample scripts are in vbscript, but I
> assume I can probably do something like this with PHP as well since it
> has COM libraries.
There is now. Take a look at this WMI PHP class:
http://www.phpclasses.org/easywmi
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php