We have Macbooks Air on the field that has the possibility to connect through UMTS Usb sticks but we don't want users to download MacOS updates through the cellular.
Does anyone know how to avoid this and let the Macbooks download the update only when connected to a Wifi or to a LAN cable?
Note that the usb stick is seen as an ethernet cable at the end.. (USB 10/100/1000 LAN)
@ryan.ball And what if I'd simply want to exclude a known network device?
Let me explain..
I was looking at the bash command
networksetupand it seems I'm able to play with network hardware..
What if I simply disable MacOS updates when a known network hardware is turned on and then turn it back enabled while on a different Network? (this has to be done properly, as I may have turned on a Wifi while the USB stick (simcard) is plugged in )
What I saw is that.. I can read the list of network hardware, and I'll probably have to change the priority of them when I'll setup the USB stick the first time as it seems to take first place in the service priority order otherwise Macbooks will continue to use it even while attached on a WiFi at the same time..
Any suggestion in doing that..?
@corpffhelpdesk2l So what you are saying is you'd like for whenever anybody attempts to download MacOS updates on a system, for something locally to detect that this is occurring and automatically re-prioritize the NICs on the Mac?
If that is the case then you'd need a LaunchDaemon that either tails the syslog for softwareupdate and then re-prioritizes the NICs, OR a LaunchDaemon that maybe uses a watchpaths of /Library/Updates/ and then re-prioritizes the NICs when the path is changed.
Alternatively, you can set up a Self Service policy for software updates, with an additional script payload set to "Before" that will re-prioritize the NICs before the softwareupdate payload. This would not stop people from updating through App Store like usual though.