shornw Posted February 9, 2009 Posted February 9, 2009 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]
MerkurAlex Posted February 9, 2009 Posted February 9, 2009 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]
Manjish Posted February 9, 2009 Posted February 9, 2009 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
Manjish Posted February 9, 2009 Posted February 9, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now