microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
636 stars 213 forks source link

Add Apps to Dock script does not work #86

Closed mateusz-int closed 8 months ago

mateusz-int commented 1 year ago

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

theneiljohnson commented 1 year ago

Are you running this as root or the end user?

pishah commented 12 months ago

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" )

theneiljohnson commented 12 months ago

I don't think the backslash in Google Drive is required. Also, can you share the log?


From: Pishah Code @.> Sent: 26 July 2023 17:29 To: microsoft/shell-intune-samples @.> Cc: Subscribed @.>; Comment @.> Subject: Re: [microsoft/shell-intune-samples] Add Apps to Dock script does not work (Issue #86)

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" )

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/shell-intune-samples/issues/86#issuecomment-1652144762 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGOC2JN5KZB6ZV5ZXSZXIJDXSFAWDBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVEZDONRVGE4TQNRQQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRRGUYDCMRZHE4TAMVHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you commented on the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

pishah commented 12 months ago

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

pishah commented 12 months ago

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!