CreateToastNotifier issue

Newest toolkit, 3.9. Anyone getting the following when run via SCCM and found a workaround?

[Pre-Installation] :: Error Record:

Message : Exception calling “CreateToastNotifier” with “1” argument(s): "The notification platform is
unavailable.

             The notification platform is unavailable.
             "

InnerException : System.Exception: The notification platform is unavailable.

             The notification platform is unavailable.
             
                at Windows.UI.Notifications.ToastNotificationManager.CreateToastNotifier(String applicationId)
                at CallSite.Target(Closure , CallSite , Type , Object )

FullyQualifiedErrorId : Exception
ScriptStackTrace : at Show-BalloonTip, C:\WINDOWS\ccmcache\i\AppDeployToolkit\AppDeployToolkitMain.ps1:
line 10565
at Show-InstallationProgress,
C:\WINDOWS\ccmcache\i\AppDeployToolkit\AppDeployToolkitMain.ps1: line 10687
at , C:\WINDOWS\ccmcache\i\EasyLogUSB_7.7.ps1: line 188
at , : line 1
at , : line 1

PositionMessage : At C:\WINDOWS\ccmcache\i\AppDeployToolkit\AppDeployToolkitMain.ps1:10565 char:13
+ $notifier = [Windows.UI.Notifications.ToastNotificationMa …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error Inner Exception(s):

Message : The notification platform is unavailable.

             The notification platform is unavailable.

InnerException :

Deploy Application	1/17/2023 12:26:02 PM	13156 (0x3364)

Getting same error if I execute the script from system context. However, it works fine with user context. Any fix for this?

It’s probably related to this issue: Balloon Tips errors (run as administrator) (PSADT v3.9) - The Toolkit / General Discussion - PSAppDeployToolkit Community

1 Like

There is a fix on version 3.9.1 related to Toast messages when running as system. Check if it fixes yours.