I was trying to change two hosted network settings of my WiFi hotspot using CMD/BAT/VBS, but I was unable to do it.
The Settings I want to change:
- Authentication (eg: WPA,WPA2PSK)
- Cipher (eg: CCMP/AES)
The following code gives the information about the hosted network settings:
netsh wlan show hostednetwork
The following code sets the profile parameters:
netsh wlan set profileparameter
The problem is: what is the profile name which runs the WiFi Hotspot. The profileparameter asks for the profile name, and I dont know it. I have tried exporting the profile but it does not contain the profile name. Exported profile data is located in windows/system32 directory.
Is there a way to solve this issue?
Resource: Netsh Commands for WLAN
Try this code to get the profil name and its password with admin rights :