This repository is a resource that allows us to distribute scripts across multiple MDM tenants with a single point of hosting.
This folder contains files which assist the scripts in their intended function.
This folder contains our company logos used for branding DEPNotify and other services.
This script is designed to silently install/update Firefox to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/Firefox.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Firefox.sh && sudo chmod +x /tmp/Firefox.sh && sudo /tmp/Firefox.sh [options]
This script is designed to silently install/update LibreOffice to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/LibreOffice.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/LibreOffice.sh && sudo chmod +x /tmp/LibreOffice.sh && sudo /tmp/LibreOffice.sh [options]
This script is designed to silently install/update Google Chrome to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/google-chrome.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/google-chrome.sh && sudo chmod +x /tmp/google-chrome.sh && sudo /tmp/google-chrome.sh [options]
This script is designed to silently install/update Microsoft Apps to an MDM enrolled Mac.
sudo curl -o /tmp/microsoft-apps.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/microsoft-apps.sh && sudo chmod +x /tmp/microsoft-apps.sh && sudo /tmp/microsoft-apps.sh [PARAM]
Parameters:
full
: Install the full suite (Word, Excel, PowerPoint, Outlook, OneNote, OneDrive, MAU)word
: Install Wordexcel
: Install Excelpowerpoint
: Install Powerpointonedrive
: Install OneDriveoutlook
: Install Outlookonenote
: Install OneNoteteams
: Install Teamsmau
: Install Microsoft AutoUpdateremote-desktop
: Install MS Remote Desktopvisual-studio-code
: Install Visual Studio Code
Appending-oc
to any of the above parameters (eg.full-oc
) will open the console logs for monitoring
(Used with TeamViewer Scripts)
full-2016
: Install the 2016 full suite (Word, Excel, PowerPoint, Outlook)word-2016
: Install Word 2016excel-2016
: Install Excel 2016powerpoint-2016
: Install Powerpoint 2016outlook-2016
: Install Outlook 2016
Appending-oc
to any of the above parameters (eg.full-2016-oc
) will open the console logs for monitoring
(Used with TeamViewer Scripts)
full-2011
: Install the 2016 full suite (Word, Excel, PowerPoint, Outlook)
Appending-oc
to the above parameter (eg.full-2011-oc
) will open the console logs for monitoring
(Used with TeamViewer Scripts)
This script is designed to silently update Adobe Acrobat DC to an MDM enrolled Mac.
sudo curl -o /tmp/Acrobat-DC-Update.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Acrobat-DC-Update.sh && sudo chmod +x /tmp/Acrobat-DC-Update.sh && sudo /tmp/Acrobat-DC-Update.sh
This script is designed to silently install or update 1Password 7 to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/1-password.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/1-password.sh && sudo chmod +x /tmp/1-password.sh && sudo /tmp/1-password.sh [options]
This script is designed to silently install or update BT Cloud Phone to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/bt-cloud-phone.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/bt-cloud-phone.sh && sudo chmod +x /tmp/bt-cloud-phone.sh && sudo /tmp/bt-cloud-phone.sh [options]
This script is designed to silently install or update ScanSnap Home to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/scansnap-home.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/scansnap-home.sh && sudo chmod +x /tmp/scansnap-home.sh && sudo /tmp/scansnap-home.sh [options]
This script is designed to silently install Rosetta2 onto an Apple Silicon MDM enrolled Mac.
openconsole
- will open the console for the logs to showjamf
- will run a jamf recon at the end of the script to update the portal
sudo curl -o /tmp/Rosetta2.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Rosetta2.sh && sudo chmod +x /tmp/Rosetta2.sh && sudo /tmp/Rosetta2.sh [options]
This script will rename a computer based on the JAMF user and MAC Address, it will need 3 Parameters to be passed through
- Parameter 4. A JAMF user with API permissions
- Parameter 5. The password for the account in Parameter 4
- Parameter 6. The JAMF Host URL
sudo curl -o /tmp/computer-rename.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/computer-rename.sh && sudo chmod +x /tmp/computer-rename.sh && sudo /tmp/computer-rename.sh
This script will remove the downloaded and applied mobileconfig file and forces Safari to quit, it is required as Adobe Acrobat installer is sensitive to Safari being open and will cause a failed install. We can't rely on the enrolling person remembering to close Safari.
sudo curl -o /tmp/enrollment-cleanup.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/enrollment-cleanup.sh && sudo chmod +x /tmp/enrollment-cleanup.sh && sudo /tmp/enrollment-cleanup.sh
This script will lock a computer using the JAMF API and can be called by an out of region smart group
- Parameter 4. A JAMF user with API permissions
- Parameter 5. The password for the account in Parameter 4
- Parameter 6. The JAMF Host URL
- Parameter 7. The Passcode to lock the device with
sudo curl -o /tmp/lock-device.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/lock-device.sh && sudo chmod +x /tmp/lock-device.sh && sudo /tmp/lock-device.sh
This script will apply the policies in the order specified, populate parameter 4 with the policy id's separated with a space.
- Parameter 4 with the policy IDs or their custom triggers
sudo curl -o /tmp/policy-order.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/policy-order.sh && sudo chmod +x /tmp/policy-order.sh && sudo /tmp/policy-order.sh
This script will create a printer in CUPS using the standards listed here > https://www.cups.org/doc/man-lpadmin.html
options used in this example script are
- -p 'Destination'
- -D 'Description'
- -L 'Location'
- -o 'Option [printer-is-shared=false]'
- -E 'Encrypted connection'
- -v 'Printer URL'
- -m 'Driver [Only everwhere will be supported going forwards]'. 'everywhere' is the generic name for AirPrint
sudo curl -o /tmp/add-printer.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/add-printer.sh && sudo chmod +x /tmp/add-printer.sh && sudo /tmp/add-printer.sh
This script will set the policies software update settings with the following settings.
- AutomaticallyInstallMacOSUpdates - false
- AutomaticCheckEnabled -bool true
- AutomaticDownload -bool true
- CriticalUpdateInstall -bool true
- ConfigDataInstall -bool true
- AutoUpdate -bool true
sudo curl -o /tmp/software-update-settings.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/software-update-settings.sh && sudo chmod +x /tmp/software-update-settings.sh && sudo /tmp/software-update-settings.sh
This script is designed to silently install ZeroTier to an MDM enrolled Mac.
curl https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/zerotier.sh | bash
It is also advised that you add a custom command or script for "on User Sign In" to execute
/usr/local/bin/zerotier-cli join [NETWORK ID]
Add the following custom command for Mosyle Attribute look up
Command:
/usr/local/bin/zerotier-cli info
This script is designed to silently install/update zoom to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/zoom.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/zoom.sh && sudo chmod +x /tmp/zoom.sh && sudo /tmp/zoom.sh [options]
This script is designed to silently install/update Brave Browser to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/brave-browser.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/brave-browser.sh && sudo chmod +x /tmp/brave-browser.sh && sudo /tmp/brave-browser.sh [options]
This script is designed to silently install/update balenaEtcher to an MDM enrolled Mac.
openconsole
- will open the console for the logs to show
sudo curl -o /tmp/balenaEtcher.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/balenaEtcher.sh && sudo chmod +x /tmp/balenaEtcher.sh && sudo /tmp/balenaEtcher.sh [options]
This script is designed to prompt the user for information to assist in the assignment process to an MDM enrolled Mac.
sudo curl -o /tmp/computer-assignment.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/computer-assignment.sh && sudo chmod +x /tmp/computer-assignment.sh && sudo /tmp/computer-assignment.sh [options]
This script is designed to install the correct version of Dockutil.
curl https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/dockutil.sh | bash
This script is designed to install the correct version of Installomator.
curl https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Installomator.sh | bash