I've been fighting with Netsh for a couple hours now. I burn with
disappointment - it sucks serious ass. It's such a great concept.
Once again, success of a product all comes down to consistency.
As an example of one thing I'd like to do, on my local workstation, or
on Windows 2000, or Windows 2003, I can do this:
C:\>netsh interface ip show wins
Configuration for interface "Local Area Connection"
WINS servers configured through DHCP: 10.10.2.46
10.10.2.60
GREAT. Now Netsh also has -r to let me connect to a remote machine.
C:\>netsh -r deimos interface ip show wins
The following command was not found: interface ip show wins.
What the? Only a subset of commands?
C:\>netsh interface ip show
The following commands are available:
Commands in this context:
show address - Displays IP address configuration.
show config - Displays IP address and additional information.
show dns - Displays the DNS server addresses.
show icmp - Displays ICMP statistics.
show interface - Displays IP interface statistics.
show ipaddress - Displays current IP addresses.
show ipnet - Displays IP net-to-media mappings.
show ipstats - Displays IP statistics.
show joins - Displays multicast groups joined.
show offload - Displays the offload information.
show tcpconn - Displays TCP connections.
show tcpstats - Displays TCP statistics.
show udpconn - Displays UDP connections.
show udpstats - Displays UDP statistics.
show wins - Displays the WINS server addresses.
C:\>hostname
0034-4XWT821
C:\>netsh -r 0034-4XWT821 interface ip show
The following commands are available:
Commands in this context:
show icmp - Displays ICMP statistics.
show interface - Displays IP interface statistics.
show ipaddress - Displays current IP addresses.
show ipnet - Displays IP net-to-media mappings.
show ipstats - Displays IP statistics.
show tcpconn - Displays TCP connections.
show tcpstats - Displays TCP statistics.
show udpconn - Displays UDP connections.
show udpstats - Displays UDP statistics.
Lame, lame, lame.
I know other people are out there trying to do this. I'm a little
puzzled why it's not fully implemented.
I'd love to do this:
for /f %a in (allservers.list) do netsh -r %a interface ip show wins
Doesn't that seem like a nicer way to work with this?
|