Questions tagged [netsh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
21 votes
8 answers
51k views

Force refresh (re-scan) wireless networks from command line?

How can I force Windows to re-scan for available wireless networks from the command line? (i.e. I'm looking for the command-line equivalent of pressing F5 on the GUI.)
user541686's user avatar
  • 23.9k
34 votes
11 answers
103k 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 ...
Nick's user avatar
  • 1,413
3 votes
1 answer
18k views

Set systemwide proxy in windows using cmd [closed]

Is there a command that can replace the manual way of setting the system proxy: PC setting -> Network-> Proxy -> Manual Proxy Setup I found other answers mention using netsh winhttp set ...
wolvorine1933's user avatar
3 votes
1 answer
1k views

Windows Terminal opens on startup with proxy error

Note: This is a duplicate of When I Start my Windows 11 computer, the terminal pops up saying: Error writing proxy settings. (5) Access is denied which has no clear solution for this problem, as it ...
Aryan's user avatar
  • 147
18 votes
2 answers
150k views

How to redirect/route IP address to another IP address?

How to redirect/route an IP address to another IP address? E.g.: 10.10.10.10 -> 20.20.20.20 and then when I type in 10.10.10.10 in my browser, it connects to 20.20.20.20. Let's assume 10.10.10.10 ...
yarek's user avatar
  • 621
5 votes
1 answer
24k views

Can't connect ad hoc network to Windows 8.1 Pro

I'm trying to connect to my ad hoc network through the command prompt with the the following command: netsh wlan show network ... I get the following output: SSID 3 : Range Network Type : Adhoc ...
sathishkumar's user avatar
4 votes
2 answers
11k views

Internet Connection Sharing with Wireless Hosted Network (WHN) is not providing a DNS server for WHN clients

On Windows 8, I'm using a wireless hosted network with ICS. I have one interface connected to internet, and my WiFi interface as a wireless access point. The interface that is connected to internet is ...
CMCDragonkai's user avatar
4 votes
5 answers
88k views

Facing an issue in running “netsh wlan show profiles” command

Now I want to retrieve password of an old WiFi connection but when I run netsh wlan show profile command it shows There is no such wireless interface on the system I am able to connect to other ...
A.Anvaria's user avatar
10 votes
4 answers
32k views

How to force enable "Soft AP" to allow hostednetwork?

Question Status: Unresolved - 7/10/17 My WiFi Adapter, Intel(R) Dual Band Wireless-AC 3165 v19.20.0.6, supports the use of creating hosted networks by "Soft AP," I know so because it has been able to ...
El8dN8's user avatar
  • 1,866
8 votes
4 answers
57k views

netsh wlan add profile not importing encrypted passphrase

I exported a wireless network connection profile from a Windows 7 machine correctly connected to a WiFi network with a WPA-TKIP passphrase. The exported xml file shows the correct settings and a ...
matpie's user avatar
  • 1,640
7 votes
1 answer
9k 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:...
user avatar
6 votes
2 answers
14k views

netsh advfirewall => command not found

Because of the Java 7 firewall problem, I am trying to execute the following command as administrator but I get an error: netsh advfirewall set global StatefulFTP disable (German) "Der folgende ...
PiTheNumber's user avatar
5 votes
5 answers
23k views

netsh hostednetwork issue

I try to get the Virtual Wifi Adepter working on Win 7 Professional. I want to share the wifi connection (I think it does work with cable connection) and I'm pretty sure that the network card should ...
Daniel's user avatar
  • 51
5 votes
1 answer
6k views

How to append netsh firewall rules, not just replace

I am using a script to set firewall rules in netsh. netsh.exe advfirewall firewall set rule name="Block External IP's" new remoteip="$($ipArray[0])" I thought that set was used so that it would ...
Zombian's user avatar
  • 461
4 votes
1 answer
6k views

Connect to Wireless Network without existing profile through NetSH

I'm currently coding a network app based on NetSH. Is there a way to connect to a wlan network without having to create a wlan xml profile? Sorry if the question is unclear or doesn't belong here... ...
Dilan V's user avatar
  • 169
4 votes
1 answer
5k views

Windows 7 'netsh reset' without rebooting?

Frequently we are required to reboot after installs or commands because specific services have to start or restart. Is there some service I can restart to avoid rebooting the whole PC after "netsh ...
MountainMan's user avatar
  • 5,849
3 votes
1 answer
9k views

Is it possible to create a VPN setting on the command line?

I would like to perform the equivalent to the following steps but from the command line: Control Panel / Network and Sharing Center / Set up a new connection or network Wizard starts -> Connect to ...
user avatar
1 vote
3 answers
5k 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 ...
user avatar
1 vote
1 answer
2k views

How to use netsh to delete a profile with UTF8 characters?

I connected to a W with UTF-8 characters (One of the Doctor Who ones, ┓┏ 凵 =╱⊿┌┬┐ or similar) which clashed terribly with Windows' assumption that UTF-16 is used everywhere. Now I can't delete it from ...
Lexi's user avatar
  • 133
1 vote
1 answer
5k views

Change default gateway on windows hosted network

I used the following command to create a hosted network. netsh wlan set hostednetwork mode=allow ssid=[ssid] key=[keyphrase] I would like to change the default gateway and given IP ranges from 192....
Feanaro's user avatar
  • 183
0 votes
1 answer
10k views

netsh wifi hotspot config max clients

I've set up a wifi hotspot on my computer using netsh commands. I would like to know if it is possible to change the max number of clients ("netsh wlan show hostednetwork" shows maxclients=100). I ...
Val's user avatar
  • 1
0 votes
2 answers
3k views

Save all WLAN profile names stored on my machine, into a textfile

when I'm using the netsh wlan command, a similarly output is shown. C:\Windows\system32>netsh wlan show profiles Profiles on interface Wireless Network Connection: Group policy profiles (read ...
MrMAG's user avatar
  • 221
0 votes
1 answer
171 views

Backup & Restore Winsock?

In the process of doing some troubleshooting and running the netsh winsock reset command, and was wondering if anyone is aware of a way (or app) to backup the current winsock catalog (and/or ...
J. Scott Elblein's user avatar
0 votes
1 answer
970 views

Windows 7 hosted network use one adapter to receive and second adapter to create hostednetwork

Is it possible to use one WiFi adapter just for connecting to router to catch the WiFi. Then, use the 2nd adapter to create hosted network in windows? The following commands do not seem to have an ...
user3330840's user avatar