V3.9.0 out of the box error: Exception calling "Show"

Directly from the new 3.9.0 version when running in system context this error. It stems from Main calling Function Show-BalloonTip and the line is 10566 $notifier.Show($toastXml).

Show-BalloonTip is called from Exit-Script and Show-InstallationProgress. I assume this error sems from system-context not being able to show the balloon tip. I also assume that this error will show when using SCCM as it uses system context. Duplicated the incident by using psexec -s

Function Show-BalloonTip {
10566 $notifier.Show($toastXml)

Message : Exception calling “Show” with “1” argument(s): “Access is denied. (Exception from HRESULT: 0x80070005
InnerException : System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005
at Windows.UI.Notifications.ToastNotifier.Show(ToastNotification notification)
at CallSite.Target(Closure , CallSite , Object , Object )

FullyQualifiedErrorId : UnauthorizedAccessException
ScriptStackTrace : at Show-BalloonTip, C:\temp\Test\AppDeployToolkit\AppDeployToolkitMain.ps1: line
at Exit-Script, C:\temp\Test\AppDeployToolkit\AppDeployToolkitMain.ps1: line
at , C:\temp\Test\Deploy-Application - Copy.ps1: line 181
at , : line 1
at , : line 1

PositionMessage : At C:\Temp\Test\AppDeployToolkit\AppDeployToolkitMain.ps1:10566 char:13
+ $notifier.Show($toastXml)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~

Error Inner Exception(s):

Message : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
InnerException :

Hi Virgil-2,

The 3.9.x versions are a bit of a mess right now.
See Issues · PSAppDeployToolkit/PSAppDeployToolkit (github.com)

The guys have released 2 other versions after 3.9.0 but it’s still not perfect.
And the guys have day jobs, too.
They are doing what they can.

understood! will just REM the calling lines until fixed version

1 Like

FYI…new issue with 3.9.2 when running in system context

It seems the PSAppDeployToolkit-ExecuteAsUser.vbs file has a missing double-quote.

please report the issue here: Issues · PSAppDeployToolkit/PSAppDeployToolkit (github.com)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.