Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [netsh]

The tag has no usage guidance.

10
votes
2answers
17k 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.)
5
votes
2answers
31k 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 ...
5
votes
1answer
23k 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 ...
4
votes
2answers
7k 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 ...
7
votes
4answers
46k 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 ...
4
votes
1answer
4k 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 ...
5
votes
1answer
199 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 ...
5
votes
5answers
22k 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 ...
3
votes
1answer
7k 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 ...
0
votes
2answers
869 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 ...
4
votes
1answer
800 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 ...
4
votes
3answers
6k 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 ...
2
votes
1answer
3k 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... ...
1
vote
1answer
3k 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....
0
votes
1answer
581 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 ...