Welcome to TechNet Blogs Sign in | Join | Help

Syndication

News

Locations of visitors to this page These postings are provided "AS IS" without warranty, and confer no rights.
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.

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

Published Saturday, December 15, 2007 11:04 PM by Brad Rutkowski

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Geek Lectures - Things geeks should know about » Blog Archive » Need to get IPCONFIG /ALL from a computer remotely? @ Saturday, December 15, 2007 6:36 PM

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

Geek Lectures - Things geeks should know about » Blog Archive » Need to get IPCONFIG /ALL from a computer remotely?

# re: Need to get IPCONFIG /ALL from a computer remotely? @ Saturday, December 15, 2007 6:37 PM

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.

Brad Rutkowski

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
Page view tracker