So for one reason or another (usually an OS update) our users will lose their saved password to our private network and end up on our public network. This means they can't print, access internal resources, etc. I'm trying to come up with a way to put something in Self Service that will get them back on our private network. Our JSS is externally facing, but not our Casper share so I was trying to do something that could utilize the Files and Processes > Execute Command policy on.
I was trying to use the "networksetup -addpreferredwirelessnetworkatindex" command because in one line I could get the wireless network in and make sure it was at the top of the preferred list...and I could do this without a script, and therefore without a share. However, I've been unable to get it to work. Does this not work in Yosemite anymore? Any other thoughts on how I can accomplish this?
Thanks for any help!