PSADT.ToastNotification Extension

Hi there, I don’t have any Windows 11 domain joined PC to test the extension behavior.
Have you checked the focus options?
Have you been running it using SYSTEM account or normal user account?

In fact, we have computers connected to a domain and others to Intune. We are going to move everyone to Intune soon. I am testing with my computer connected to the domain. This morning I tested with an Intune computer in system context and I didn’t see anything appear on the screen. Here is the log of my installation. Maybe it will help to understand.

<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="08:31:55.335-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="08:31:55.335-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [PuTTY_0.78_x64_EN_01] setup started.]LOG]!><time="08:31:55.467-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\Deploy-Application.ps1]]LOG]!><time="08:31:56.838-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\PSADT.VolatilePaths\VolatilePathsExtension.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitExtensions.ps1]]LOG]!><time="08:31:57.563-240" date="04-12-2023" component="VolatilePathsExtension" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="VolatilePathsExtension.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\PSADT.RunAsActiveUser\RunAsActiveUserExtension.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitExtensions.ps1]]LOG]!><time="08:31:58.374-240" date="04-12-2023" component="RunAsActiveUserExtension" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="RunAsActiveUserExtension.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\PSADT.DataExtraction\DataExtractionExtension.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitExtensions.ps1]]LOG]!><time="08:31:59.147-240" date="04-12-2023" component="DataExtractionExtension" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="DataExtractionExtension.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitExtensions.ps1]]LOG]!><time="08:32:03.077-240" date="04-12-2023" component="ToastNotificationExtension" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="ToastNotificationExtension.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="08:32:03.127-240" date="04-12-2023" component="PSAppDeployToolkitExt" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [PuTTY_0.78_x64_EN_01] script version is [1.0.0]]LOG]!><time="08:32:03.235-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [PuTTY_0.78_x64_EN_01] script date is [03/23/2023]]LOG]!><time="08:32:03.263-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [PuTTY_0.78_x64_EN_01] script author is [<author name>]]LOG]!><time="08:32:03.292-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.9.2]]LOG]!><time="08:32:03.320-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeploymentType:'Install' -DeployMode:'Silent']]LOG]!><time="08:32:03.330-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.9.3]]LOG]!><time="08:32:03.340-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [3.9.2]]LOG]!><time="08:32:03.349-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [INTUN-PAS-TEST4]]LOG]!><time="08:32:03.378-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM]]LOG]!><time="08:32:03.409-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 10 Éducation 64-bit 10.0.19045.2486]]LOG]!><time="08:32:03.438-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Workstation]]LOG]!><time="08:32:03.465-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [fr-CA], language is [FR] and UI language is [FR]]LOG]!><time="08:32:03.495-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:Hyper-V]]LOG]!><time="08:32:03.634-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.19041.2364]]LOG]!><time="08:32:03.674-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.19041.2364 x64]]LOG]!><time="08:32:03.702-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000]]LOG]!><time="08:32:03.732-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="08:32:03.762-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Display session information for all logged on users: 


NTAccount           : CSBE\intune1
SID                 : S-1-12-1-1111831580-1181102800-1436467635-1678494537
UserName            : intune1
DomainName          : CSBE
SessionId           : 1
SessionName         : Console
ConnectState        : Active
IsCurrentSession    : False
IsConsoleSession    : True
IsActiveUserSession : True
IsUserSession       : True
IsRdpSession        : False
IsLocalAdmin        : False
LogonTime           : 2023-04-12 07:56:38
IdleTime            : 00:00:00
DisconnectTime      : 
ClientName          : 
ClientProtocolType  : 
ClientDirectory     : 
ClientBuildNumber   : 0



]LOG]!><time="08:32:06.274-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: [CSBE\intune1].]LOG]!><time="08:32:06.340-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running under a system account [NT AUTHORITY\SYSTEM].]LOG]!><time="08:32:06.368-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following user is the console user [CSBE\intune1] (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="08:32:06.421-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user is [CSBE\intune1].]LOG]!><time="08:32:06.451-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [CSBE\intune1] has a primary UI language of [FR].]LOG]!><time="08:32:06.478-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_FR].]LOG]!><time="08:32:06.532-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [CSBE\intune1] has a DPI scale factor of [100] with DPI pixels [96].]LOG]!><time="08:32:06.545-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="08:32:06.576-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] exists.]LOG]!><time="08:32:08.975-240" date="04-12-2023" component="Test-ServiceExists" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Getting the service [Schedule] startup mode.]LOG]!><time="08:32:09.088-240" date="04-12-2023" component="Get-ServiceStartMode" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] startup mode is set to [Automatic].]LOG]!><time="08:32:10.245-240" date="04-12-2023" component="Get-ServiceStartMode" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Getting the service object for service [Schedule].]LOG]!><time="08:32:10.579-240" date="04-12-2023" component="Start-ServiceAndDependencies" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] with display name [Planificateur de tâches] has a status of [Running].]LOG]!><time="08:32:10.748-240" date="04-12-2023" component="Start-ServiceAndDependencies" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The task scheduler service is in a healthy state: True.]LOG]!><time="08:32:10.784-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 detected, process not running in user interactive mode; deployment mode set to [NonInteractive].]LOG]!><time="08:32:10.856-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [NonInteractive] mode.]LOG]!><time="08:32:10.948-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation].]LOG]!><time="08:32:11.015-240" date="04-12-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="AppDeployToolkitMain.ps1">
<![LOG[[Pre-Installation] :: Evaluating disk space requirements.]LOG]!><time="08:32:11.146-240" date="04-12-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Retrieving free disk space for drive [C:].]LOG]!><time="08:32:11.215-240" date="04-12-2023" component="Get-FreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Free disk space for drive [C:]: [49004 MB].]LOG]!><time="08:32:11.373-240" date="04-12-2023" component="Get-FreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Successfully passed minimum disk space requirement check.]LOG]!><time="08:32:11.472-240" date="04-12-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Getting deferral history...]LOG]!><time="08:32:11.755-240" date="04-12-2023" component="Get-DeferHistory" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\PuTTY_0.78_x64_EN_01] does not exist. Return $null.]LOG]!><time="08:32:11.801-240" date="04-12-2023" component="Get-RegistryKey" context="NT AUTHORITY\SYSTEM" type="2" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The user has [3] deferrals remaining.]LOG]!><time="08:32:11.858-240" date="04-12-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Checking for running applications: [iexplore, paint]]LOG]!><time="08:32:11.976-240" date="04-12-2023" component="Get-RunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Specified applications are not running.]LOG]!><time="08:32:12.100-240" date="04-12-2023" component="Get-RunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Bypassing function [Show-InstallationProgress], because DeployMode [NonInteractive]. Status message: Installation en cours, merci de patienter...]LOG]!><time="08:32:13.039-240" date="04-12-2023" component="Show-InstallationProgress" context="NT AUTHORITY\SYSTEM" type="2" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Reading data from Windows Installer database file [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\Files\putty-64bit-0.78-installer.msi] in table [Property].]LOG]!><time="08:32:13.246-240" date="04-12-2023" component="Get-MsiTableProperty" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Getting information for installed Product Code [{4EEF2644-700F-46F8-9655-915145248986}]...]LOG]!><time="08:32:13.609-240" date="04-12-2023" component="Get-InstalledApplication" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.]LOG]!><time="08:32:14.337-240" date="04-12-2023" component="Get-InstalledApplication" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Found no application based on the supplied parameters.]LOG]!><time="08:32:14.409-240" date="04-12-2023" component="Get-InstalledApplication" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing MSI action [Install]...]LOG]!><time="08:32:14.529-240" date="04-12-2023" component="Execute-MSI" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [C:\Windows\System32\msiexec.exe] is a valid fully qualified path, continue.]LOG]!><time="08:32:14.697-240" date="04-12-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Checking to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time="08:32:14.908-240" date="04-12-2023" component="Test-IsMutexAvailable" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Mutex [Global\_MSIExecute] is available for an exclusive lock.]LOG]!><time="08:32:14.993-240" date="04-12-2023" component="Test-IsMutexAvailable" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\Files].]LOG]!><time="08:32:16.092-240" date="04-12-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\Windows\System32\msiexec.exe /i "C:\Windows\IMECache\9a0cedfd-a85c-4e1b-8d97-24bac6921d74_1\Files\putty-64bit-0.78-installer.msi" REBOOT=ReallySuppress /QN /L*v "C:\Windows\Logs\Software\putty-64bit-0.78-installer_Install.log"]...]LOG]!><time="08:32:16.130-240" date="04-12-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: PassThru parameter specified, returning execution results object.]LOG]!><time="08:32:24.677-240" date="04-12-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution completed successfully with exit code [0].]LOG]!><time="08:32:25.272-240" date="04-12-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Refreshing the Desktop and the Windows Explorer environment process block.]LOG]!><time="08:32:26.086-240" date="04-12-2023" component="Update-Desktop" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: Bypassing function [Show-InstallationPrompt], because DeployMode [NonInteractive]. Message: You can customize text to appear at the end of an install or remove it completely for unattended installations.]LOG]!><time="08:32:26.770-240" date="04-12-2023" component="Show-InstallationPrompt" context="NT AUTHORITY\SYSTEM" type="2" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: PuTTY_0.78_x64_EN_01 Installation completed with exit code [0].]LOG]!><time="08:32:26.989-240" date="04-12-2023" component="Exit-Script" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: -------------------------------------------------------------------------------]LOG]!><time="08:32:27.464-240" date="04-12-2023" component="Exit-Script" context="NT AUTHORITY\SYSTEM" type="1" thread="10784" file="Deploy-Application.ps1">

My god, the log is impossible to read, check how to post it the right way.

But… DeployMode [NonInteractive] means no Toast Notification nor windows will appear.

I did some more tests. I modified my command line in my Azure console to be in interactive mode. But it doesn’t work. During the initialization phase, it indicates “Session 0 detected” and then it falls into non-interactive mode. Should toast notifications work in Intune?

The problem with Intune is that the process is executed in NonInteractive mode, that’s the limitation, you can use ServiceUI.exe to make it Interactive.
I have some ideas about how to make the Intune process interactive automatically, ideas but no time :grinning:

By default you won’t see any Toast Notification nor dialogs nor prompts in Intune, even the Toast Notification extension is present or not.

For more information related to the usage or installation, follow the external link.

2023/04/14 - Updated to v1.1.3 :grinning:

  • Updated required extension versions.

Hi,

Is there a way to stack the ‘Blocked Execution’ notification on top of the ‘Installation Progress’ notification? I find at the moment that triggering the ‘Block’ notification causes the ‘Progress’ notification to close and once the ‘Block’ notification closes (based on a timer?) there is then no longer any visual clue to the continuing installation. If it could be stacked, then when the ‘Blocked’ one closes, we would still have the ‘Installation’ one in place.

Cheers.
Keeop

Hi there,

The short answer is NOT.

Regular Toast Notifications can be displayed with short (7s) or long (25s) duration if no scenario is given.

The interactive Toas Notifications, that have action buttons, are persistent and the scenario is alarm.

To mantain the Installation Progress visible after the long/short duration I keep it updated in background. Causing the Block Execution one to never appears.

(Not to mention that both of the above processes are asynchronous).

So, in order to show the Block Execution i have to sacrifice the Installation Progress.

If there any way to reshow the closed Installation Progress? Maybe yes, but would request some complex coding and don’t know if have enough time.

Hello!

Thank you for sharing this extension for us!

So I have the toast notification running however, when I run the psadt script, I get an error:

G4AdgBpAHIAbwBuAG0AZQBuAHQAXQA6ADoAUwBlAHQARQBuAHYAaQByAG8AbgBtAGUAbgB0AFYAYQByAGkAYQBiAGwAZQAoACQAXwAsACAAJABuAHUAbABsACAALAAgACIAVQBzAGUAcgAiACkADQAKAH0ADQAKAH0ADQAKAH0ADQAKAA==]...
[04-26-2023 22:19:02.055] [Pre-Installation] [Execute-Process] :: NoWait parameter specified. Continuing without waiting for exit code...
[04-26-2023 22:19:02.057] [Pre-Installation] [Show-WelcomePrompt] :: A problem occured with the Toast Notification or function result [] not allowed. Falling back to original function...
[04-26-2023 22:19:02.060] [Pre-Installation] [Show-WelcomePromptOriginal] :: The user has the option to defer.
[04-26-2023 22:20:37.074] [Pre-Installation] [Show-InstallationWelcome] :: Installation deferred by the user.
[04-26-2023 22:20:37.083] [Pre-Installation] [Set-DeferHistory] :: Setting deferral history: [DeferTimesRemaining = 2].
[04-26-2023 22:20:37.090] [Pre-Installation] [Set-RegistryKey] :: Creating registry key [Registry::HKEY_CURRENT_USER\SOFTWARE\PSAppDeployToolkit\DeferHistory\VideoLAN_VLCmediaplayer_3.0.18.0_EN_01].
[04-26-2023 22:20:37.092] [Pre-Installation] [Set-RegistryKey] :: Setting registry key value: [Registry::HKEY_CURRENT_USER\SOFTWARE\PSAppDeployToolkit\DeferHistory\VideoLAN_VLCmediaplayer_3.0.18.0_EN_0
1] [DeferTimesRemaining = 2].

I am just testing it out with VLC player and I am testing out the defer button however, it gives me the error listed above and brings back the original prompt. I switch fallback to the origina prompt off in the XML however, I still get an error.

This error also appears if I click continue instead of defer as well.

Here is what I tried:

Tried in both 3.84 and 3.92 PSADT versions
Ran as regular, admin, and system context.
Tried a different exe/msi

Any advice?

Hi there!

The feature you mention in your post is not implemented, by default if any Toast Notification reaches the end of the function without a result the original function is called, you can’t switch this off (without editing the ps1 file).

I need a complete debug log to see what is going on…

If I understood it well, the Toast Notification is shown but when you click any button (Defer, Continue) the original prompt is displayed?

Hi LFM8787, great work with this project.

Am really struggling with the intune deployment side of it.

Executing deploy-application.exe with an elevated command prompt the TOAST notifications work perfectly, which is expected, thank you.

The problem is, when I try and deploy via Intune, it fails everytime.

Using PSexec to run CMD within the system environment i receive the following errors in my log and the Toast notifications nor does the app install.

Firstly, I receive exit code 1 from psexec. Checking the PSADT log files I can see the following errors:

Attempting to execute with the following command:
.\ServiceUI.exe -process:explorer.exe Deploy-Application.exe

[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the ‘SeDelegateSessionUserImpersonatePrivilege’ token.

[Pre-Installation] :: The Toast Notification AppId [PSADT.ToastNotification] availability test result was unsuccessful.

[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the ‘SeDelegateSessionUserImpersonatePrivilege’ token.

Have you had any joy getting your TOAST notifications to work with Intune please? or do you have any ideas about how I can overcome these errors?

Thanks,

Hi,

With Intune you need to set the deployment to run as System and this would be the install command I would use (N.B. I include the ServiceUI.exe in the root of my Intunewin file):

ServiceUI.exe -Process:explorer.exe Deploy-Application.exe -DeploymentType "Install"

Screen grab of one of my PSADT installs (Firefox installed as System):


P.S. You can only set it to run as System (or User) when you first build the deployment, if it is set wrong, you need to recreate the deployment

I hope this helps

I have no longer access to a SCCM / Intune environment, it was a solution implemented for the last job I was assigned.

I’m afraid I can’t help you right now. :slightly_frowning_face:

Even though the error is coming from the RunAsActiveUser extension when trying to impersonate, the parent process cannot delegate, look for ‘SeDelegateSessionUserImpersonatePrivilege’ in the web.

Any update on this issue? I’m having the exact same problem and would really like to use this :slight_smile:

Hello, I tried this method and still no luck! Is it working OK for you at the moment?

Hi there, do not use PSEXEC, just create a new application whitin SCCM and try it, enable debug logging and paste the result just to see where it fails.
I have no longer access to a SCCM / Intune environment, it was a solution implemented for the last job I was assigned.

Here are the logs, this has been packaged up and deployed out via Intune.

<![LOG[[Initialization] :: Display session information for all logged on users: 


NTAccount           : AZUREAD\ThomasMahony_hbdsbi6
SID                 : S-1-12-1-3265717486-1152022411-2200248715-1858107037
UserName            : ThomasMahony_hbdsbi6
DomainName          : AZUREAD
SessionId           : 2
SessionName         : RDP-Tcp#0
ConnectState        : Active
IsCurrentSession    : True
IsConsoleSession    : False
IsActiveUserSession : True
IsUserSession       : True
IsRdpSession        : True
IsLocalAdmin        : False
LogonTime           : 9/11/2023 4:51:08 AM
IdleTime            : 00:10:29.1871678
DisconnectTime      : 
ClientName          : MSI
ClientProtocolType  : RDP
ClientDirectory     : C:\WINDOWS\system32\mstscax.dll
ClientBuildNumber   : 19041



]LOG]!><time="06:07:04.7930" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: [AZUREAD\ThomasMahony_hbdsbi6].]LOG]!><time="06:07:04.8000" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running with user account [NT AUTHORITY\SYSTEM] under logged in user session for [AZUREAD\ThomasMahony_hbdsbi6].]LOG]!><time="06:07:04.8060" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: There is no console user logged in (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="06:07:04.8110" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user is [AZUREAD\ThomasMahony_hbdsbi6].]LOG]!><time="06:07:04.8170" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [AZUREAD\ThomasMahony_hbdsbi6] has a primary UI language of [EN].]LOG]!><time="06:07:04.8220" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_EN].]LOG]!><time="06:07:04.8260" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [AZUREAD\ThomasMahony_hbdsbi6] has a DPI scale factor of [100] with DPI pixels [96].]LOG]!><time="06:07:04.8300" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="06:07:04.8400" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] exists.]LOG]!><time="06:07:05.0510" date="09-11-2023" component="Test-ServiceExists" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Getting the service [Schedule] startup mode.]LOG]!><time="06:07:05.0750" date="09-11-2023" component="Get-ServiceStartMode" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] startup mode is set to [Automatic].]LOG]!><time="06:07:05.2410" date="09-11-2023" component="Get-ServiceStartMode" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Getting the service object for service [Schedule].]LOG]!><time="06:07:05.2830" date="09-11-2023" component="Start-ServiceAndDependencies" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] with display name [Task Scheduler] has a status of [Running].]LOG]!><time="06:07:05.3100" date="09-11-2023" component="Start-ServiceAndDependencies" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The task scheduler service is in a healthy state: True.]LOG]!><time="06:07:05.3200" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 detected, process running in user interactive mode, user(s) logged in.]LOG]!><time="06:07:05.3250" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="06:07:05.3290" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation].]LOG]!><time="06:07:05.3360" date="09-11-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="AppDeployToolkitMain.ps1">
<![LOG[[Pre-Installation] :: Evaluating disk space requirements.]LOG]!><time="06:07:05.3710" date="09-11-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Retrieving free disk space for drive [C:].]LOG]!><time="06:07:05.3910" date="09-11-2023" component="Get-FreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Free disk space for drive [C:]: [93005 MB].]LOG]!><time="06:07:05.4190" date="09-11-2023" component="Get-FreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Successfully passed minimum disk space requirement check.]LOG]!><time="06:07:05.4540" date="09-11-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Getting deferral history...]LOG]!><time="06:07:05.5210" date="09-11-2023" component="Get-DeferHistory" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\Notepad++_8.5.7_EN_01] does not exist. Return $null.]LOG]!><time="06:07:05.5340" date="09-11-2023" component="Get-RegistryKey" context="NT AUTHORITY\SYSTEM" type="2" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The user has [3] deferrals remaining.]LOG]!><time="06:07:05.5430" date="09-11-2023" component="Show-InstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Checking for running applications: [notepad++]]LOG]!><time="06:07:05.5770" date="09-11-2023" component="Get-RunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The following processes are running: [notepad++].]LOG]!><time="06:07:05.7930" date="09-11-2023" component="Get-RunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Prompting the user to close application(s) [Notepad++]...]LOG]!><time="06:07:06.0680" date="09-11-2023" component="Show-WelcomePrompt" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The user has the option to defer.]LOG]!><time="06:07:06.0770" date="09-11-2023" component="Show-WelcomePrompt" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Creating folder [C:\Windows\TEMP\PSAppDeployToolkit\psadttoastnotification\Notepad++_857_EN_01].]LOG]!><time="06:07:06.1390" date="09-11-2023" component="New-Folder" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Converting the SID [S-1-5-32-545] to an NT Account name.]LOG]!><time="06:07:06.2800" date="09-11-2023" component="ConvertTo-NTAccountOrSID" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Setting permissions [Permissions:Read, InheritanceFlags:ContainerInherit, ObjectInherit, PropagationFlags:None, AccessControlType:Allow, Method:Add] on path [C:\Windows\TEMP\PSAppDeployToolkit\psadttoastnotification\Notepad++_857_EN_01] for user [BUILTIN\Users].]LOG]!><time="06:07:06.4180" date="09-11-2023" component="Set-ItemPermission" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the 'SeDelegateSessionUserImpersonatePrivilege' token.]LOG]!><time="06:07:07.0130" date="09-11-2023" component="Invoke-ProcessAsActiveUser" context="NT AUTHORITY\SYSTEM" type="3" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The Toast Notification AppId [PSADT.ToastNotification] availability test result was unsuccessful.]LOG]!><time="06:07:07.1360" date="09-11-2023" component="Test-ToastNotificationExtension" context="NT AUTHORITY\SYSTEM" type="2" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the 'SeDelegateSessionUserImpersonatePrivilege' token.]LOG]!><time="06:07:07.2180" date="09-11-2023" component="Invoke-ProcessAsActiveUser" context="NT AUTHORITY\SYSTEM" type="3" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Error Record:
-------------

Message        : Not running with correct privilege. You must run this script as system or have the 
                 'SeDelegateSessionUserImpersonatePrivilege' token.
InnerException : 

FullyQualifiedErrorId : Not running with correct privilege. You must run this script as system or have the 
                        'SeDelegateSessionUserImpersonatePrivilege' token.
ScriptStackTrace      : at Invoke-ProcessAsActiveUser<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794
                        a_9\AppDeployToolkit\PSADT.RunAsActiveUser\RunAsActiveUserExtension.ps1: line 530
                        at Remove-ToastNotificationResult<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa
                        2794a_9\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 6566
                        at <ScriptBlock>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppDeployToolkit\P
                        SADT.ToastNotification\ToastNotificationExtension.ps1: line 359
                        at Show-WelcomePrompt<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppD
                        eployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 2009
                        at Show-InstallationWelcome<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_
                        9\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 1256
                        at <ScriptBlock>, 
                        C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\Deploy-Application.ps1: line 114
                        at <ScriptBlock>, <No file>: line 1
                        at <ScriptBlock>, <No file>: line 1

PositionMessage : At C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppDeployToolkit\PSADT.RunAsActiveUser\
                  RunAsActiveUserExtension.ps1:530 char:6
                  + ...             throw "Not running with correct privilege. You must run t ...
                  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



]LOG]!><time="06:07:07.2400" date="09-11-2023" component="Deploy Application" context="NT AUTHORITY\SYSTEM" type="3" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Executing function [Show-DialogBox]. Text: Error Record:
-------------

Message        : Not running with correct privilege. You must run this script as system or have the 
                 'SeDelegateSessionUserImpersonatePrivilege' token.
InnerException : 

FullyQualifiedErrorId : Not running with correct privilege. You must run this script as system or have the 
                        'SeDelegateSessionUserImpersonatePrivilege' token.
ScriptStackTrace      : at Invoke-ProcessAsActiveUser<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794
                        a_9\AppDeployToolkit\PSADT.RunAsActiveUser\RunAsActiveUserExtension.ps1: line 530
                        at Remove-ToastNotificationResult<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa
                        2794a_9\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 6566
                        at <ScriptBlock>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppDeployToolkit\P
                        SADT.ToastNotification\ToastNotificationExtension.ps1: line 359
                        at Show-WelcomePrompt<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppD
                        eployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 2009
                        at Show-InstallationWelcome<Process>, C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_
                        9\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 1256
                        at <ScriptBlock>, 
                        C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\Deploy-Application.ps1: line 114
                        at <ScriptBlock>, <No file>: line 1
                        at <ScriptBlock>, <No file>: line 1

PositionMessage : At C:\Windows\IMECache\68ca196a-2bf9-4cdd-af84-8bf55aa2794a_9\AppDeployToolkit\PSADT.RunAsActiveUser\
                  RunAsActiveUserExtension.ps1:530 char:6
                  + ...             throw "Not running with correct privilege. You must run t ...
                  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



]LOG]!><time="06:07:07.2620" date="09-11-2023" component="Show-DialogBox" context="NT AUTHORITY\SYSTEM" type="2" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Converting the SID [S-1-5-32-545] to an NT Account name.]LOG]!><time="06:07:07.3030" date="09-11-2023" component="ConvertTo-NTAccountOrSID" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Setting permissions [Permissions:Read, InheritanceFlags:ContainerInherit, ObjectInherit, PropagationFlags:None, AccessControlType:Allow, Method:Add] on path [C:\Windows\TEMP\PSAppDeployToolkit\psadttoastnotification\Notepad++_857_EN_01] for user [BUILTIN\Users].]LOG]!><time="06:07:07.3180" date="09-11-2023" component="Set-ItemPermission" context="NT AUTHORITY\SYSTEM" type="1" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the 'SeDelegateSessionUserImpersonatePrivilege' token.]LOG]!><time="06:07:07.4580" date="09-11-2023" component="Invoke-ProcessAsActiveUser" context="NT AUTHORITY\SYSTEM" type="3" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The Toast Notification AppId [PSADT.ToastNotification] availability test result was unsuccessful.]LOG]!><time="06:07:07.4800" date="09-11-2023" component="Test-ToastNotificationExtension" context="NT AUTHORITY\SYSTEM" type="2" thread="5064" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Not running with correct privilege. You must run this script as system or have the 'SeDelegateSessionUserImpersonatePrivilege' token.]LOG]!><time="06:07:07.5360" date="09-11-2023" component="Invoke-ProcessAsActiveUser" context="NT AUTHORITY\SYSTEM" type="3" thread="5064" file="Deploy-Application.ps1">

I’ve uploaded my logs but was hidden to be reviewed. The deployment is from Intune not SCCM. I actually think it might be more related to the device being enrolled in Azure AD as it fails using psexec too while on a standard device with a local account it works perfectly.

I’ve seen this in the previous post. Apparently Intune creates the process without the ‘SeDelegateSessionUserImpersonatePrivilege’ token needed to impersonate the user and show the Toast Notification when deployed as System.

Intune is a blackbox don’t know if I could fix this without the proper testing environment.

You could try commenting 524-537 lines included and 579 in file /AppDeployToolkit/PSADT.RunAsActiveUser/RunAsActiveUserExtension.ps1

I will try this and let you know the result. I’m happy to provide you access to an Intune Tenant if you like :slight_smile: