microsoft/shell-intune-samples

Add Apps to Dock script does not work

mateusz-int opened this issue · 5 comments

https://github.com/microsoft/shell-intune-samples/blob/master/macOS/Config/Dock/addAppstoDock.sh

After the execution Dock crashes and default values are restored. Company Portal starts correctly.
Screenshot 2022-12-17 at 10 35 16

MacOS version: 13.1

Are you running this as root or the end user?

pishah commented

Having a little trouble making this work. Error in intune is "The script timed out before exiting. (1)", the only items I changed where the apps. I ran as user and set 3 retries as indicated. Thank you for any guidance!

Here is the apps section I created. I checked that they are all installed on the device
dockapps=( "/Applications/Google\ Chrome.app"
"/Applications/Google\ Drive.app"
"/Applications/Microsoft Outlook.app"
"/Applications/Microsoft Word.app"
"/Applications/Microsoft Excel.app"
"/Applications/Microsoft PowerPoint.app"
"/Applications/Microsoft Teams.app"
)

pishah commented

Awe, let me try that. Thank you. I will try to find the log, sorry new to MacOS haha

pishah commented

That did the trick thank you! In the terminal when I was using other commands I needed the \ for some reason so thought it was necessary here too. Really appreciate you making this!