WiFiProfileManagement icon indicating copy to clipboard operation
WiFiProfileManagement copied to clipboard

How add the username, user password, change settings on a new profile

Open jurivero opened this issue 2 years ago • 3 comments

Thank you for making all these P.S. available, but I realized when creating new profiles, setting new profiles I do not see possible to add the user and the user password that will connect to the wi-fi.

jurivero avatar Jul 25 '22 17:07 jurivero

Yes, that is right. It looks like it is possible to create a new profile, but once you connect to the profile there will be an on-screen popup asking for username and password. It would be nice when there is a function to supply these from powershell too. Apparently there is a function WlanSetProfileEapUserData that is supposed to handle that, but I cannot find a cmdlet that allows calling it from powershell.

rjanssen2 avatar Apr 18 '23 12:04 rjanssen2

The credentials are stored in the Windows registry at: HKLM\SOFTWARE\Microsoft\Wlansvc\UserData\Profiles{GUID}

You can find tools to encode and decode this on the web. Once set you do not need to enter the credentials for the profile.

Reference: https://stackoverflow.com/questions/15478107/saving-windows-wireless-profile-credentials

thewade avatar Feb 06 '24 22:02 thewade

I found the program WLANSetEAPUserData by Simon Rozman that sets the EAP credentials from an XML file. It just calls the function WLANSetEAPUserData I mentioned above.

rjanssen2 avatar Feb 08 '24 14:02 rjanssen2