Loving PSAppDeployToolkit, use it to deliver large CAD applications (1GB+) that would otherwise be installed manually. Keep up the good work, saves me loads of time!
Now for my question:
I use Show-InstallationWelcome, with only 2 buttons, defer or continue, and a countdown timer of 5 minutes. Users are allowed to defer 3 times. Since we use Intune to distribute apps, we have little control over time of installation. With large CAD applications, which our users use all day, waiting for half an hour for an installation to finish can be pretty annoying. So the keep clicking defer.
What I would like to do is provide an extra button that says ‘install at 12pm (lunchtime)’. This button should then quit the prompt, and call a Powershell script that creates a scheduled task set to go off at 12pm, restarting the Intune service, and thereby invoking an install. Because no-one is behind the desk at that time, the countdown will pass, and start the installation. User comes back from lunch, install finished.
Is this possible?
I tried Show-InstallationPrompt but then I can’t use -closeapps etc. Ideally the button should only be available if the scheduled task does not exist.