Reader small image

You're reading from  Microsoft Intune Cookbook

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781805126546
Edition1st Edition
Right arrow
Author (1)
Andrew Taylor
Andrew Taylor
author image
Andrew Taylor

Andrew Taylor is an End-User Compute architect with 20 years IT experience across industries and a particular interest in Microsoft Cloud technologies, PowerShell and Microsoft Graph. Andrew graduated with a degree in Business Studies in 2004 from Lancaster University and since then has obtained numerous Microsoft certifications including Microsoft 365 Enterprise Administrator Expert, Azure Solutions Architect Expert and Cybersecurity Architect Expert amongst others. He currently working as an EUC Architect for an IT Company in the United Kingdom, planning and automating the products across the EUC space. Andrew lives on the coast in the North East of England with his wife and two daughters.
Read more about Andrew Taylor

Right arrow

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...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microsoft Intune Cookbook
Published in: Jan 2024Publisher: PacktISBN-13: 9781805126546

Author (1)

author image
Andrew Taylor

Andrew Taylor is an End-User Compute architect with 20 years IT experience across industries and a particular interest in Microsoft Cloud technologies, PowerShell and Microsoft Graph. Andrew graduated with a degree in Business Studies in 2004 from Lancaster University and since then has obtained numerous Microsoft certifications including Microsoft 365 Enterprise Administrator Expert, Azure Solutions Architect Expert and Cybersecurity Architect Expert amongst others. He currently working as an EUC Architect for an IT Company in the United Kingdom, planning and automating the products across the EUC space. Andrew lives on the coast in the North East of England with his wife and two daughters.
Read more about Andrew Taylor