Need to get IPCONFIG /ALL from a computer remotely?

Need to get IPCONFIG /ALL from a computer remotely?

  • Comments 7
  • Likes

I know people have scripted this, but this is so much easier...  You could use PSExec for running other commands as well, but someone recently asked me an easy way to get the IP info so here it is.  If you just want to be sitting at a command prompt on the remote computer then you could just run "PSEXEC \\ServerB cmd" and then you go run whatever command you'd like.

http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

C:\localbinx64>psexec \\ServerA ipconfig /all

PsExec v1.21 - execute processes remotely
Copyright (C) 2001 Mark Russinovich
www.sysinternals.com

Windows IP Configuration

   Host Name . . . . . . . . . . . . : ServerA
   Primary Dns Suffix  . . . . . . . : braddom.bradforest.test
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : braddom.bradforest.test
                                      

Ethernet adapter CORP:

   Connection-specific DNS Suffix  . : braddom.bradforest.test
   Description . . . . . . . . . . . : HP NC7782 Gigabit Server Adapter #2
   Physical Address. . . . . . . . . : 00-13-21-0D-85-15
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IP Address. . . . . . . . . . . . : 157.51.6.176
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 157.51.6.1
   DHCP Server . . . . . . . . . . . : 157.5.114.84
ipconfig exited on servera with error code 0.4.162

Comments
  • PingBack from http://geeklectures.info/2007/12/15/need-to-get-ipconfig-all-from-a-computer-remotely/

  • It's been pointed out that if you specify an account/password then that is transmitted in clear text, which means that it could potentially get picked up by a network sniffer if one is present on your network.

    I would not suggest sending passwords over the net using PSEXEC, if you need to do that type of work.

  • Can i have the source code?

  • This was a quite easy and gud solution for getting ip info for single server...

    Thanks :)

  • is there any way to get a whole list of remotely connected systems

  • I'd prefer to use Remote IP Configuration utility of AdminToys Suite from http://www.admintoyssuite.com/

    It allows you to change network card settings instead of just viewing IP address, mask, DHCP etc.

  • Very good!

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment