shell-intune-samples
dockutil
shell-intune-samples | dockutil | |
---|---|---|
41 | 17 | |
591 | 1,314 | |
4.4% | - | |
8.1 | 7.1 | |
6 days ago | 3 months ago | |
Shell | Swift | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shell-intune-samples
-
Need leads on installing Cortex Xdr on through inTune for the Mac’s
Deploy it via shell scripts instead, use the following for install template https://github.com/microsoft/shell-intune-samples, this is what I do for package where extra config is need after/before the deployment
-
Microsoft Edge for macOS - install pending
If not, you can collect logs remotely using the instructions here: link.
-
Best practice for MacOS control + user experience in Intune. (Autopilot for Macs to Intune)
Application deployment is Intune's weakest feature currently. If you have apps you want to push out as required then you can see if the native app deployment feature works for that particular app, or install apps via a script. I would recommend the second option, and Microsoft themselves actually have a good selection of sample scripts for doing so
-
Issue with Uploading Adobe Creative Cloud pkg in Intune Apps
Yep...been a problem for years! Best way is to script it. Put the pkg in a zip file and put it on Amazon S3 or Azure, etc. Then script it to install. Microsoft has some good examples on their github site. https://github.com/microsoft/shell-intune-samples/tree/master/macOS
- Intune and Mac management
-
Intune deploy macOS .APP file
i recommend you to refer to these samples: https://github.com/microsoft/shell-intune-samples/tree/master/macOS/Apps
-
MDM for Apple
Just learn to write simple bash scripts. Intune deploys them quickly and they work better then trying to package up some application. MS offer sample scripts which a monkey could rework for other applicatons. https://github.com/microsoft/shell-intune-samples
- Intune for macOS - how to execute shell script immediately after pushing my LOB app ?
-
Deploy Zip app archive MacOS
Yes, see Microsofts Intune Sample scripts on Github but the question is: should you?
-
Need help with Dock script script via Intune
GitHub - microsoft/shell-intune-samples: Sample shell scripts for Intune admins.
dockutil
-
Need help with Dock script script via Intune
I would suggest dockutil
-
How to edit a .plist file which contains binary data
You could try using dockutil unless you really want to do it yourself.
-
Dockutil and Custom Commands
#!/bin/bash Sleep 240 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # version 2.0 # Written by: Mischa van der Bent # # Permission is granted to use this code in any way you want. # Credit would be nice, but not obligatory. # Provided "as is", without warranty of any kind, express or implied. # # DESCRIPTION # This script configures users docks using docktutil # source dockutil https://github.com/kcrawford/dockutil/ # # REQUIREMENTS # dockutil Version 3.0.0 or higher installed to /usr/local/bin/ # Compatible with macOS 11.x and higher # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # export PATH=/usr/bin:/bin:/usr/sbin:/sbin # COLLECT IMPORTANT USER INFORMATION # Get the currently logged in user currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' ) # Get uid logged in user uid=$(id -u "${currentUser}") # Current User home folder - do it this way in case the folder isn't in /Users userHome=$(dscl . -read /users/${currentUser} NFSHomeDirectory | cut -d " " -f 2) # Path to plist plist="${userHome}/Library/Preferences/com.apple.dock.plist" # Convenience function to run a command as the current user # usage: runAsUser command arguments... runAsUser() { if [[ "${currentUser}" != "loginwindow" ]]; then launchctl asuser "$uid" sudo -u "${currentUser}" "$@" else echo "no user logged in" exit 1 fi } # Check if dockutil is installed if [[ -x "/usr/local/bin/dockutil" ]]; then dockutil="/usr/local/bin/dockutil" else echo "dockutil not installed in /usr/local/bin, exiting" exit 1 fi # Version dockutil dockutilVersion=$(${dockutil} --version) echo "Dockutil version = ${dockutilVersion}" # Create a clean Dock # runAsUser "${dockutil}" --remove all --no-restart ${plist} # echo "clean-out the Dock" # Full path to Applications to add to the Dock apps=( "/System/Applications/System Preferences.app" "/System/Applications/Notes.app" "/System/Applications/Reminders.app" "/System/Applications/Photos.app" "/System/Applications/Launchpad.app" "/System/Applications/Launchpad.app" "/Applications/Self-Service.app" "/Applications/zoom.us.app" "/Applications/OneDrive.app" "/Applications/Microsoft Teams.app" "/Applications/Google Chrome.app" "/Applications/Firefox.app" "/Applications/Microsoft Edge.app" ) # Loop through Apps and check if App is installed, If Installed at App to the Dock. for app in "${apps[@]}"; do if [[ -e ${app} ]]; then runAsUser "${dockutil}" --add "$app" --position beginning --no-restart ${plist}; else echo "${app} not installed" fi done # Add Application Folder to the Dock runAsUser "${dockutil}" --add /Applications --view grid --display folder --sort name --no-restart ${plist} # Add logged in users Downloads folder to the Dock runAsUser "${dockutil}" --add ${userHome}/Downloads --view list --display stack --sort dateadded --no-restart ${plist} # Disable show recent # runAsUser defaults write com.apple.dock show-recents -bool FALSE # echo "Hide show recent from the Dock" # sleep 3 # Kill dock to use new settings killall -KILL Dock echo "Restarted the Dock" echo "Finished creating default Dock" exit 0
-
How to get rid of app titles in the Dock Bar
Install dockutil and script dockutil commands.
-
Default dock for new users.
You'll probably have better luck over on /r/macsysadmin, but dockutil might be a good place to start. https://github.com/kcrawford/dockutil
- Can I quickly remove items from my dock without right clicking?
-
Change MacOS Dock for different Focus modes, automatable with Shortery. Opinions?
For anyone asking I think the op is just replacing the plist and killing the dock, having a think about it myself you could also use a shell script with https://github.com/kcrawford/dockutil
-
Ventura - add to Dock with script?
dockutil is your friend.
-
Default user template
Suggest you use Dockutil
-
Basic MDM requirements but Moysle is unsuable
There is a package called dockutil that allows you to send a command to update the user's dock. You can specify location relative to other icons, and lots of command line options to string together. The trick is getting it to run at the right time.
What are some alternatives?
Installomator - Installation script to deploy standard software on Macs
outset - Automatically process packages, profiles, and scripts during boot, login, or on demand.
Intune-Network-Drive-Mapping-Tool - Map on-premises network shares with Intune and the Microsoft Store for Business
ProperTree - Cross platform GUI plist editor written in python.
bash-raytracer - A pure bash raytracer
intune-app-wrapping-tool-mac - Use the Intune App Wrapping Tool for Mac to enable Mac apps to be managed by Microsoft Intune
note - Manage your notes, todo, ... with this nifty script CLI/bash
modernish - Modernish is a library for writing robust, portable, readable, and powerful programs for POSIX-based shells and utilities.
awesome-bash-commands - A curated list of awesome Bash useful commands. Inspired by awesome-shell and bash-handbook.
PPPC-Utility - Privacy Preferences Policy Control (PPPC) Utility
tbd - Tests your programs.
bash_shell_mock - A shell script mocking utility/framework for the BASH shell