Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.

DEPNotify - Stall whilst waiting for VPP apps to download

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

Like Comment
Order by:
SOLVED Posted: by Hugonaut

@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

Like
SOLVED Posted: by Cayde-6

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

Like
SOLVED Posted: by kericson

@Cayde-6 Can you share this script?

Like
SOLVED Posted: by sdagley

@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.

Like
SOLVED Posted: by kericson

@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.

Like
SOLVED Posted: by sdagley

@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.

Like
SOLVED Posted: by kericson

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

Like
SOLVED Posted: by Cayde-6

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

Like
SOLVED Posted: by Cayde-6

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

Like
SOLVED Posted: by ferrispd

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

Like
SOLVED Posted: by tlarkin

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.

Like