How do I share my Internet connection over Wi-Fi from the command line?
This feature is called hosted networks. On a Wi-Fi enabled computer running Windows 7 or later, use the following commands in an elevated command prompt:
Note that the access point created using this procedure uses infrastructure mode. For more information and technical details about hosted networks.
netsh wlan set hostednetwork mode=MODE ssid=SSID key=KEY keyusage=KEYUSAGE
Changes access point settings.modecan beallowordisallow, specifying whether the access point is enabled.ssidis the name of the network;keyis the encryption key used for accessing the network.keyusagecan bepersistentortemporary, indicating whether the key is kept or discarded after one use (the default ispersistent). Note that WPA2-AES is used.netsh wlan start hostednetwork
Starts the access point.netsh wlan stop hostednetwork
Stops the access point.netsh wlan show hostednetwork
Shows the status of the access point.
Note that the access point created using this procedure uses infrastructure mode. For more information and technical details about hosted networks.
0 comments:
Post a Comment