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
ERROR:
Function Show-BalloonTip {
10566 $notifier.Show($toastXml)
Message : Exception calling “Show” with “1” argument(s): “Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))”
InnerException : System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
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
10566
at Exit-Script, C:\temp\Test\AppDeployToolkit\AppDeployToolkitMain.ps1: line
1729
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 :