depNotify Broken with MacOS 12.3.1

Tonydig11
New Contributor III

I know with MacOS 12.3 the Python version changed and the python call for current user did not work. I changed that when 12.3 was released a few months back and depNotify worked again. Now with 12.3.1 depNotify will not launch with enrollment.

 

I have followed the solutions in the following post with no luck on this MacOS version. Anyone find a solution for MacOS 12.3.1??

https://community.jamf.com/t5/jamf-pro/dep-notify-and-monterey-12-2-3-python-call/m-p/258525

 

 

1 ACCEPTED SOLUTION

Tonydig11
New Contributor III

With help from a Slack channel I have my DEPNotify back up and running. I had my DEPNotify package in pre stage enrollment. I was asked to try to create a policy then add the DEPNotify package in there and have it run on "enrollment complete". I did this and removed the package from pre stage. I also added a custom trigger to point to the policy that has the script.Screen Shot 2022-05-11 at 12.10.24 PM.pngScreen Shot 2022-05-11 at 12.10.32 PM.pngScreen Shot 2022-05-11 at 12.10.43 PM.pngScreen Shot 2022-05-11 at 12.11.19 PM.png

View solution in original post

8 REPLIES 8

gabe2385
Contributor

Hello @Tonydig11 

I have been using DEPNotify with 12.3.1 and 12.4 (Beta) with no issues. Are you using the DEPNotify Starter Script for your deployments? https://github.com/jamf/DEPNotify-Starter 

Tonydig11
New Contributor III

I was at this link a few this morning. Noticed that I was on version 2.0.5 of the script. So I updated my script to the new 2.0.7 script and modified it for my deployment and it is still not launching during the build.

Hello @Tonydig11 

Is DEPNotify installed already on the machine before the script is run? We are deploying the DEPNotify package through prestage enrollment packages and having the script run after enrollment. We had to notarize the DEPNotify pkg in order for it to work correctly.  Also check the Jamf logs and see if the script is actually running during your deployment ( /var/log/Jamf.log) 

Tonydig11
New Contributor III

Yes. I deploy DEPNotify in prestage enrollment. Just tested and it still works with 12.2.1. Not working with 12.3.1Screen Shot 2022-05-11 at 10.31.18 AM.png

Tonydig11
New Contributor III

the log shows that the DEPNotify policy that holds the script has started.

Screen Shot 2022-05-11 at 10.50.35 AM.png

Tonydig11
New Contributor III

With help from a Slack channel I have my DEPNotify back up and running. I had my DEPNotify package in pre stage enrollment. I was asked to try to create a policy then add the DEPNotify package in there and have it run on "enrollment complete". I did this and removed the package from pre stage. I also added a custom trigger to point to the policy that has the script.Screen Shot 2022-05-11 at 12.10.24 PM.pngScreen Shot 2022-05-11 at 12.10.32 PM.pngScreen Shot 2022-05-11 at 12.10.43 PM.pngScreen Shot 2022-05-11 at 12.11.19 PM.png

mickl089
Contributor III

It is definitely the case that you need to lift the script to version 2.0.7 - triggered by the fact that in the previous versions Python code was still used, which now no longer works because with 12.3.1 Python was removed.

Find the script in v2.0.7 and adapt it to your script - I think there are only 20-30 lines of code that have been changed.

Everything else can be left as it is, it's definitely the script!

sardesm
New Contributor III

@Tonydig11 what other installers do you have in the DepNotifywithinstallers.pkg file?