Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS - Kernal Panic when executing addAppstoDock.sh shell script during Intune ADE #124

Open
jkerekes99 opened this issue Mar 25, 2024 · 4 comments

Comments

@jkerekes99
Copy link

OS Version: macOS 14.4
Test device: M1 Macbook Air

Deploying all applications via the Intune Scripting Engine.
Apps being deployed:

  • Microsoft 365 Apps
  • Microsoft Teams (new)
  • Microsoft Edge
  • Microsoft Remote Desktop
  • Microsoft Company Portal

All apps using scripts from this github repo.

appApptoDock.sh items:
dockapps=( "/Applications/Microsoft Edge.app"
"/Applications/Microsoft Outlook.app"
"/Applications/Microsoft OneNote.app"
"/Applications/Microsoft Teams (work or school).app"
"/Applications/OneDrive.app"
"/Applications/Microsoft Word.app"
"/Applications/Microsoft Excel.app"
"/Applications/Microsoft PowerPoint.app"
"/Applications/Microsoft Remote Desktop.app"
"/System/Applications/Messages.app"
"/System/Applications/FaceTime.app"
"/System/Applications/Freeform.app"
"/Applications/Company Portal.app"
"/System/Applications/App Store.app")

Steps to reproduce:

  1. Setup enrolment profile / ADE via ABM
  2. Assign the above app scripts .
  3. Assign appAppstoDock.sh .
  4. Enrol test device via ADE Intune.
  5. All the above apps proceed to install.
  6. Immediately after the last app is installed, addAppstoDock.sh is waiting...and immediately causes a Kernal Panic and the mac reboots.
@theneiljohnson
Copy link
Contributor

Thanks for this, i'm seeing the same behaviour. I've no idea why at this stage. If I run the script manually, or even a minute or so after all the apps have been installed it doesn't seem to do it.

I'm tempted to just add a longer delay at this point.

@jkerekes99
Copy link
Author

@theneiljohnson thanks for confirming its not just me :)
I see the same behaviour, if I run it manually I don't get a kernal panic.

When you add a longer delay, do you still get a kernal panic?
I believe there is a 30 second sleep already in place, but the strange thing is the kernal panic happens immediately after the last app gets installed.

@Gregzy1987
Copy link

Gregzy1987 commented Apr 18, 2024

Hi both,
Following this issue as i too am experiencing the same issue.
I tried adding a longer delay but it didn't make a difference on my end unfortunately.

I did notice the reboot changed with the delay and went from 10 seconds to 60 seconds with no success, after the last app was installed.

@jbba2023
Copy link

jbba2023 commented May 1, 2024

I have also noticed this issue. It happened during my training videos I was making for our helpdesk. It hasn't happened since and I was using that Mac for a good while before enrolling into Intune and I was using it for a good while before applying dock config whilst enrolled as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants