Sven Blaufuss Posted May 5, 2023 Share Posted May 5, 2023 I would like to build an fileset (or something similar) to give the Wlan credentials to the Windows Systems. Can somebody give me a hint how todo this ? best regards Sven Link to comment Share on other sites More sharing options...
Administrators Andreas Gluch Posted May 12, 2023 Administrators Share Posted May 12, 2023 Hi Sven, spontaneously using netsh comes to my mind. Any other ideas, folks? Link to comment Share on other sites More sharing options...
Moderators Josh Levitsky Posted May 12, 2023 Moderators Share Posted May 12, 2023 7 hours ago, Andreas Gluch said: Hi Sven, spontaneously using netsh comes to my mind. Any other ideas, folks? Something like this maybe? netsh wlan set hostednetwork mode=allow ssid=Your_SSID key=Your_Passphrase netsh wlan start hostednetwork Creating a WiFi profile with 802.1X settings is more complex than a simple password-protected WiFi network. You can create an XML file with the WiFi profile settings, including 802.1X settings, and then use netsh to add the profile to a Windows computer. The XML file would look something like this: <?xml version="1.0"?> <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> <name>ProfileName</name> <SSIDConfig> <SSID> <name>NetworkName</name> </SSID> </SSIDConfig> <connectionType>ESS</connectionType> <connectionMode>auto</connectionMode> <autoSwitch>true</autoSwitch> <MSM> <security> <authEncryption> <authentication>WPA2</authentication> <encryption>AES</encryption> <useOneX>true</useOneX> </authEncryption> <OneX xmlns="http://www.microsoft.com/networking/OneX/v1"> <EAPConfig> <!-- EAP configuration goes here. --> </EAPConfig> </OneX> </security> </MSM> </WLANProfile> The XML gets saved as profile.XML once done and then.... netsh wlan add profile filename='path\to\profile.xml' Reference link: https://mantraaz.wordpress.com/2010/10/18/script-to-add-wireless-profile Link to comment Share on other sites More sharing options...
Larry Benshoof Posted May 15, 2023 Share Posted May 15, 2023 We have used netsh and an xml file in the past to add our wifi networks to Windows 10 clients and have now moved to a Powershell script as we add Windows 11 clients. I don't have the original reference for the script. I think it may have come from some Microsoft Technet articles. addWifi.ps1 1 Link to comment Share on other sites More sharing options...
Sven Blaufuss Posted June 1, 2023 Author Share Posted June 1, 2023 Hy Larry, mayby iam to stupid to understand that Script, but as you see i insert the network credentials in the skript but it wont work. Mayby you can give me an hint where i made the mistake. Thanks in advanced Link to comment Share on other sites More sharing options...
Moderators Sean Posted June 2, 2023 Moderators Share Posted June 2, 2023 Probably from here: https://www.cyberdrain.com/automating-with-powershell-deploying-wifi-profiles/ I notice: Quoted? Perhaps not necessary. Also remember, scripts ran through FileWave are ran as System and are 32bit, unless set otherwise. Always test in same environment before trying through FileWave. https://fwkb.atlassian.net/wiki/spaces/KB/pages/4331036/Script+Best+Practices Link to comment Share on other sites More sharing options...
Larry Benshoof Posted June 5, 2023 Share Posted June 5, 2023 Sven - we pass the ssid and key as environmental variables - in the Get Info: Executable Tab: Environmental Variables for the script in the Fileset. Link to comment Share on other sites More sharing options...
Sven Blaufuss Posted June 9, 2023 Author Share Posted June 9, 2023 Thanks god its Friday and it works. I insert the credentials as Sean posted and tada the Fileset works. Thanks to all who help in this Topic. But at least it would be Cool if there would be the possibility to handle it direct in Filewave like for the OSX Devices :-), cause my Company wouldnt change the Windows Devices against OSX, i had no clue why :-). Best Regards from Germany Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now