Use command prompt with admin rights
NETSH WLAN show drivers
confirm the wireless interface is support the function
Hosted network supported : Yes
NETSH WLAN set hostednetwork mode=allow ssid=ssid key=passphase
NETSH WLAN start hostednetwork
NETSH WLAN stop hostednetwork
Other useful command
NETSH WLAN set hostednetwork mode=allow
NETSH WLAN set hostednetwork mode= disallow
NETSH WLAN set hostednetwork ssid=New_SSID
NETSH WLAN set hostednetwork key=New_Passphrase
NETSH WLAN show hostednetwork
NETSH WLAN show hostednetwork setting=security
If you want to remove the setting completely. Please do this as below:
User Regedit
HKEY_LOCAL_MACHINE\system\currentcontrolset\services\wlansvc\parameters\hostednetworksettings
delete this DWORD in the above registry
HostedNetworkSettings