Improve your Windows as a Service process: Use Toast Notifications and Powershell App Deployment Toolkit to Upgrade Windows 10

Introduction

This is just a brief storytelling on, how you can add more user-friendliness and flexibility to your Windows as a Service process with Configuration Manager.

That be whether you fancy using Task Sequences or Feature Updates, this post will show you how you can wrap the process into an initial Toast Notification, which again sends the end-user into a PowerShell App Deployment Toolkit experience, which again will run either the Task Sequence or the Feature Update automatically.

Carrot on a stick: All the binaries used in these examples, are available for download throughout the post. That goes for PSADT as well as exported ConfigMgr applications.

Task Sequence

The process in details for Task Sequences will be like following steps:

  1. Toast Notification is displayed to the end-user
  2. End-user clicks Install Now
  3. Software Center is launched into the Installation status tab
  4. Application based on PSADT is being run automatically
  5. Going through the PSADT process will move Software Center into the OSD tab
  6. PSADT will launch the IPU Task Sequence automatically

Feature Update

The process in details for Feature Updates will be like following steps:

  1. Toast Notification is displayed to the end-user
  2. End-user clicks Upgrade Now
  3. Software Center is launched into the Installation status tab
  4. Application based on PSADT is being run automatically
  5. Going through the PSADT process will move Software Center into the Updates tab
  6. PSADT will launch the Feature Update automatically

PowerShell App Deployment Toolkit

I’m making both of the PSADT projects used respectively for Task Sequences: ToastNotificationDummy-TS.zip (95 downloads) and Feature Updates: ToastNotificationDummy-FU.zip (76 downloads) available for a direct download.

The only real interesting part of the content of either PSADT projects, is the PowerShell scripts, which are initiating the Task Sequence and the Feature Update.

I made a virtue of making proper commenting, so everything should hopefully make some sense. If not, let me know in the comments section.

Below script will run the Task Sequence with the corresponding package id, and write the detection method used in the application, into the registry:

Below script will run the Feature Update with the corresponding Article ID, and write the detection method used in the application, into the registry:

Toast Notification Script

The Toast Notification Script is obviously my script of the same name here: https://github.com/imabdk/Toast-Notification-Script

The script is run with a config.xml file, which is similar to the below illustration.

The important bits here are following:

  • UpgradeOS – This enables the toast notification to consider the build of Windows 10
  • TargetOS – This is the actual build of Windows 10 once the upgrade is complete. (I intentionally configured the build to 19042 for testing purposes. 19041 = 2004)
  • RunApplicationID – This is the Application ID of the application in ConfigMgr running the PSADT
  • Action – This is the custom protocol (HKCU\SOFTWARE\Classes\ToastRunApplicationID), referring to the custom script (C:\ProgramData\ToastNotificationScript\ToastRunApplicationID.ps1), running the Application ID via Software Center

NOTE: The Toast Notification Script is capable of running Feature Updates as well as Task Sequences directly from the Action button. Both of the examples used in this post, are leveraging the ability to run applications directly from the action button in order to take advantage of the PSADT capabilities.

ConfigMgr Applications

Yet again and for the sake of everyone, I’m making an export of both applications in Configuration Manager available for download.

Task Sequence: TOAST-PSADT-TS.zip (60 downloads) and Feature Update: TOAST-PSADT-FU.zip (55 downloads)

These can be imported directly into your ConfigMgr environment, where the PSADT projects downloaded above, will be the source files – everything standard ConfigMgr.

Below is an example of one of the applications made available in the Software Center:

Again, if any questions, don’t hesitate to reach out in the comment section down below.

ENJOY 🙂

2 thoughts on “Improve your Windows as a Service process: Use Toast Notifications and Powershell App Deployment Toolkit to Upgrade Windows 10”

Leave a Reply to Martin Bengtsson Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.