netsh doesn't work against remote computers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using Windows XP Professional SP2 w/ all the latest updates installed.

The netsh utility does not work as described in the help files. It works
fine when run against the local PC, but it doesn't work when run against
remote computers, which the help file says it is supposed to.

The help file seems pretty straightfoward. Below are some commands I input
and the output produced, as well as some notes I've added (the specific
computer names and IP addresses have been changed):

INPUT: C:\>netsh -c diag show computer
OUTPUT: Computer System (MYPC1)
NOTES: This works. That's the name of my local computer.

INPUT: C:\>netsh -c diag -r OTHERPC show computer
OUTPUT: Computer System (MYPC1)
NOTES: This doesn't work. Obviously, it should show OTHERPC for the computer
name. Note that I can communicate with this computer fine. I can ping it and
browse shares on it. I am running these commands with a domain administrator
account and am an administrator on the remote computer OTHERPC.

INPUT: C:\>netsh -c "interface ip" dump
OUTPUT:
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip


# Interface IP Configuration for "Local Area Connection"

set address name="Local Area Connection" source=static addr=192.168.1.50
mask=255.255.255.0
add address name="Local Area Connection" addr=10.0.0.50 mask=255.255.0.0
set address name="Local Area Connection" gateway=10.0.0.1 gwmetric=0
set dns name="Local Area Connection" source=static addr=192.168.1.5
register=PRIMARY
add dns name="Local Area Connection" addr=192.168.1.6 index=2
set wins name="Local Area Connection" source=static addr=192.168.1.5


popd
# End of interface IP configuration
NOTES: This works. This is the configuration of the LAN interface on my
local PC.

INPUT: C:\> netsh -c "interface ip" -r OTHERPC dump
OUTPUT:
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip



popd
# End of interface IP configuration
NOTES: That didn't work. I should've seen the configuration of the LAN
interface on the remote PC.

So from this you can see that netsh works fine when run on my local PC, but
not when run against a remote PC. As stated previously my local PC and the
remote PC can communicate. I believe that whatever network services need to
be running for netsh to work against remote computers are running fine. This
is illustrated with the commands below.

INPUT: C:\>systeminfo | find "Host"
OUTPUT: Host Name: MYPC1
NOTES: This works. That's the name of my local PC.

INPUT: C:\>systeminfo /s OTHERPC | find "Host"
OUTPUT: Host Name: OTHERPC
NOTES: This works. That's the name of the remote PC.

I have tried running these netsh commands from multiple computers and tried
running them against multiple remote computers, and gotten these same results
each time. All computers were running Windows XP Professional SP2. I've had
all Windows updates applied to both the local and remote PC, and also tried
it on computers that did not have all the latest updates applied.

Why is netsh not displaying the configuration of a currently running remote
computer? How can I make netsh do this?
 
Back
Top