Questions tagged [netsh]

In software, netsh, or network shell, is a utility included in Microsoft's Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices.

In software, netsh, or network shell, is a utility included in Microsoft's Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices.

Technet Article

112 questions
4
votes
2 answers

Netsh Dump missing DNS settings

I'm trying to figure out why "netsh dump" produces different scripts on 2003 versus 2008. In output below, I've used "netsh interface ip dump" to keep the length of this post reasonable. I've searched the full dump, and the DNS settings have not…
Clayton
  • 4,483
  • 16
  • 24
4
votes
1 answer

Is it possible to get logging in netsh interface portproxy

I am using netsh interface portproxy to do some port forwarding on a server. Is there any way at all to see any logs of what was the input sent to the port, whether something was forwarded etc? i.e. does netsh write any logs?
user93353
  • 287
  • 1
  • 5
  • 17
4
votes
1 answer

Windows Firewalls iptables equivalent

I'm looking for an equivalent for iptables in windows, recently my server has been getting hit by a DDoS and I know how to block it using iptables but not in Windows. I'm looking to do something like the below, but in windows. # Size of the udp…
xna
  • 43
  • 2
  • 3
4
votes
0 answers

Windows MTU can no longer be set higher than 1500 Bytes?

For some time we have been using jumbo frames on several computers without problems. But suddenly I am no longer able to increase the MTU on some computers to more than 1500 Bytes. netsh returns error for any MTU value higher than 1500: netsh…
3
votes
2 answers

Use netsh to show enabled firewall rules only

I'm using the following command to list firewall rules netsh advfirewall firewall show rule dir=in name=all How can I display enabled rules only? There's no switch like enabled=true
daisy
  • 747
  • 4
  • 13
  • 28
3
votes
4 answers

Need to change IP addresses on 35 servers remotely

We are going through a network redesign and I have 35 Windows 2003/2008 servers at a remote location that I need to change the IP address, gateway and DNS informaiton for. Ideally I would like to be able to preform this from a command line on my…
Richard West
  • 2,968
  • 12
  • 42
  • 49
3
votes
1 answer

netsh dhcp binding command not working on Server 2016?

I have kind of a weird issue. I'm migrating Server 2008 R2 to Server 2016. We have a DHCP Server role which services two scopes. When setting them up, a line runs: netsh dhcp server \\computername set bindings "ethernet1" enable On Server 2016, I…
prelic
  • 319
  • 3
  • 17
3
votes
2 answers

Prevent IIS Listing on Port 443 for Single IP Address

I am running a website in IIS and am also running another piece of software which streams media over port 1935 on the same server. The streaming software also has the capability of delivering content over port 443. I have assigned an SSL certificate…
5lovak
  • 422
  • 5
  • 11
3
votes
0 answers

Win7, add route with netsh without mentioning interface

I want to make a script for my team to add routes, but as each computer has its own set of interfaces so I can't know interface name/ID in advance. Is it possible to do with netsh(I know how to do it with 'route add')? Here is how I tried netsh…
Alex C
  • 31
  • 2
3
votes
2 answers

How to use Windows netsh firewall command to allow only specific ipaddress on all port and deny all other ipaddress?

I require a configuration of firewall which will allow me connection through only specific ip-address say 10.0.0.1 on all port ranging from 0-5555 and deny all other ip-addresses? What will be the syntax of netsh firewall command to generate this…
snoop
  • 131
  • 1
  • 4
3
votes
4 answers

Is there an equivalent to "netsh dhcp" on Linux / BSD

I have a DHCP server running on Windows 2003 Server. I'd like to query the lease database to find details on a lease for a specific IP. How do I do this remotely from Linux? There is this command on windows xp: netsh dhcp server
AdrienF
  • 125
  • 3
  • 10
3
votes
0 answers

netstat e on windows shows really high bytes count

running netstat /e is giving me strange results "bytes received" from netstat /e output is always way higher, about 10 times higher than when netsh interface ip show subinterfaces is run. wireshark also shows similar number as the netsh command, am…
ljk
  • 131
  • 1
3
votes
1 answer

What else does "netsh int ip reset" do?

According to this KB article when you run the "netsh int ip reset" command, all it does is to reset the content of two registry keys: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ SYSTEM\CurrentControlSet\Services\DHCP\Parameters\ but on my…
Chris
  • 260
  • 1
  • 4
  • 15
3
votes
1 answer

Use a separate Teredo server and Teredo relay in Windows

All documentation (including microsoft's) about Teredo mentions the existance of Teredo Servers and Teredo Relays (and host-specific relays). Microsoft itself even runs public Teredo Servers (but no relays). But when I try to configure Teredo in…
RedFury
  • 31
  • 1
  • 3
2
votes
1 answer

How to disable IPv6 dhcpstaticipcoexistence on Server 2019

I have a Server 2019 host that has a static IPv6 address. It seems Microsoft added a feature in Windows 10 that is also present in 2019 where a host can have both a static IP address, as well as a DHCP address. This feature is enabled by…
fukawi2
  • 5,327
  • 3
  • 30
  • 51