Working with the new version of the toolkit 3.9.0.
I notice with the new version I am getting the following error.
[01-12-2023 08:19:35.286] [Pre-Installation] [Deploy Application] :: Error Record:
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:\Users\hockink\Desktop\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1: line 10566
at Show-InstallationProgress,
C:\Users\hockink\Desktop\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1: line 10687
at , C:\Users\hockink\Desktop\Toolkit\Deploy-Application.ps1: line 188
at , : line 1
PositionMessage : At C:\Users\hockink\Desktop\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1:10566 char:13
+ $notifier.Show($toastXml)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
Error Inner Exception(s):
Message : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
InnerException :
If I set balloon notifications to “False” the script runs fine. Previous versions of the toolkit worked fine with the balloon Notifications set to “True”.
If I copy the Balloon Function from a previous version of PSADT everything works fine.
I’ve narrowed down the issue to being logged in as a standard user and requiring elevated privileges to trigger the script.
in our environment all users are standard users so any installations are done by SCCM as system, or run as administrator and supplying an admin account username and password.