NuttyCloud

Your TechDude on WEB

Run IPCONFIG /ALL remotely by using PSEXEC

For System Administrators it is important to know the Windows command line commands like how to get the output of remote servers or computers by running commands from local machine. Now lets discuss about how to Run IPCONFIG /ALL remotely by using PSEXEC to get the IPCONFIG /ALL details from remote system.

Run IPCONFIG /ALL remotely by using PSEXEC

From your desktop or laptop, need to go to the command line (Run As Administrator or with elevated access)

psexec \\remotecomputer ipconfig /all

Note: psexec is not internal windows command, need to be download from the Microsoft site (PStools) or if it is already available in your machine, make sure you run from that folder where the PSEXEC file available)

Run IPCONFIG /ALL remotely by using PSEXECExample output:

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

Run IPCONFIG /ALL remotely by using PSEXEC for multiple servers

If you have more than one computer, you can put the computer names in a text file (example: computerlist.txt) and run it like this

psexec @computerlist.txt ipconfig /all

You have to run the above steps with elevated or admin privileges from Command Prompt, otherwise it will not work.

Just follow the above steps to get the output of remote server / computer by using ipconfig /all command from your local laptop or desktop. ipconfg /all commands to helps to get remote server IP address, subnet mask, DNS records, DHCP ip address, gateway and whether the remote server configured on IPV4 or IPV6.

Leave a Reply

Your email address will not be published. Required fields are marked *

NuttyCloud BLOG - Your TechDude on WEB © 2016, All Rights Reserved.