Hi,

instead of using "psexec" you could try "getmac /S <pcname>".

Hope this helps.

Ingo

Am 20.07.2015 um 21:41 schrieb Richard Mace:
Hi All,
I hope this question is going to make sense.
I am trying to obtain the MAC Address of a remote PC, using psexec \\pcname and running the command "ipconfig /all". If I run the psexec command from my machine via a command prompt, ipconfig /all is successfully run on the remote machine, and I can see it's MAC address, however, if I run it via TProcess, in Lazarus, the output I get from TProcess is the output from psexec (successfully run and exited with error code 0) rather than the output from ipconfig. How can I code TProcess, so that it shows me the output from the "ipconfig /all" command instead?

I hope that makes sense?

Richard


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to