We would like to establish a WiFi for Deployment. This WiFi should not be allowed to access after the Deployment.
My idea is, to make this WiFi hidden, so not everybody knows it existed. Is there a possibility to refuse the Connection to hidden WiFis via Configuration Profiles? Or can I delete a specific WiFi Profile somehow?
I built a script I used that would add and then remove before/after deployment (just easier launching from usb than typing) and later on managed wifi back to only acceptable networks when troubleshooting over ARD. I'm not longer involved in deployment and I can't find my script quickly.
At a key base level I think it was something like: sudo networksetup -removepreferredwirelessnetwork en1 your_wifi_SSID_name
But I also find these which seem may be close and you could adapt.
Append the usually caveats about scripting. I hope it helps.
You could create a "fake" WiFi configuration profile and put in the wrong credentials to connect to the network (even if its not secure) and that should stop the device from connection automagically.