Deploying shell scripts to macOS
With Windows devices, you can use PowerShell scripts to make changes not currently supported by other methods, such as the settings catalog or a custom OMA-URI. We will cover these in Chapter 12, PowerShell Scripting across Intune.
For devices that run macOS, the alternative is shell scripts. These can be configured to run at either the system or user level, and as macOS is Unix-based, it can configure almost anything on a device.
Getting started
There are some prerequisites and things to watch with shell scripts; we will start with the prerequisites:
- Prerequisites:
- You must be running at least macOS 11.0
- Your devices must have a direct connection to the internet (no proxy server)
- Scripts must begin with
#!
- Considerations:
- Shell scripts run in parallel, so if you deploy multiple scripts, they will run at the same time
- Scripts deployed as the signed-in user will run on all signed-in accounts on the device at the point the script runs
- A...