Then right click on “cmd.exe” and choose “Run as administrator”.
Then enter the command
netsh wlan set hostednetwork mode=allow ssid=CustomSSID key=CustomKey keyUsage=persistent
Starting and stopping the network is done by typing:
netsh wlan start hostednetwork
or
netsh wlan stop hostednetwork