RageRiot Posted June 24, 2011 Posted June 24, 2011 I've just a had a play around with the wireless settings in group policy and can not find anywhere to type the wifi key. I need to change our wifi key because even a baby could guess it. since we had a virus problem last week I wanted to change the wifi key so only school laptops can access it and I dont fancy going to eveyones laptop and entering the key for all 29 of them + 28 of our crappy netbooks(VYEs) (2 are broken) I figured that if a network cable was conected this would allow group policy to update and configure wifi settings I've configured minimising the effort required for staff and my self. Thanks in advanced.
Steve21 Posted June 24, 2011 Posted June 24, 2011 Disclaimer, Copy/Paste, but might help Unless you're using XP? Windows 2008 has built in policy GPO for wireless setting management. You can configure your network setting using Certificates. It is the most recommended and secure way But if you like to deploy the wireless settings using static key, you will have to use other way. The steps bellow describe the way to deploy Wireless LAN settings with a Pre-Shared Key The purpose is to Automate Adding Wireless Profile in Windows. Preparations •Configure Wireless settings on one workstation •from command prompt run netsh wlan export profile name="NameOfyourProfile" folder=c:\temp interface="wirelesssettings” •Confirm that under c:\temp you have wirelesssettings.xml file •Open wirelesssettings.xml file locate the following line true •Change it to false •Under you will see encrypted line 01000000D08C9DDF0115D1118 •Change it to your key like that Yourkey Note: It means that your wireless key will be in clear text and everyone who has access to the file will be able to read your wireless key" Deployment •Copy your wireless settings xml file to NETLOGON •Create a bat or cmd file with the following line netsh wlan add profile filename="\\yourserver\NETLOGON\wirelesssettings.xml" user=all •Run the bat file from some domain member computer and confirm that it works After finishing all steps above you can deploy the script from GPO Note: Setting are applicable for Windows Vista Windows 7 and Windows 2008 Only Steve 2
RageRiot Posted June 24, 2011 Author Posted June 24, 2011 the machines are using XP but the servers are 2008, will this not work then ?
soveryapt Posted June 24, 2011 Posted June 24, 2011 Might be easier to set yourself up a RADIUS server instead on your 2008 Box then in the GPO setup an XP Certificate ..
Steve21 Posted June 24, 2011 Posted June 24, 2011 the machines are using XP but the servers are 2008, will this not work then ? Honestly not sure, Just from this line: Note: Setting are applicable for Windows Vista Windows 7 and Windows 2008 Only Either it means it won't work, or just it's different "settings" you need to pick. Steve
themightymrp Posted June 24, 2011 Posted June 24, 2011 No it won't work but there is an alternative. I have added a zip file to this post containing a .exe program and a batch file to call it. Modify the batch to reflect your wireless setup. It supports WEP / WPA and all other settings. Stick them in your netlogon share and call the script via your GPO - works perfectly here.wirelessconfig.zip 2
RageRiot Posted June 24, 2011 Author Posted June 24, 2011 No it won't work but there is an alternative. I have added a zip file to this post containing a .exe program and a batch file to call it. Modify the batch to reflect your wireless setup. It supports WEP / WPA and all other settings. Stick them in your netlogon share and call the script via your GPO - works perfectly here. This looks like it will work, I notice its set in your example to WEP. do you have a List of configuration switches as we use WPS-PSK -> AES and the last 2 switches: /KeyIndex:1 /KeyProvidedAutomatically:FALSE What is this? I'm still very new to network administration but I pick stuff up really well as along as I can understand it all. Thanks for the replies
themightymrp Posted June 24, 2011 Posted June 24, 2011 (edited) You want something along these lines: WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:WPA /Encryption:TKIP /KeyProvidedAutomatically:TRUE /IEEE8021xEnabled:TRUE /EAPType:PEAP /InnerAuthentication:MSCHAPv2 /EnableFastReconnect:TRUE There is more detail on this previous thread http://www.edugeek.net/forums/scripts/34952-script-joining-wireless-networks.html In the wireless access points there are usually 4 optional keyindex's. You can specify 4 different encryption keys if you so wish. We only use the one, hence it is set to 1 in the attached file. Also some systems are set to auto provide the WEP / WPA key automatically, we don't want that so it is turned off. EDIT --- You may need to set /Authentication:WPAPSK , I can't remember? Edited June 24, 2011 by themightymrp
Sam_Brown Posted June 24, 2011 Posted June 24, 2011 No it won't work but there is an alternative. I have added a zip file to this post containing a .exe program and a batch file to call it. Modify the batch to reflect your wireless setup. It supports WEP / WPA and all other settings. Stick them in your netlogon share and call the script via your GPO - works perfectly here. This is what we use as well. It's especially useful on images for Windows XP laptops as you can run it at first boot to enable the WiFi settings which are normally lost via SysPreping the base machine.
RageRiot Posted June 25, 2011 Author Posted June 25, 2011 (edited) hi again, obviously with week end I ran out of time to get it working. I asume this method is inconjuction with the GPO setting for wireless networks which allows you to configure the APs ? when I tested this on friday afternoon it did not seem to work. maybe i got one of the switches wrong.. since its a switch based application I expected to get desciptive help using the /? switch. does anyone have a full list of confguration switches? @themightymrp I checked that page, there is mention of the Zwlancfg util. would it be better using this one since it comes with a help files with all the configuration switches. would the switches be cross compatable ? since I think our network is setup with WPA-PSK and AES I'm guessing this would work: /Authentication:WPAPSK /Encryption:AES If this makes any difference our wireless is all Ruckus gear but is manged and configured by Digitech. I've not got direct access to this system and have no idea how to manage it but I am able to request access to it if need be. Edited June 25, 2011 by RageRiot
themightymrp Posted June 27, 2011 Posted June 27, 2011 I think the tool I uploaded is an older version of that Zwlancfg program. The newer version (paid for) also supports Vista and Win 7. You can download the trial version of the latest program and look through its help files. Pretty sure most of the switches are the same. I agree that its annoying that you can't do the /? thing though. /Authentication:WPAPSK /Encryption:AES looks to be right to me. However having not used AES encryption I'm not 100% on its usage. @Sam_Brown - can you shed any light on this?
jsnetman Posted June 27, 2011 Posted June 27, 2011 I used wirelessconfig app on XP but when we went to 7 you can export and import the wireless settings and specified key using the command netsh wlan add profile and deploy it via a startup script or GP.
KK20 Posted June 27, 2011 Posted June 27, 2011 Description of the Wireless Client Update for Windows XP with Service Pack 2 Will this let you use the GPO on XP machines?
themightymrp Posted June 27, 2011 Posted June 27, 2011 I have to say I've never tried this method. I use the tool I uploaded earlier in this thread in a gpo. I have a startup script set and use that batch file with a couple of extra lines. Basically like this: if exist "c:\deployedapps\wifi.txt" goto EOF add wireless script here copy "\\domain\netlogon\wifi.txt" "c:\deployedapps" :EOF Seems to work just fine. This is just for my XP clients
FN-GM Posted August 17, 2011 Posted August 17, 2011 Disclaimer, Copy/Paste, but might help Unless you're using XP? Windows 2008 has built in policy GPO for wireless setting management. You can configure your network setting using Certificates. It is the most recommended and secure way But if you like to deploy the wireless settings using static key, you will have to use other way. The steps bellow describe the way to deploy Wireless LAN settings with a Pre-Shared Key The purpose is to Automate Adding Wireless Profile in Windows. Preparations •Configure Wireless settings on one workstation •from command prompt run netsh wlan export profile name="NameOfyourProfile" folder=c:\temp interface="wirelesssettings” •Confirm that under c:\temp you have wirelesssettings.xml file •Open wirelesssettings.xml file locate the following line true •Change it to false •Under you will see encrypted line 01000000D08C9DDF0115D1118 •Change it to your key like that Yourkey Note: It means that your wireless key will be in clear text and everyone who has access to the file will be able to read your wireless key" Deployment •Copy your wireless settings xml file to NETLOGON •Create a bat or cmd file with the following line netsh wlan add profile filename="\\yourserver\NETLOGON\wirelesssettings.xml" user=all •Run the bat file from some domain member computer and confirm that it works After finishing all steps above you can deploy the script from GPO Note: Setting are applicable for Windows Vista Windows 7 and Windows 2008 Only Steve Hi @steve I am having problems using this, can you see what i am doing wrong please. i am using the following command netsh wlan export profile name=FPHS folder=c:\wifi interface=Wireless Network Connection and the error message i am getting is One or more parameters for the command are not correct or missing. Any thoughts please? Thanks
Michael Posted August 17, 2011 Posted August 17, 2011 @FN-GM - here's how I deploy wireless settings Please note this only works with Vista and 7 as XP does not support the netsh wlan command.
FN-GM Posted August 17, 2011 Posted August 17, 2011 @FN-GM - here's how I deploy wireless settings Please note this only works with Vista and 7 as XP does not support the netsh wlan command. cheers do i have to change the hex bit? Thanks
CyberNerd Posted August 17, 2011 Posted August 17, 2011 Setting wireless keys for WPA/TKIP DOES work with group policy - we are doing it. Basic synopsis is here: How to set up a WPA2-EAP Wireless Network Using Network Policy Server (NPS), AD and Group Policies - Spiceworks Community
Michael Posted August 17, 2011 Posted August 17, 2011 cheers do i have to change the hex bit? Thanks If you manually setup a wireless profile (so you can connect wirelessly), then run the following command: netsh wlan export profile name ="WIRELESS-SETTINGS" Open the XML file, then change the protected entry to 'false' and enter your wireless key as required. Save the file and that's it. Import using the command above. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now