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

116 questions
1
vote
1 answer

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 set rule group="Public folder sharing" new…
FoxyZ
  • 11
  • 3
1
vote
1 answer

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 modified. What's more, it does not support…
Mariusz Schimke
  • 155
  • 1
  • 8
1
vote
2 answers

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 certificate, and imported it into the Computer/personal…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
1
vote
0 answers

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\administrator as user but i'm unable to do that on the remote…
D'Arcy Nader
  • 111
  • 1
  • 6
1
vote
0 answers

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 conditions", and "Apply to all programs and…
richb
  • 141
  • 1
  • 5
1
vote
0 answers

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 what is its official default behavior. I can't…
user2464424
  • 121
  • 1
1
vote
1 answer

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 do it using a built in Windows technology like…
David Klempfner
  • 195
  • 2
  • 13
1
vote
0 answers

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 only solution that I've found to bring the sites…
James Hill
  • 143
  • 8
1
vote
0 answers

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 in scope. While looking at Microsoft Management…
MKZ
  • 261
  • 1
  • 3
  • 9
1
vote
1 answer

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&& but it seems the IP address did not blocked what…
madam mar
  • 13
  • 1
  • 1
  • 3
1
vote
0 answers

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 execute the command to disable ECN locally, on a…
1
vote
1 answer

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 Scope 10.11.12.3: For user class [Default BOOTP…
David Klempfner
  • 195
  • 2
  • 13
1
vote
1 answer

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 internet connectivity. Let's say I have the…
F Andrei
  • 85
  • 6
1
vote
1 answer

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 condition between processes exists, where you can't…
Luke
  • 557
  • 1
  • 5
  • 11
1
vote
0 answers

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 detected using the command: netsh ipsec dynamic…
ngn
  • 333
  • 1
  • 10