Jump to content
Sign in to follow this  
shornw

Remote Process

Recommended Posts

shornw

Hi, I dont know if this is possible, I am trying to detect a running process on a remote machine. maybe something along the lines of ProcessExists("\\remotepc\sqlserver.exe")

but not really sure how to go about it.

Any help or advice gratefully received and thanks for looking.


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

Share this post


Link to post
Share on other sites
MerkurAlex

You would have to use TCP have a client on the machine your checking and have it send the return of ProcessExists to the server(on your computer)


[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post


Link to post
Share on other sites
Manjish

why don't u use WMI.. use the Win32_Process object to get remote processes


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites
Manjish

Use this

#include<array.au3>
$computer="siugeserver1"
global $Rtn
    $Service = ObjGet("winmgmts:\\" & $Computer & "\root\cimv2")
    $sItems = $Service.ExecQuery("Select * from Win32_Process")
    For $objService in $sItems
        $Rtn &= $objService.Name & '|'
    Next
    $array = StringSplit($Rtn, '|',1)
    _ArrayDisplay($array,"Processes")

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×