Share via


Need to get IPCONFIG /ALL from a computer remotely?

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.

https://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

  • Anonymous
    January 01, 2003
    PingBack from http://geeklectures.info/2007/12/15/need-to-get-ipconfig-all-from-a-computer-remotely/

  • Anonymous
    January 01, 2003
    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.

  • Anonymous
    June 27, 2010
    Can i have the source code?

  • Anonymous
    May 09, 2012
    This was a quite easy and gud solution for getting ip info for single server... Thanks :)

  • Anonymous
    October 03, 2012
    is there any way to get a whole list of remotely connected systems

  • Anonymous
    November 27, 2012
    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.

  • Anonymous
    June 12, 2014
    Very good!

  • Anonymous
    December 22, 2014
    Guys it's 2014 foget pstools you might not always have them with you "invoke-command -comp server1 -script {ipconfig /all}"

  • Anonymous
    May 07, 2015
    You can just use : psexec * ipconfig /all
    From domain controler and it will launch on every domain workstation

  • Anonymous
    November 06, 2015
    Thank You for this blog. This command helped me lot.