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.

learn more… | top users | synonyms

0
votes
1answer
28 views

how to let a user change network settings without admin rights, hostednetwork mode change, runas

I look forward to make it possible for ordinary users, without admin rights, so that they can switch the local wireless card to a hostednetwork (windows softAP mode). the netsh command here is clear ...
0
votes
1answer
46 views

Set gateway for specific ip destination and port

I have two internet connections. One has a static public ip address (WAN-STATIC gateway ip 10.0.0.1) and the other has a dynamic public ip address (WAN-DYNAMIC gateway ip 10.0.0.254). I wish to force ...
3
votes
1answer
84 views

netsh advfirewall set store gpo: %COMPUTERNAME% does not work

I am in charge of a group of computers that process highly confidential data. They cannot be connected to the Internet or even the company network, only a network drive. So I wrote a batch file on the ...
0
votes
0answers
18 views

netsh advfirewall : how to force to prompt matched IP

I have a netsh script that inserts some IP's to block in the Microsoft firewall. All these rules are working perfectly. I would like to create an additional rule to have a popup / prompt from the ...
0
votes
0answers
40 views

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 ...
0
votes
0answers
42 views

Netsh Command To Block All Traffic Except A Program And A Port?

I discovered that you can use the netsh commands to control the Windows firewall, I am reading all the possibilities but I didn't found yet what I am looking for. Is it possible to use netsh ...
0
votes
1answer
92 views

Setting up port redirection on Windows Server 2012 in Amazon ec2

I have a couple of servers in amazon EC2 One server is a Windows Server 2012, is used to host a web application, there is an elastic ip address attached to this server. The second server is a linux ...
0
votes
0answers
52 views

NETSH : Set default ip address for an interface with multiple Ips

To test a load balancer I need to switch my ip address several time a day, and keep other ips routing trough other Wans. I run these commands in a batch script: netsh interface ip set address ...
0
votes
1answer
86 views

cmd - delete IP from rule (Windows Server 2008)

I'm banning IPs using the Windows Firewall with these commands in cmd (actually in C# but using the cmd): pushd advfirewall firewall set rule name="BlockedIPs" new remoteip="1.2.3.4" action=block ...
0
votes
0answers
1k views

OpenVPN: Setting DNS & WINS servers to Windows client, without DHCP

I have a few Windows 7/8 clients connecting to a Linux OpenVPN Server (tap). I'd like to set the clients' DNS and WINS servers upon connection. The OpenVPN isn't acting as DHCP server; there is an ...
2
votes
1answer
5k views

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\ ...
1
vote
0answers
183 views

Trying to run a netsh batch with foreign characters

I am trying to run a batch file with the following content: netsh interface ip>set dns "Połączenie lokalne" source=dhcp The file is saved as ANSI. My Windows codepage is 1250, the OEM one 852. ...
1
vote
1answer
468 views

ARR troubleshooting 502.3 / WinHttp tracing on Server 2012

I have the following scenario: 3 windows server 2012 virtual servers, all with IIS 8: 1 server with Application Request Routing 3 2 servers with the web applications that the ARR server routes to ...
3
votes
2answers
1k views

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 ...
1
vote
1answer
410 views

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. ...
-1
votes
1answer
146 views

No NETSH WLAN context in Server 2008 Core install? [closed]

I installed Windows Server 2008 Core on a netbook and I'm trying to set it up as a wireless router. Took forever to find the right wifi drivers... But now I'm running into this problem that there ...
4
votes
1answer
10k views

What exactly does netsh int ip reset reset?

Having got this problem and found this solution I think I should perhaps try netsh int ip reset reset command but I am afraid it can reset some important settings and disable me from reaching the ...
3
votes
1answer
1k views

Is ECN (Explicit Congestion Notification) turned on by default on Windows Server 2012?

In a company network I noticed that all examined Windows Server 2012 machines had ECN turned on: > netsh interface tcp show global TCP Global Parameters ...
0
votes
1answer
563 views

Block Inbound TCP Traffic For All IPs w/ Exceptions Using netsh

Trying to figure out a way to do this: netsh advfirewall firewall add rule name="ES 9500 (Block)" dir=in action=block protocol=TCP localport=9500 netsh advfirewall firewall add rule ...
0
votes
0answers
224 views

Block incoming DNS queries using netsh advfirewall

How do you do this with Windows firewall? iptables -I INPUT --in-interface ! lo -p udp --dport 53 -j DROP Ideally, if you can do this with netsh and so that it will survive whatever it is that ...
0
votes
1answer
275 views

Problems using portproxy mapping on windows

I have a server app installed on windows server 2012 called air video server which on installation attaches to my local address [::1] instead of my network address [192.168.0.3] on port 45631, I need ...
1
vote
0answers
521 views

Any way from a command line to change the DNS suffix of a Win7 PC?

I need to change the DNS suffix on Win7 PC's. Netsh does lots, but I can't find this in there. Any way to change it in a batch file (such as a logon script)?
0
votes
2answers
556 views

Has NETSH been replaced by PowerShell yet (Dec 2012)

Simple question: Can I avoid using NETSH in Windows Server 2008 R2 and instead use PowerShell CmdLets to manipulate things like HTTP? If so, what are some CmdLets to get me started and are they part ...
1
vote
2answers
285 views

netsh doesn't provide commands

According to Netsh Commands for Wired Local Area Network (LAN) in Windows Server 2008 and Windows Server 2008 R2, netsh should provide commands such as netsh add profile filename="profile.xml" ...
3
votes
1answer
881 views

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 ...
2
votes
3answers
3k views

How can I use netsh to find a rule using a pattern

I'm wondering whether anyone in Microsoft has ever come to a situation where they can't remember a rule's name! The netsh advfirewall firewall show rule only accepts 1 name and no pattern matching ...
0
votes
2answers
2k views

Windows 2008 core HyperV 4 ports open- what's required for remote management?

On a brand new install of Windows 2008 core (for use as a hyper V host( There are 4 ports open to the world: 135/tcp open msrpc 445/tcp open microsoft-ds 2179/tcp open unknown 49154/tcp open ...
4
votes
1answer
1k views

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 ...
1
vote
1answer
544 views

Why isn't IIS 7.5 picking up netsh iplisten list?

When I execute the command netsh http show iplisten It returns a list of IP addresses I added manually: IP addresses present in the IP listen list: ------------------------------------------- a b ...
5
votes
2answers
2k views

Unable to increase the dynamic port range on Windows Server 2008

I'm trying to "tune" the TCP/IP stack on some Windows Server 2008 machines by following the instructions here: ...
0
votes
1answer
2k views

Windows virtual wifi hostednetwork - set max number of clients?

I'm building an app that has functionality that creates on the fly a new virtual wifi utilizing the Windows 7 / 2008 features. I can create it just fine, but am looking how to limit the maximum number ...
0
votes
1answer
2k views

How to set interface settings for WINS using netsh?

On the Advanced settings in the of a network interface Properties there is the WINS tab, where the address for the WINS server can be set. How do I add the address using netsh instead, for both ...
0
votes
1answer
106 views

Changing Window XP Network configuration (IP Address, Subnet, Default GW etc) in CMD

I'm not able to permanently replace my Ip addresses using NETSH. I've tried all possible options but nothing. when I reboot the computer I get my old IPs. I'm this was done before... any idea? ...
2
votes
2answers
200 views

Changing IP address via CMD on windows XP

Im trying to change a machine ip address vi CMD with this code: netsh int ip set address name="Local Area Connection" source=static addr=???.???.???.??? mask=255.255.255.0 The problem that the IP ...
1
vote
0answers
503 views

How to allow RDP through IPSEC using netsh advfirewall command

I have an offsite windows server 2008 R2 server. And an ipsec tunnel set on our router here plus a connection security rule in Advanced Firewall on the server. I have ssh access to the console on the ...
2
votes
1answer
1k views

TCP offloading/NetDMA & magic commands

Can someone explain to me why: netsh interface tcp set global autotuning=disabled netsh interface tcp set global chimney=disabled netsh interface tcp set global rss=disabled is a "magic fix" for ...
1
vote
1answer
1k views

Upgrading ipseccmd script (XP) to WIndows 7 using netsh

Current script: cd "%ProgramFiles%\Support Tools" ipseccmd -w REG -p "IGA-B-Gone" -r "Block Outbound connections to IGA servers 72.3.184.144/28" -f 0=72.3.184.144/255.255.255.240::TCP -n BLOCK -x ...
2
votes
1answer
837 views

Windows Server: Multiple reserved ip's delete

As far as I know using the command: netsh dhcp Server serverIP Scope x.x.x.x delete reservedip reservationip macaddress[..] Will delete a single reserved ip, is it also possibile to delete a whole ...
8
votes
2answers
4k views

netsh.exe: Error 87

I'm having some trouble creating a urlacl reservation in Windows Server 2008; probably this a rookie mistake. The command line I'm using is: netsh http add urlacl url=http://+:99898/ user=ben The ...
1
vote
2answers
970 views

Check if a specific IP address exists on local NIC

I'm looking for a simple script or batch method for checking the existence of a specific IP address (being moved between machines via NETSH) on the local network card. I need to start up certain ...
0
votes
1answer
244 views

netsh add IPs Batch Script

I am trying to add a large block of IP addresses to our NIC in Server 2008 R2. For some reason this isn't working from the command line or from a batch file though. FOR /L %A IN (131,1,190) DO netsh ...
3
votes
2answers
3k views

Can we use wildcards with NETSH HTTP ADD URLACL in Windows 7 / 2008r2?

i'm using IIS7 express and therefore need to unblock port 80 if I wish to hit the website locally and on the default http port. To do this, i use .. netsh http add urlacl ...
2
votes
2answers
1k views

Bind ADFS 2.0 service to a specific IP address

I have one server with ADFS-2.0 and a few websites on it. One of the websites is Dynamics CRM which listens on a specific IP address on port 443. Dynamics CRM provides a metadata file for ...
1
vote
1answer
3k views

Netsh, how to open ports in windows firewall for WMI?

How can you open ports in windows firewall for WMI using netsh command ? On windows vista and newer MS OS-es you run this command netsh advfirewall firewall set rule group="windows management ...
0
votes
1answer
131 views

Windows Raw TCP traffic and ICS

We have a software project where we use a Windows XP SP3 PC to route all IP traffic from a remote PC connected via a radio interface. We are accomplishing this using the winpcap library to send the ...
6
votes
3answers
4k views

How to run VisualSVN Server on port 443 running IIS on same server?

Server 2008 R2 SP1 VisualSVN Server 2.1.6 The IIS server has about 10 sites. One of them uses https over port 443 with the following bindings: http x.x.x.39:80 site.com http x.x.x.39:80 www.site.com ...
1
vote
1answer
988 views

How do I enable multicast routing in Windows XP

I have successfully set up a Windows XP machine as an IPv6 router using netsh, that is, it announces prefixes and forwards packets on two interfaces, as verified by pinging. Now I'd like to forward ...
0
votes
1answer
1k views

Netsh Classless Static Route DHCP Option

I want to add netsh command to set Classless Static Route 249 in DHCP Scope, I use this command but it gave me an erorr, I am using windows server 2003 R2 netsh dhcp server \SRVDC01 scope 10.0.17.45 ...
0
votes
2answers
1k views

netsh dhcp isn't working on Windows Server 2008

Gents, I am trying to run the following command on a fresh Windows Server 2008 box. netsh dhcp server 10.2.x.x scope 10.2.x.x show client and I am given the following error the following command ...
0
votes
2answers
729 views

Is netsh available on 64-bit Windows Server 2008?

I'm trying to configure a port with an SSL-certificate on a machine running Windows Server 2008. Configuring the port with netsh on my local computer (Windows 7) works just fine, but I just can't find ...