Executing ipconfig and other commands on remote machines
February 25th, 2014
No comments
To execute the “ipconfig /all” command on one or more remote machines you can use the psexec utility that is part of pstools, available from Microsoft. The syntax is: pstools \\machine_name command
For example:
C:\Users\dmatthews\Desktop\pstools>psexec \\L00151270 ipconfig /all
To list just the IP version 4 address, pipe the output throught the ‘find’ command:
C:\Users\dmatthews\Desktop\pstools>psexec \\L00151270 ipconfig /all | find “IPv4” Read more…
Categories: Network Management, Security