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.

0
votes
0answers
29 views

Azure VM not serving a website

I have created an Windows Data Center 2016 VM on Azure and configured it for RDP and HTTP. I managed to successfully connect using RDP and started a .NET Core self contained app at port 80. When I ...
1
vote
0answers
32 views

Outbound NAT on Windows

I am starting to admin Windows server and have some troubles with network tools. I am trying to configure nat on Windows Server 2012. My Windows VM has two networks adapters, the first one connected ...
1
vote
0answers
59 views

When is “netsh.exe http update sslcert” available?

On some PC's running netsh.exe http update help shows the command netsh.exe http update sslcert and it works, but on other PC's it does not. (Both running Windows 10.) When was it introduced / removed?...
1
vote
1answer
102 views

How to enable folder sharing using netsh?

I'm trying to enable folder sharing for all. netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes Seems to work for File and Printer but netsh advfirewall firewall ...
1
vote
1answer
44 views

How to change network adapter DNS servers on Windows without using netsh or WIM

I would like to modify network adapter DNS servers on Windows programmatically. I don't want to use WMI, because it fails for instance when no network cable is connected to the ethernet adapter being ...
0
votes
2answers
234 views

SMB on a NIC with multiple IP in same subnet

I have a Windows 2008 R2 server and set multiple IPs(same subnet) on a NIC. Now SMB service is binding on the lowest IP address as port 139, 455 are opened on it. My question is, can I bind SMB to ...
1
vote
2answers
1k views

NETSH - how to bind SSL Certificate to port and pass traffic to application?

On Windows Server 2016 I have a simple python web server (in flask). It works great, and listens on port 80 (or whatever I configure it to listen on). I need to serve it over SSL. I have a good ...
1
vote
0answers
208 views

Dhcp server on windows 2008r2 gives this error: “unable to determine the dhcp server version”

Hi i have two dhcp server on my lan and each of them is running on a dc (windows 2008r2). i'd like to manage both of the dhcp server from the command line with the netsh command by domain\...
1
vote
0answers
179 views

How to clear program/service from Windows firewall rule with netsh

I want to use netsh.exe to modify an existing Windows firewall rule, to remove the "Programs" and "Services" part of the rule. In other words, I want to set it to "All programs that meet the specified ...
1
vote
0answers
67 views

Wireless Hosted Network client isolation

I would like to know if there is an option to enable/disable client isolation when using the Wireless Hosted Network feature, present in most windows 7 laptops with a capable wireless adapter, and ...
0
votes
0answers
110 views

No Effect Registering SSL Certificate for HTTP port on a Windows Server

I have this Windows Server 2016 where a windows third-party Windows service is listening to a specific port that is in turn associated with a specific SSL certificate. At first, the SSL certificate ...
0
votes
1answer
876 views

Set Remote Computer To DHCP Enabled Without Using WinRM

How can I set a remote computer to use DHCP instead of a static IP address? I have tried using Set-NetIPInterface -DHCP Enabled however this requires WinRM which is disabled on my network. How can I ...
1
vote
0answers
362 views

IIS stops listening

I have a Windows server that periodically stops responding to requests on a particular IP address. I can find no reason/cause, but I'll confess right off the bat that I'm not a sys/network admin. The ...
1
vote
0answers
51 views

netsh dhcp differs from mmc dhcp

While building an automated script for counting the amount of Wi-Fi users I encountered the following problem on our W2k8r2-server: Netsh dhcp server scope 192.168.1.0 show clients No of clients: 13 ...
0
votes
1answer
5k views

blocking ip address with netsh filter

i am trying to block ip address on my machine by doing the following in cmd netsh ipsec add policy name=IPSystem netsh ipsec static add filter filterlist=BlackList srcaddr=74.356.69.108 dstaddr=me&...
1
vote
0answers
88 views

Disabling ECN: Netsh: incorrect paramater when executing via SaltStack cmd.run

I'm attempting to mass disable Explicit Network Congestion Notification on a group of Windows Server 2012r2 servers hosted in AWS EC2. I'm using the Salt Stack configuration management tool. When I ...
2
votes
1answer
871 views

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

Two Option ID 51 in DHCP

I'm using this command: netsh dhcp server \\serverName 10.11.12.3 show optionvalue and am getting back two values for option 51: Changed the current scope context to 10.11.12.3 scope. Options for ...
0
votes
0answers
945 views

Set Multiple IP Addresses For DHCP Option 6 DNS Server Using Netsh

I am trying to set two IP addresses for option 6 DNS server using this code: $serverIpAddress = '11.12.13.14' $subnet = '11.12.43.33' $value = '11.12.74.21,11.12.74.22' netsh dhcp Server $...
2
votes
1answer
2k views

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

Set the default interface for routing / traffic

I have a Windows 2008 R2 (or newer, doesn't matter) server with IP 192.168.68.14/24 on interface "Ethernet0" / index 12. When adding the IP address 192.168.68.222/24 the interface 192.168.68.14 is ...
0
votes
1answer
570 views

Windows Server 2012 | Cannot connect | Network settings need to be reset

I currently rent out a Windows Server 2012 dedicated server off shore. I was trying to configure an additional IP address for my server so i was went to network sharing and adapter settings. From ...
1
vote
1answer
86 views

Making secondary Ip addres primary, without disrupting internet connectivity

I'm adding a secondary IP address with this command: netsh interface ipv4 add address "Ethernet" NewIp 255.255.255.0 After that, I want to make this address primary (default), without disrupting ...
0
votes
1answer
2k views

Multiple IP Addresses from DHCP

I have a problem with multiple processes needing to bind a TCP socket to the same port in Windows Server 2008. At the moment I believe this is causing some unexpected erratic behavior as a race ...
3
votes
0answers
256 views

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

How to refresh netsh wlan show interface (while doing a wifi survey of the room)?

I like using the command netsh wlan show interface to quickly get info on my wifi connection. Does anyone know how I could have the output refresh every second? This would allow me to do a quick wifi ...
1
vote
1answer
1k views

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 ...
1
vote
0answers
2k views

How to redirect IP address to another IP address using netsh windows tool?

My question is : how to redirect IP address to another IP address ex: 10.10.10.10 -> 20.20.20.20 (these IP are external) This answer shows me how to map IP adress to localhost. Can I redirect/route ...
5
votes
1answer
24k views

Can I redirect/route IP adress to another IP address (windows) [closed]

Can I map 146.112.61.106 IP address to my 127.0.0.1 adress ? so when I type 146.112.61.106 I got redirected to 127.0.0.1 ? (some netsh command maybe ?)
1
vote
0answers
103 views

IPsec Security Associations prevail even after IPsec tunnel is down

I am working on a script that can detect if existing IPsec tunnels on a system have gone down. From my observations, I have seen that it can take any where between 1 second to 8 minutes for this to be ...
0
votes
1answer
2k views

netsh command to add interface

I am working with Windows 2012 R2 Core and I having problems with setting up my NICs after they got reset. When I run "netsh int show int" it shows bother Interfaces as Enabled and Connected. ...
3
votes
1answer
3k views

Disable DHCPv6 client in Windows

I don't quite understand the link between 4 parameters related to IPv6 stateful and stateless autoconfiguration used under netsh int ipv6 set interface command context in Windows: advertise ...
0
votes
0answers
90 views

DHCP export using netsh

I'm trying to export a DHCP database using the following command: netsh dhcp server export c:\dhcpdb.dat all However it completes with the error WARNING: Could not obtain host information from ...
5
votes
2answers
1k views

Deallocated Azure VM Loses IPv4 DNS Address

I deallocate my development Azure VMs every night to conserve my credits. My VMs are all on one vnet using a domain controller. Since it is on the subnet, the domain controllers address never changes. ...
0
votes
1answer
715 views

Work Folders / IIS - Using Wrong Certificate - Ignoring Bindings

I can't seem to get Work Folders to serve using the correct certificate. I've bound it via netsh to a wild card certificate, and when I check "netsh http show sslcert" every binding uses the correct ...
1
vote
1answer
1k views

Losing internet connection after adding second IP address (Windows)

I'm creating simple program to add address via windows form. It's actually only call this command: netsh interface ip add address The address was successfully added, but after executing that command,...
0
votes
0answers
506 views

No connection available in pool. netstat RecvQ shows high number

In our servers there is one particular dependency (java jar), which makes a total of 1024 connection to various remote servers (the library works as a service discovery). Intermittently, it is ...
4
votes
1answer
4k views

How to get a list of sites in IIS 7.5 binded to a certain ssl certificate using command line

Situation: an IIS 7.5 server with 30+ sites and 10+ certificates and a few certificates may be obsolete. Obsolete means they're not binded to the ip:port of any site on IIS. I could check each site ...
4
votes
2answers
5k views

Windows firewall, netsh, block all ips from a text file

am using the following scrip to block ip's from a text file into the windows firewall. I'm using windows 2008 R2 @echo off if "%1"=="list" ( netsh advfirewall firewall show rule Blockit | ...
1
vote
1answer
1k 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 ...
2
votes
1answer
8k 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 ...
4
votes
1answer
1k 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 ...
3
votes
0answers
497 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
1answer
1k 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
1answer
767 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
4k 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 ...
3
votes
1answer
20k 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\ SYSTEM\...
2
votes
0answers
656 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
2k 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 I ...
3
votes
2answers
4k 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 ...