/shell-intune-samples

Sample shell scripts for Intune admins.

Primary LanguageShellMIT LicenseMIT

Intune macOS Shell Script Samples

This repository is for macOS Intune sample scripts and custom configuration profiles. There are many cases where it is necessary to use a custom profile or shell script to accomplish a task.

To get started, check out the following documentation

To make things a little easier to navigate the repo has been split up into three main sections:

Apps

This section is for scripts that install or configure applications on the Mac. There are many reasons to deploy apps via shell script rather than via the macOS mdmclient. Our preferred method of app deployment is via the Mac App Store VPP, but the Intune Scripting agent provides an almost infinte level of possibilities where the apps you need on your Macs can't be deployed via VPP.

   |-Apps
   |---Cisco AMP
   |---Company Portal
   |---Defender
   |---Edge
   |---Gimp
   |---VMware Horizon Client
   |---Minecraft Education Edition
   |---Office for Mac
   |---Remote Desktop
   |---Skype for Business
   |---Teams
   |---Visual Studio Code
   |---Yammer
   |---Zoom
   |---gitHub Desktop

Misc

This section is for scripts that do general macOS configurations. This is an Alladin's cave of scripts to get your Macs in shape. Feel free to submit your own examples too, we'd love to get contributions.

   |-Misc
   |---DeviceRename
   |---Dock
   |---EnableOneDriveFinderSync
   |---MDATP
   |---Manage Accounts
   |---Octory
   |---Rosetta2
   |---Wallpaper
   |---checkPasswordPolicy
   |---mdmDiagnose
   |---setTimeZone

Custom Attributes

This section is for example Custom Attributes for deployment via Intune. These come from customer requirements and are stored here for the community.

   |-Custom Attributes
   |---CPU Architecture
   |---Defender
   |---Gimp
   |---Hackintosh

Custom Profiles

This section is for example Custom Profiles for deployment via Intune. These come from various places, either hand written, Apple Condigurator 2 or OS X Server Manager's Profile Manager. Our aim is to have everything in here written into the Intune UI directly, but while we're working on that we're storing some useful profiles here.

   |-Custom Profiles
   |---Disable External Storage
   |---Notifications

Disclaimer

Understand the impact of each sample script prior to running it; samples should be run in a non-production or "test" environment.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.