Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to turn on WiFi adapter from command line / How to turn on hotspot

02 Oct 2013   #1
Anakunda

Windows 7 x64
 
 
How to turn on WiFi adapter from command line / How to turn on hotspot

Hi

I have configured ad-hoc network for internet sharing from my PC. Normally I start it by
netsh wlan start hostednetwork
As I noticed the hotspot is automatically turned off when I turn off WiFi adapter. So I have two questions:

How do I turn on WiFi by command line, so that I can control it from various commandline scripts?
How do I configure the script for WiFi for autostarting hotspot whenever WiFi is turned on?

netsh wlan ...


My System SpecsSystem Spec
.
02 Oct 2013   #2
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by Anakunda View Post
Hi

I have configured ad-hoc network for internet sharing from my PC. Normally I start it by
netsh wlan start hostednetwork
As I noticed the hotspot is automatically turned off when I turn off WiFi adapter. So I have two questions:

How do I turn on WiFi by command line, so that I can control it from various commandline scripts?
How do I configure the script for WiFi for autostarting hotspot whenever WiFi is turned on?

netsh wlan ...
Ad-Hoc requires that you restart the session each time.

Connectify pro has an auto start option that does this but it's a paid version, connectify lite is free but I'm not sure if has auto start.

Download - Connectify
My System SpecsSystem Spec
02 Oct 2013   #3
Anakunda

Windows 7 x64
 
 

Quote   Quote: Originally Posted by chev65 View Post
Connectify pro has an auto start option that does this but it's a paid version, connectify lite is free but I'm not sure if has auto start.

Download - Connectify
Unfortunatelly I don't have any good experience with Connectify,
1.it still refuses leaked key
2.actually it won't too autostart hotspot once WiFi is lost.
At best I'd like to avoid any 3rd party software.
There's some scripting on netsh wlan dump, what about using this?
My System SpecsSystem Spec
.

02 Oct 2013   #4
theveterans

Windows 7 Professional x64 SP1
 
 

Just bookmark this article and you'd be good to go: About the Wireless Hosted Network (Windows)
My System SpecsSystem Spec
06 Oct 2013   #5
Anakunda

Windows 7 x64
 
 

That's good info about wireless net sharing but still no see how to either start the adapter from command line or at least run this starting hosted network command unattended each time when Wi-Fi adapter is started (whichever method), a kind of assigning custom command to this event.
My System SpecsSystem Spec
06 Oct 2013   #6
UsernameIssues

W7 Pro SP1 64bit
 
 

I'm not sure what you mean by starting an adapter....

You can enable/disable an adapter via command line and netsh.
Is that what you want?
My System SpecsSystem Spec
06 Oct 2013   #7
Anakunda

Windows 7 x64
 
 

I'm not sure if enable/disable adapter is the same as turn it on/off such as pressing FN+F2, I don;t want to disable the driver fully.
My System SpecsSystem Spec
06 Oct 2013   #8
UsernameIssues

W7 Pro SP1 64bit
 
 

It just disables the adapter. It does the same thing that would happen if you right clicked on an adapter and selected Disable or Enable from the context menu:

How to turn on WiFi adapter from command line / How to turn on hotspot-netsh.png

For the adapter shown above, this code would disable/enable it:

Code:
netsh interface set interface name="Local Area Connection" disable
Code:
netsh interface set interface name="Local Area Connection" enable
For your usage:
Replace Local Area Connection with the name of your adapter.
(Maybe Wireless Network Connection.)


My System SpecsSystem Spec
18 Jul 2014   #9
rambharath

win 7 home
 
 

i hav hcl note book win 7 32 bit showing wifi symbol but not on (a cross symbol ) how to turn on wifi
My System SpecsSystem Spec
Reply

 How to turn on WiFi adapter from command line / How to turn on hotspot




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Turn off Safe Mode boot from Command Line?
I have a laptop from a friend who contactd Dell about an issue. The person at Dell told him to use msconfig to set safe mode minimal. During further discussioin with the Dell rep, he told my friend he needed to do a factory restore. I've done that for my friend, not realizing he had set the...
General Discussion
Turn Windows 7 laptop into a wifi hotspot
I have a windows 7 Dell laptop and using USB modem for internet. I would like turn my laptop as wifi router so that i can share the internet to my mobile devices. Also, I heard that we can share the internet via that intel my wifi technology too. Can somebody guide a way to achieve this?...
Network & Sharing
cant enable wifi. turn on wifi button grayed out
My laptop is Sony VAIO sve 1711 q1eb my adaptor atheros ar 9485. the drivers are reinstalled normally , the wireless service is enabled , the adaptor is enabled but I can't see any available networks (my router is OK I checked it ) and when I go to mobility centre the turn on wireless button is...
Network & Sharing
AMD ATI Radeon "Varibright": how to command-line turn off?
have the latest AMD driver installed on my thinkpad but I loathe loading .NET 4 just to run CCC for one reason only: to disable varibright. Anyone know what the registry key is for this? or some way to command-line turn off?
Drivers
How to turn on wifi adapter after resuming from S3 sleep?
My adapter is always gone from resuming from sleep. I know it was working before. Just changed my ram and bios settings from a fresh build. Went from Corsair xms3 to G.Skill Ripjaws. I am having this same issue with my newly built pc. The drive running Windows 7 is from a laptop where the...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 16:02.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App