Netsh on remote server
You're welcome :)
Now it's clear for me :) [...]Running with elevated rights gives the same result.[...]
Are you using Win7/2008R2 for that? If so, you need to specify witch IP protocol interest you, IPv4 or IPv6
So, proper syntax should be
netsh -r remotecomputer interface ipv4 show addresses
Hope, it helps you.Regards, Krzysztof ---- Visit my blog at http://kpytko.wordpress.com
October 24th, 2011 10:09pm
Try this out
netsh -r remote interface ip show config
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 9:14am
1. What account do you use? Domain administrator will be fine.
2. If it is not on the same subnet, then there may be problem with ports. Use TCPview (Sysinternals) to view, if the packets go through the active network devices ( firewalls, routers,... include the local FW at both servers)
3. Use netsh with elevated rights.
December 25th, 2011 9:32am
Hi, small mistype in your syntax :)
netsh -r remotecomputer interface ip show addresses
instead of "ip show addresses" use "ip show address" to get it working
so, it should look like
netsh -r remotecomputer interface ip show address
Now, it should work for you
Regards, Krzysztof ---- Visit my blog at http://kpytko.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 9:41am
That makes sense. I wish the documentation on Netsh was more complete.
Thanks!
December 25th, 2011 11:31am
Still getting the same result. I can do what I need with PSExec, or something, it would just be easier to maintain if I could do it natively. I wish I had time time to figure it out.
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 11:33am
Thanks Krzysztof, but I stll get the same result, command not found. "show addresses" does work locally, btw.
Connectivity, permissions, etc seem fine. I can browse the admin share, etc.
Running with elevated rights gives the same result.
December 25th, 2011 12:28pm
You're welcome :)
Now it's clear for me :) [...]Running with elevated rights gives the same result.[...]
Are you using Win7/2008R2 for that? If so, you need to specify witch IP protocol interest you, IPv4 or IPv6
So, proper syntax should be
netsh -r remotecomputer interface ipv4 show addresses
Hope, it helps you.Regards, Krzysztof ---- Visit my blog at http://kpytko.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 3:11pm
I'm trying to use netsh to modify static IP addresses on a remote server.
When I try:
netsh -r remotecomputer interface ip show addresses
I get:
"The following command was not found: interface ip show addresses."
but I get data if I try:
netsh -r remotecomputer interface ip show global
When I try:
netsh -r remotecomputer interface ip add address "Local Area Connection" xxx.xxx.xxx.xxx 255.255.255.0
it adds the address to my local computer, not the remote. Deleting the address also only works locally.
I feel like I'm missing something really simple here. Can anybody help?
[edit] Both servers are 2008 R2.
December 25th, 2011 4:59pm
Try using this to view the IP Address
show interface ip addr
http://technet.microsoft.com/en-us/library/bb490943.aspx
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 6:06pm
I still get "The following command was not found"
December 25th, 2011 6:15pm
One more thing, after:
netsh -r remotecomputer interface ip show
I get the following - a short list compared to running it locally:
The following commands are available:
Commands in this context:
show compartments - Shows compartment parameters.
show dynamicportrange - Shows dynamic port range configuration parameters.
show global - Shows global configuration parameters.
show interfaces - Shows interface parameters.
show subinterfaces - Shows subinterface parameters.
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2011 6:20pm
OK, I figured it out :) There is no address/addresses context for netsh on remote machine (XP/2003/7/2008/2008R2). Please check these steps to find out what you can request with
show on remote machine
Open command-line
1) netsh -r RemoteMachineName [enter]
2) interface [enter]
3) ip [enter]
4) show [enter]
yes, for that you need to use ipaddress/ipaddresses on Windows XP/2003 netsh utility
unfortunately, for Win 7/2008/2008R2 many of those contexts are unavailable. Check that by your self going through all these steps above. You will see that
netsh tool is limited for remote management from 7/2008/2008R2
For that I would suggest to use WinRM and PowerShell or run it from XP/2003 version of netsh tool
Regards, Krzysztof ---- Visit my blog at http://kpytko.wordpress.com
December 26th, 2011 3:26am


