I want to make it so that the user cannot connect to any other network other than the specified network. I know I can do this with GUI by removing preferred networks, but this way, I will have to do it for every single one of them. It will be even harder when more networks keep showing up in the networks list.
Is there a method that lets the Mac block every single network and only lets the user connect to specified networks? See the answer in the link below where the guy is doing this through a script for a single network at a time by periodically running the script. Is it possible to do this for all networks?