DEPNotify - Stall whilst waiting for VPP apps to download

Cayde-6
Release Candidate Programs Tester

Has anyone got a similar concept? Looking for a script that will pause DEPNotify whilst Office365 VPP apps download in the background

11 REPLIES 11

Hugonaut
Valued Contributor II

@Cayde-6 I've never done this but my initial thought is an if else w/ delay, within your depnotify script add the following lines a few times, this way it just rolls over every 5 minute until completed and then you can enter the command to continue.

Looking forward to see other admins takes on this.

#!/bin/bash

if open -Ra "Microsoft Word" ; then
    #Continue depNotify Script or whatever command
else
    sleep 300
fi

if open -Ra "Microsoft Word" ; then
    #Continue depNotify Script or whatever command
else
    sleep 300
fi

but also a great possible use-case for my feature request :D

https://www.jamf.com/jamf-nation/feature-requests/8213/add-script-option-to-vpp-deployment-macos

________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month

Cayde-6
Release Candidate Programs Tester

Hey

So further to my post, I’ve developed a script that checks against an array for office 365 apps, if any are missing it then checks for failed MDM commands and clears them if any exist.

Triggers an inventory update to kick start the missing VPP apps again then sleeps for 10mins.

It well do the above 3 times before it fails and exits

KyleEricson
Valued Contributor II

@Cayde-6 Can you share this script?

Read My Blog: https://www.ericsontech.com

sdagley
Esteemed Contributor II

@Cayde-6 Out of curiosity, is there any particular reason you're installing the individual Office 365 apps via App Store VPP instead of using the Office 365/2019 Suite Installer from https://macadmins.software? An Office 365 license will activate either version, and in terms of the amount of data transferred the Office 365/2019 Suite Installer will be significantly smaller than downloading the individual apps from the App Store.

KyleEricson
Valued Contributor II

@sdagley I'm moving away from the PKG as you have to patch and update this. App store VPP is just easier to deploy and Apple patches it.

Read My Blog: https://www.ericsontech.com

sdagley
Esteemed Contributor II

@kericson In my environment I need control over exactly what version of the Office apps are deployed, and what updates are allowed, so the App Store deployment model doesn't work for me. With the addition of the msupdate tool with MAU 3.8 and @pbowden's msupdatehelper script to drive that tool from a Jamf Pro policy managing update for the Office 2016/2019 apps is pretty trivial. My only complaint is the ability to gracefully force users that habitually defer updates to install them, but I have high hopes that will be addressed when Paul releases the next version of his script.

KyleEricson
Valued Contributor II

@sdagley I was using that script, but my org just wants things updated not too strict.

Read My Blog: https://www.ericsontech.com

Cayde-6
Release Candidate Programs Tester

@kericson Sure, once I’ve tested with some bulk building of devices, I’m on AL so won’t be till September

Cayde-6
Release Candidate Programs Tester

@sdagley my organisation prefers native solutions where possible so Apple VPP then alternative methods

ferrispd
New Contributor III

I have also had this problem. Never did get it solved. Slack was also doing this, but after I remove the Office apps from the process, Slack started installing perfectly on newly enrolled devices.
-Pat

tlarkin
Honored Contributor

Not a straight forward way to do this really. VPP is not something you can really orchestrate at scale, it goes out into the Apple cloud and the devices retrieve and do the installs when they can.

I am assuming these are on brand new devices? If not, you will need to also check for MAS install versions versus installed other ways.