WrightInTheCloud / shell-intune-samples

Sample shell scripts for Intune admins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:


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.

   |---Cisco AMP
   |---Company Portal
   |---Minecraft Education Edition
   |---Office for Mac
   |---Remote Desktop
   |---Skype for Business
   |---Visual Studio Code
   |---gitHub Desktop


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.

   |---Manage Accounts

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

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


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


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.

ezoic increase your site revenue


Sample shell scripts for Intune admins.

License:MIT License


Language:Shell 100.0%