Posted on 02-22-2013 10:50 AM
Hello,
We have two WiFi networks in our schools: our main WPA network, and an open Guest network. We pushed out a policy with the WPA key to our MacBooks and that seems to get onto the system. However, some computers seem to randomly connect to the open Guest network instead. I've tried creating a policy to push out the info for the Guest network with the "Auto Join" box unckecked, but some system still join this network first.
What can be done to keep computers from auto joining this other network?
We can tell the computers are auto joining it at boot, because when using the "Other" login option, network accounts are unavailable, even though the WiFi is active.
Posted on 02-22-2013 11:06 AM
I assume this is for your OSX clients and not iOS. Take a look at:
[code]networksetup -removepreferredwirelessnetwork[/code]
Posted on 02-24-2013 04:04 PM
To solve this issue, we sets a profile with all known SSIDs, but with only the network we wanted set to automatically join. That way, the other networks default to auto join "off".
Posted on 02-24-2013 04:04 PM
To solve this issue, we sets a profile with all known SSIDs, but with only the network we wanted set to automatically join. That way, the other networks default to auto join "off".
Posted on 03-04-2013 01:06 PM
Thanks, I've been looking into networksetup options, and may need to go that route.
I've tried creating a Configuration Profile with the two WiFi networks defined. I checked the box to auto-join the WPA network and didn't check the box to auto-join the Guest network. However, when the policy gets applied, the computers still default to joining the Guest network. However, when I look at that network setup, the auto-join box is not checked.
Posted on 06-24-2014 10:28 AM
We deal with this using the networksetup -removepreferredwirelessnetwork command in a login and logout script. For example:
networksetup -removepreferredwirelessnetwork GuestNetworkSSID
Posted on 10-06-2014 05:46 AM
@Tennant how did you write the script?
I just tried a few and have no luck, I am running into the same issue where teachers are using the guest wifi at the schools and we cant push out policies or remote in etc.
Posted on 04-16-2016 05:13 AM
I load the SSID's and turn auto join off but I also put in a bad password to further prevent the connection - the combo of the two has worked well for me.
Posted on 04-18-2016 08:10 AM
@musat Check out this github: https://gist.github.com/pudquick/fcbdd3924ee230592ab4
My issue similar to yours is that I had a WiFi network set up as a configuration profile but the client Macs would sometimes jump on other WiFi networks in the building. We have 4 internal networks where I work.
The python script by Pudquick stuck my preferred network to the top of the list so the Mac will default to it when searching for a network. Before my preferred network was at the bottom of the list as seems to be the case with WiFi configuration profiles - shouldn't be like that but it is for them moment until Apple make a change.