Questions tagged [netsh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Windows 10 no internet access with 4G dongle & LAN

I have the following setup on a remote computer: Ethernet connection: only for local network - no internet access 4G dongle: internet access When combining the two, I don't have internet access. ...
0
votes
0answers
7 views

Is there a wildcard for Windows-Firewall rule names?

netsh advfirewall firewall show rule name="MyExact Rule Name" Can I somehow show all the rules beginning with "MyExact" for example, with % or * or whatever ?
1
vote
1answer
39 views

How to add multiple IPv6 addresses to an interface in Windows?

I can add addresses to an interface using netsh interface ipv6 add address SomeInterface SomeIPv6Address Can I somehow add a range of ipv6 addresses e.g. 2001:db8:0000:0000:0000:0000:0000:0001 to ...
0
votes
1answer
159 views

Local port forwarding - macOs Big Sur

I need to forward all traffic going to 127.0.0.1:5432 to 192.168.1.103:543 on macOS Big Sur. Similar command on Windows is netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=5432 ...
0
votes
1answer
58 views

Understanding IP address assignment and routing of hosted network

The hosted network ("Wifi tethering" or "wireless access point") can be enabled with: netsh wlan set hostednetwork mode=allow ssid=[name] key=[password] netsh wlan start ...
1
vote
2answers
173 views

netsh advfirewall command was not found

I have an advanced rule setup in Windows firewall that I want to be able to turn on and off via an AutoHotkey script. RunWaitOne(command) { shell := ComObjCreate("WScript.Shell") ...
0
votes
0answers
11 views

Using netsh proxy to portforward to remote VPN

I have a VPN client set up on my Windows machine connecting to a VPN elsewhere. I have a small embedded Linux device on the same local network as my Windows machine. This embedded device needs to ...
0
votes
0answers
420 views

Find who excluded port range

When trying to start docker container, the following errors is shown: Cannot start service <service>: Ports are not available: listen tcp 0.0.0.0:5601: bind: An attempt was made to access a ...
1
vote
1answer
328 views

What is the exact equivalent of this netsh Windows command for MAC? The command is attached in the body

I want to block all networks from my PC with admin access and make it so that the user cannot reverse the changes. I will use admin access to only white list certain networks that will be visible to ...
0
votes
0answers
13 views

How to set different TTLHOP for TCP ports

We want to set sensitive TCP/UDP Ports at low TTL/HOP Leaving other ttl/hop at 128 default data center = 3 Priv net = 8 Internet = 128 default Ssh 22 = 8 (internal hop max) Rdp 3389 = 8 Http 80 = 128 (...
0
votes
0answers
37 views

How can I verify rabaseddnsconfig is disabled?

I followed the workaround https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-16898 and disable rabaseddnsconfig. How can I verify that it is disabled?
3
votes
1answer
54 views

Performing network connection “diagnose” / “troubleshoot” via command line in Windows

Is there a way in command line to do the steps that Windows 10 does when you right click a network connection and choose "diagnose" or when you tell it to troubleshoot a connection? I'm ...
5
votes
2answers
6k views

Make IP address of WSL2 static

I am running an SSH server within WSL2 on a WIN10 machine. To make that work I am using: netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=22 connectaddress=172.19.237.178 ...
0
votes
1answer
255 views

netsh advfirewall can not set group profile

Windows Server 2008 R2 Standard, 64 bit. Powershell version 5.1.144049. Trying to use a command from this Microsoft Support Page -> Example 8: Enable specific services netsh advfirewall firewall ...
0
votes
0answers
30 views

How can I script changes to MTU settings for disconnected VPN connections?

I've implemented Microsoft Always On VPN for the users at my company - it works well so far, except I need to lower the VPN MTU to improve performance and stability for RDP connections. The way I do ...
1
vote
1answer
827 views

Change metric of a disconnected interface with netsh

I am creating a Wapt_package to deploy VPN Interface on our user's terminal. I create the VPN interface without issue, but we need to set the metric of the vpn interface to 1. add-VPNConnetionRoute -...
0
votes
0answers
422 views

Slow Internet Speed Windows 10 NETSH WINSOCK fixes it

So I have stumbled upon an extremely annoying task I have to do everyday and that is to run netsh winsock reset catalog everytime I boot into Windows. I have no idea why this has come about but its ...
0
votes
1answer
28 views

What does the parameter -c for netsh actually do?

The Microsoft Doc says "-c Optional. Specifies that netsh enters the specified netsh context." I don't understand what the context means here. Could anyone explain this parameter for me? I would ...
2
votes
1answer
121 views

Internet Connection Sharing + Port Forwarding range

I'm using Internet Connection Sharing from a Windows 10 computer in order to give a device internet connection and would like to use port forwarding from this connection as well but I need to add a ...
0
votes
0answers
24 views

Cannot connect to network (Network Connections empty, troubleshooting worsened it)

This is on a Windows 10 x64 PC: Initially, I could connect to the network, but unable to ping, then in trying to fix this, I unfortunately followed the advice on this page: https://windowsreport.com/...
0
votes
0answers
374 views

Setting HTTP Proxy using netsh winHTTP not working on windows server 2012 R2

We're trying to set the proxy on our Windows 2012R2 server using the netsh via an Admin CMD prompt Netsh winhttp set proxy 127.0.0.1:80 After doing this the Netsh winhttp show proxy command shows the ...
0
votes
1answer
232 views

How to route tcp traffic from all/range of ports to a single port?

I would like to do something that's possible with IPTABLES(for linux), on a Windows 10 - that is to route multiple ports to a single port. I thought I'd manage to do it with netsh, but it doesn't ...
0
votes
1answer
37 views

How to connect/disconnect a network not found by netsh?

I use a network which can be found with ipconfig but cannot with netsh wlan show networks or netsh wlan show interfaces. I assume this may not be a wlan network but something else. I know it's ...
1
vote
1answer
255 views

Exclude route from netsh interface

My setup is as follows: Windows 10, Corona forced home office, I'm an external contractor at a huge company I'm connecting to the VPN of my company, called MyVPN, some internal IPs of our client are ...
1
vote
1answer
65 views

How to show keys in netsh without mentioning the name parameter

Queria saber se no netsh show profiles key=clear,ao invés de colocar o ssid de cada rede para ver o "Conteúdo da chave", poderia mostrar de uma forma geral. Já tentei usar o "*" no name,mas não deu ...
2
votes
0answers
168 views

How to clear the state of Windows filtering platform?

To troubleshoot firewall I use: netsh wfp show state this generates xml file for all the dropped packets and firewall state. the problem is that this file is 13 MB, and it keeps growing each time I ...
0
votes
1answer
347 views

A Windows 10 service is using ports 40 and 443. How can I change them?

I want to use ports 80 and 443 for Apache server but they are reserved for a windows service as shown by netsh http show urlacl see output here Firewall inbound rules show that BranchCache Hosted ...
0
votes
2answers
192 views

How to create a scheduled task that blocks access to the Internet but not to the local network?

I need your help. I should to create a scheduled task that blocks access to the Internet but I must have access to the local network. Also this task should work on weekdays from 8:00am to 5:00pm.
0
votes
1answer
2k views

finding the reason for being disconnected from wifi network

I am behind a firewall known as Sophos. I use Windows 10. I am facing some challenges in my Windows 10 I am getting frequently disconnected from my wifi . .There are power outages in my network but ...
1
vote
1answer
864 views

Windows 10 route keeps coming back after a while every time I delete it with route delete, how can I delete route for good?

Initially I had a raspberry pi/pi2 on my network beating my router dhcp server and serving up IPs and because of some default options Windows clients started receiving the IP address of the pi2 dhcp ...
1
vote
0answers
131 views

“netsh wlan connect” always outputs success, never actually connects

I'm running a portable hotspot on my phone. I wanted to connect to it using batch, so I created a profile file, added it as a profile with netsh and tried to connect. Netsh claims the request was ...
0
votes
1answer
426 views

Netsh http command gives me an invalid handle error message

When running netsh http delete iplisten ipaddress=0.0.0.0 i get the error message displayed below. IP address delete failed, error: 6 The handle is invalid Anyone have an idea as to why?
2
votes
1answer
4k views

“netsh wlan show networks” only shows the currently connected WiFi network

I am using Windows 10 Pro. Often when I run "netsh wlan show networks" it only shows the currently connected WiFi network. Here is the output from that: Interface name : Wi-Fi There are 1 ...
1
vote
0answers
2k views

netsh wlan show profiles name=“name” key=clear"

I wrote in cmd with administrator rights this "netsh wlan show profiles name="name" key=clear" but I dont see the password of the wifi, only "key content: available". Anybody know whats happend? ...
1
vote
0answers
160 views

Connect from cmd to WiFI with emoji in its name

How can I connect to a WiFi network that its name contains emojis? I tried the regular way of netsh wlan connect name="name" ssid="ssid", and also with different encoding types. Tried also to copy ...
0
votes
0answers
28 views

I can access website even after I create firewall rule to block it’s IP address

I want to block specific IP address like this: netsh advfirewall firewall add rule name="BlockIP" dir=out interface=any action=block remoteip=216.58.201.110 When I execute this command, I cant ping ...
0
votes
1answer
492 views

How do I make it so port http://127.0.0.1:3000 connect to the World Wide Web in Windows

I have a Node Application running on a Server, with a Static IP @ 172.168.355.27 On it is a node server is running locally, it can be address through localhost:3000 or 127.0.0.1:3000 This is a ...
0
votes
0answers
825 views

Remove IPv6 address from interface

How can I remove redundant addresses from network interface. I have a bunch of unnecessary ones, temporary and usual ones I do it like this netsh interface ipv6 delete address interface="Wi-Fi" ...
0
votes
1answer
49 views

Windows 10 - How to block a wifi network and restrict unblocking it without a password

Background I'm currently having some compulsive and addictive issues with using the internet (originally on my phone) that are seriously negatively affecting my life. I've completely blocked all web ...
2
votes
0answers
50 views

How to limit the number of users who can connect to an Windows-based access point using netsh? [duplicate]

I have a Wi-Fi dongle with the RTL8188EUS chipset. I'm using it to make a access point from a computer that has Windows 7. However, I have noticed that the dongle shuts off when 12 or more people are ...
0
votes
0answers
97 views

Hosts file changes don't apply for TCP connections

A program on my windows PC makes a TCP connection to a IP address e.g. 122.122.122.122 I have made a TCP server on my local machine and made the following change in my hosts file 192.168.1.123 ...
0
votes
2answers
1k views

run as administrator doesn't elevate process

I am trying to run netsh wlan set hosted network mode=allow as administrator but when I run it from an elevated cmd, or powershell, netsh still replies that: You must run this command from a command ...
3
votes
1answer
3k views

netsh “Error: 87 The parameter is incorrect” when using hostnameport

I am using the following netsh command successfully: netsh http add sslcert ipport=127.0.0.1:9000 appid={7B8DB713-2C51-41B5-AE6F-6DAA07833DBE} certhash=69fed34fdf164e7feac5e17823b94d0f30ab05c5 but ...
0
votes
1answer
32 views

WIFI auto connect for HTPC in server 2016 standard

I have a htpc that connects to the internet using WIFI as well as gets it lan connectivity through WIFI. Its running server 2016 standard. The machine is set to connect automatically however, when ...
1
vote
1answer
4k views

Netsh interface ip set dns register

One of the parameters of the command Netsh interface ip set dns is register. What is its purpouse? I do not understand the explanations given in the help. Which value is set to this parameter if I set ...
1
vote
1answer
274 views

netsh reset caused net to fail with VPN

So I ran the these lines to fix making a hotspot (would not assign IP address). netsh winsock reset catalog netsh int ipv4 reset reset.log After this, the net works fine. But when I connect with my ...
0
votes
0answers
71 views

Remove Wi-Fi known network from command line / net shell (profile not saved)

Is it possible to remove a Wi-Fi known network (see below) from the command line / net shell in Windows? Not a profile Known network from Windows 10: Settings -> Network & Internet -> WiFi -> ...
1
vote
1answer
2k views

Windows route selection and “route print -6” vs “netsh interface ipv6 show route”

So I'm using Windows 10 and I need to redirect some IPv6 multicast traffic to a specific interface (a USB-Ethernet adapter to be more specific). By default all multicast traffic is going to my WiFi ...
6
votes
1answer
5k views

How to toggle Wi-Fi in Windows 10 via the command line?

If I try to connect to a wireless network using netsh wlan connect when the Wi-Fi toggle switch is off, the following error is displayed: Function WlanGetAvailableNetworkList returns error 2150899714:...
1
vote
3answers
3k views

Can't enable “Wi-Fi” interface via command line (Windows 10)

I'm trying to figure out how to enable the "Wi-Fi" interface in Windows 10, so that I can connect to a wireless network later using netsh wlan connect. After starting cmd with administrative ...