I know that this question is over 2 years old, but I feel that an answer would still be necessary here.
The reason why you can't find a proper answer to this is because unfortunately, you really aren't able to create a hotspot through the netsh command without a password (as far as I've seen). I don't think that the command was made with this option.
I'm pretty sure that Connectify doesn't use netsh. My guess is that it uses one of the drivers that are installed with Connectify to set up a hotspot. Again, this is just a guess - I don't know too much about Connectify and its internal functioning.
Found this solution for those who are wondering. First, I have the following in a .reg file (I'm aware that the last modification is not recommended by sys admins):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Network Connections]
"NC_PersonalFirewallConfig"=dword:00000001
"NC_ShowSharedAccessUI"=dword:00000001
"NC_AllowNetBridge_NLA"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"DisableBkGndGroupPolicy"=dword:00000001
Then I have these commands in a .bat file:
REM ----- Run regedit silently to add the necessary network sharing settings -----
regedit.exe /S NetworkSharingSetup.reg
REM ----- Add the hotspot -----
netsh wlan set hostednetwork mode=allow ssid=Hotspot1 key=123456
REM ----- Start the hotspot -----
netsh wlan start hostednetwork
REM ----- Show the hotspot details -----
netsh wlan show hostednetwork
timeout -t 10 /nobreak
REM ----- Bounce the Cellular connection -----
netsh interface set interface name="Cellular" admin=disabled
netsh interface set interface name="Cellular" admin=enabled
pause
I ran into an issue where, after starting the hostednetwork, my cellular connection kept connecting and immediately disconnecting in an infinite loop. I discovered that if I waited (timeout
) and bounced the connection, it fixed the issue. Not sure why the cellular connection got into this status or why the wait was required.
After creating this batch file, I create a shortcut to it, then right-click > Properties > Shortcut tab > Advanced > check the box for "Run as administrator". This is required for the lines where we bounce the cellular connection.
One final thing: During this process, the tablet was kept off the organization's domain.
Best Answer
Enter the following command into a command prompt with admin rights (elevated command prompt):
Change
MyNet
to the name of the network you would like to change the password for and replace theXXXX
with your new password.