PSADT v4.1.5 | Show-ADTInstallationWelcome | Exception calling "Dispose" with "0" argument(s): "Pipe is broken."

When running ANY version of PSADT 4.1.x when passing a process to close to function Show-ADTInstallationWelcome, we are seeing an unhandled exception when running from MECM as SYSTEM (Installation Behavior = Install for System):

[Pre-Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:

Message               : Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.CheckWriteOperations()
                           at System.IO.Pipes.PipeStream.Flush()
                           at PSADT.ClientServer.ServerInstance.Dispose(Boolean disposing) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 614
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2n\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1305
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2n\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19478
                        at Show-ADTInstallationWelcome, C:\WINDOWS\ccmcache\2n\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19790
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2n\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2n\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, : line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2n\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This error does not occur if running from MECM in USER context or running the same script outside of MECM, or if the process to close is not running.

Happy to provide logs (just do not see an attach button).

Yes please, a full log from start to finish would be amazing so we can see what's going on.

<![LOG[-------------------------------------------------------------------------------]LOG]!><time="19:05:30.796-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_1.4.6_EN_01] install started.]LOG]!><time="19:05:30.837-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_1.4.6_EN_01] script version is [1.0.0].]LOG]!><time="19:05:30.841-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_1.4.6_EN_01] script date is [2025-09-30].]LOG]!><time="19:05:30.849-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_1.4.6_EN_01] script author is [DWT].]LOG]!><time="19:05:30.853-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.5].]LOG]!><time="19:05:30.856-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:'Install'].]LOG]!><time="19:05:30.863-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module version is [4.1.5].]LOG]!><time="19:05:30.867-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module imported in [8.3957662] seconds.]LOG]!><time="19:05:30.871-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module initialized in [1.9580721] seconds.]LOG]!><time="19:05:30.874-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module path is ['C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit'].]LOG]!><time="19:05:30.890-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] config path is ['C:\WINDOWS\ccmcache\2p\Config'].]LOG]!><time="19:05:30.896-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] string path is ['C:\WINDOWS\ccmcache\2p\Strings'].]LOG]!><time="19:05:30.900-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] session mode is [Native].]LOG]!><time="19:05:30.904-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Computer Name is [ATLVM-THURJ1.DWT.com].]LOG]!><time="19:05:30.912-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM].]LOG]!><time="19:05:30.915-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.26100.4946].]LOG]!><time="19:05:30.919-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Type is [WorkStation].]LOG]!><time="19:05:30.923-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMware].]LOG]!><time="19:05:30.928-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN].]LOG]!><time="19:05:30.931-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.26100.4768].]LOG]!><time="19:05:30.935-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.26100.4768 X64].]LOG]!><time="19:05:30.940-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Process Path is [C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe].]LOG]!><time="19:05:30.944-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000].]LOG]!><time="19:05:30.947-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following users are logged on to the system: [DWT-DOMAIN\thurj].]LOG]!><time="19:05:30.951-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session information for all logged on users:
 
NTAccount             : DWT-DOMAIN\thurj
SID                   : S-1-5-21-2041924414-608314587-1170935872-43102
UserName              : thurj
DomainName            : DWT-DOMAIN
SessionId             : 3
SessionName           : RDP-Tcp#0
ConnectState          : WTSActive
IsCurrentSession      : True
IsConsoleSession      : False
IsActiveUserSession   : True
IsValidUserSession    : True
IsUserSession         : True
IsRdpSession          : True
IsLocalAdmin          : False
IsLocalAdminException : 
LogonTime             : 9/5/2025 5:40:05 PM
IdleTime              : 00:00:01.6172756
DisconnectTime        : 
ClientName            : PF5GNRCY
ClientProtocolType    : RDP
ClientDirectory       : C:\WINDOWS\System32\mstscax.dll
ClientBuildNumber     : 26100
]LOG]!><time="19:05:30.956-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current process is running with user account [NT AUTHORITY\SYSTEM] under logged on user session for [DWT-DOMAIN\thurj].]LOG]!><time="19:05:30.960-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: There is no console user logged on (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="19:05:30.964-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The active logged on user who will receive UI elements is [DWT-DOMAIN\thurj].]LOG]!><time="19:05:30.967-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The current execution context has a primary UI language of [en-US].]LOG]!><time="19:05:30.973-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following locale was used to import UI messages from the strings.psd1 files: [en-US].]LOG]!><time="19:05:30.976-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="19:05:30.979-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.]LOG]!><time="19:05:30.990-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session 0 detected, user(s) logged on to interact if required.]LOG]!><time="19:05:30.994-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The processes ['WINWORD'] were found to be running and will require closure.]LOG]!><time="19:05:31.075-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="19:05:31.081-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Deployment type is [Install].]LOG]!><time="19:05:31.085-300" date="9-30-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Module [PSAppDeployToolkit.Extensions] imported successfully.]LOG]!><time="19:05:31.217-300" date="9-30-2025" component="PSAppDeployToolkit.Extensions.psm1" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit.Extensions\PSAppDeployToolkit.Extensions.psm1">
<![LOG[[Pre-Install] :: *** Processes to Close [ProcessDefinition { Name = winword, Description = , Filter =  }]]LOG]!><time="19:05:31.247-300" date="9-30-2025" component="Install-ADTDeployment" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1">
<![LOG[[Pre-Install] :: Evaluating disk space requirements.]LOG]!><time="19:05:31.416-300" date="9-30-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Retrieving free disk space for drive [C:\].]LOG]!><time="19:05:31.494-300" date="9-30-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Free disk space for drive [C:\]: [71186 MB].]LOG]!><time="19:05:31.511-300" date="9-30-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Successfully passed minimum disk space requirement check.]LOG]!><time="19:05:31.524-300" date="9-30-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The user has [3] deferrals remaining.]LOG]!><time="19:05:31.545-300" date="9-30-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Checking for running processes: ['winword']]LOG]!><time="19:05:31.611-300" date="9-30-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The following processes are running: ['WINWORD'].]LOG]!><time="19:05:31.640-300" date="9-30-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Instantiating user client/server process.]LOG]!><time="19:05:31.775-300" date="9-30-2025" component="Invoke-ADTClientServerOperation" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
Error Record:
-------------
 
Message               : Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.CheckWriteOperations()
                           at System.IO.Pipes.PipeStream.Flush()
                           at PSADT.ClientServer.ServerInstance.Dispose(Boolean disposing) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 538
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1319
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19535
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19847
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1: line 140
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1: line 344
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1:140 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="19:05:32.497-300" date="9-30-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="3" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
 
Message               : Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.CheckWriteOperations()
                           at System.IO.Pipes.PipeStream.Flush()
                           at PSADT.ClientServer.ServerInstance.Dispose(Boolean disposing) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 538
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1319
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19535
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19847
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1: line 140
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1: line 344
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1:140 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="19:05:32.559-300" date="9-30-2025" component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="17072" file="C:\WINDOWS\ccmcache\2p\Invoke-AppDeployToolkit.ps1">
<![LOG[[Finalization] :: [DWT_Test_1.4.6_EN_01] install completed in [1.8268919] seconds with exit code [60001].]LOG]!><time="19:05:32.616-300" date="9-30-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="3" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[-------------------------------------------------------------------------------]LOG]!><time="19:05:32.620-300" date="9-30-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="17072" file="C:\WINDOWS\ccmcache\2p\PSAppDeployToolkit\PSAppDeployToolkit.psm1">

Are you using some pre-release version of the module? None of the stack trace information is lining up with the code.

Can you please download this build in any case? - Remove some more double spacing found in C# document comments. · PSAppDeployToolkit/PSAppDeployToolkit@ce7b6bd · GitHub. If you get the same error, at least the code will line up with the main repository. It's also something we've potentially fixed, so confirmation on that would be good also if that's the case.

You'll only need to replace the PSAppDeployToolkit folder with one from the ZIP files, no changes to the script, etc are necessary.

Yes, you are correct. I uploaded the wrong log file. I was indeed trying out one of your early releases to see if the issue was fixed.
I will send you a log file with the release you link to above.

<![LOG[-------------------------------------------------------------------------------]LOG]!><time="19:44:29.469-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] install started.]LOG]!><time="19:44:29.540-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script version is [1.0.0].]LOG]!><time="19:44:29.545-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script date is [2025-09-07].]LOG]!><time="19:44:29.549-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script author is [DWT].]LOG]!><time="19:44:29.552-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.5].]LOG]!><time="19:44:29.558-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:'Install'].]LOG]!><time="19:44:29.566-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module version is [4.1.5].]LOG]!><time="19:44:29.570-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module imported in [4.6189481] seconds.]LOG]!><time="19:44:29.574-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module initialized in [3.9167331] seconds.]LOG]!><time="19:44:29.581-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module path is ['C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit'].]LOG]!><time="19:44:29.597-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] config path is ['C:\WINDOWS\ccmcache\2r\Config'].]LOG]!><time="19:44:29.605-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] string path is ['C:\WINDOWS\ccmcache\2r\Strings'].]LOG]!><time="19:44:29.611-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] session mode is [Native].]LOG]!><time="19:44:29.613-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Computer Name is [ATLVM-THURJ1.DWT.com].]LOG]!><time="19:44:29.615-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM].]LOG]!><time="19:44:29.617-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.26100.4946].]LOG]!><time="19:44:29.619-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Type is [WorkStation].]LOG]!><time="19:44:29.622-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMware].]LOG]!><time="19:44:29.625-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN].]LOG]!><time="19:44:29.627-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.26100.4768].]LOG]!><time="19:44:29.629-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.26100.4768 X64].]LOG]!><time="19:44:29.631-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Process Path is [C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe].]LOG]!><time="19:44:29.633-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000].]LOG]!><time="19:44:29.636-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following users are logged on to the system: [DWT-DOMAIN\thurj].]LOG]!><time="19:44:29.638-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session information for all logged on users:
 
NTAccount             : DWT-DOMAIN\thurj
SID                   : S-1-5-21-2041924414-608314587-1170935872-43102
UserName              : thurj
DomainName            : DWT-DOMAIN
SessionId             : 3
SessionName           : RDP-Tcp#0
ConnectState          : WTSActive
IsCurrentSession      : True
IsConsoleSession      : False
IsActiveUserSession   : True
IsValidUserSession    : True
IsUserSession         : True
IsRdpSession          : True
IsLocalAdmin          : False
IsLocalAdminException : 
LogonTime             : 9/5/2025 5:40:05 PM
IdleTime              : 00:00:30.2883759
DisconnectTime        : 
ClientName            : PF5GNRCY
ClientProtocolType    : RDP
ClientDirectory       : C:\WINDOWS\System32\mstscax.dll
ClientBuildNumber     : 26100
]LOG]!><time="19:44:29.642-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current process is running with user account [NT AUTHORITY\SYSTEM] under logged on user session for [DWT-DOMAIN\thurj].]LOG]!><time="19:44:29.646-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: There is no console user logged on (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="19:44:29.648-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The active logged on user who will receive UI elements is [DWT-DOMAIN\thurj].]LOG]!><time="19:44:29.651-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The current execution context has a primary UI language of [en-US].]LOG]!><time="19:44:29.653-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following locale was used to import UI messages from the strings.psd1 files: [en-US].]LOG]!><time="19:44:29.655-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="19:44:29.657-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.]LOG]!><time="19:44:29.666-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session 0 detected, user(s) logged on to interact if required.]LOG]!><time="19:44:29.669-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The processes ['WINWORD'] were found to be running and will require closure.]LOG]!><time="19:44:29.709-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="19:44:29.740-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Deployment type is [Install].]LOG]!><time="19:44:29.748-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function Start]LOG]!><time="19:44:29.784-300" date="10-02-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function invoked with bound parameter(s):
 
Parameter       Value                                     Type        
---------       -----                                     ----        
[-SessionState] System.Management.Automation.SessionState SessionState
]LOG]!><time="19:44:29.799-300" date="10-02-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function End]LOG]!><time="19:44:29.841-300" date="10-02-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Execution] :: Function End]LOG]!><time="19:44:29.850-300" date="10-02-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Module [PSAppDeployToolkit.Extensions] imported successfully.]LOG]!><time="19:44:29.936-300" date="10-02-2025" component="PSAppDeployToolkit.Extensions.psm1" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit.Extensions\PSAppDeployToolkit.Extensions.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="19:44:30.031-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter         Value                                                           Type               
---------         -----                                                           ----               
[-PersistPrompt]  True                                                            SwitchParameter    
[-DeferTimes]     3                                                               UInt32             
[-AllowDefer]     True                                                            SwitchParameter    
[-CloseProcesses] ProcessDefinition { Name = winword, Description = , Filter =  } ProcessDefinition[]
[-CheckDiskSpace] True                                                            SwitchParameter
]LOG]!><time="19:44:30.043-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Evaluating disk space requirements.]LOG]!><time="19:44:30.361-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="19:44:30.434-300" date="10-02-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked without any bound parameters.]LOG]!><time="19:44:30.443-300" date="10-02-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Retrieving free disk space for drive [C:\].]LOG]!><time="19:44:30.449-300" date="10-02-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Free disk space for drive [C:\]: [68834 MB].]LOG]!><time="19:44:30.456-300" date="10-02-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="19:44:30.462-300" date="10-02-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Successfully passed minimum disk space requirement check.]LOG]!><time="19:44:30.466-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The user has [3] deferrals remaining.]LOG]!><time="19:44:30.489-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Checking for running processes: ['winword']]LOG]!><time="19:44:30.558-300" date="10-02-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The following processes are running: ['WINWORD'].]LOG]!><time="19:44:30.586-300" date="10-02-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Instantiating user client/server process.]LOG]!><time="19:44:30.753-300" date="10-02-2025" component="Invoke-ADTClientServerOperation" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="19:44:31.796-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value                                                               Type       
---------      -----                                                               ----       
[-ErrorRecord] Exception calling "Dispose" with "0" argument(s): "Pipe is broken." ErrorRecord
]LOG]!><time="19:44:31.809-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="19:44:31.925-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
Error Record:
-------------
 
Message               : Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.CheckWriteOperations()
                           at System.IO.Pipes.PipeStream.Flush()
                           at PSADT.ClientServer.ServerInstance.Dispose(Boolean disposing) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 538
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1319
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19536
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19848
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="19:44:31.957-300" date="10-02-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="3" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="19:44:31.981-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value                                                               Type       
---------      -----                                                               ----       
[-ErrorRecord] Exception calling "Dispose" with "0" argument(s): "Pipe is broken." ErrorRecord
]LOG]!><time="19:44:32.000-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="19:44:32.088-300" date="10-02-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
 
Message               : Exception calling "Dispose" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.CheckWriteOperations()
                           at System.IO.Pipes.PipeStream.Flush()
                           at PSADT.ClientServer.ServerInstance.Dispose(Boolean disposing) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 538
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1319
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19536
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19848
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="19:44:32.102-300" date="10-02-2025" component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="3872" file="C:\WINDOWS\ccmcache\2r\Invoke-AppDeployToolkit.ps1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="19:44:32.154-300" date="10-02-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value            Type 
---------      -----            ---- 
[-ExitCode]    60001            Int32
[-ErrorAction] SilentlyContinue
]LOG]!><time="19:44:32.167-300" date="10-02-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Finalization] :: [DWT_Test_EN_01] install completed in [2.7526086] seconds with exit code [60001].]LOG]!><time="19:44:32.189-300" date="10-02-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="3" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[-------------------------------------------------------------------------------]LOG]!><time="19:44:32.193-300" date="10-02-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3872" file="C:\WINDOWS\ccmcache\2r\PSAppDeployToolkit\PSAppDeployToolkit.psm1">

Can you please try this pre-4.1.6 build? I believe it'll address the issue. - Don't leave our `BinaryReader`/`BinaryWriter` objects open. · PSAppDeployToolkit/PSAppDeployToolkit@6eb4388 · GitHub

First and foremost... Thank you for looking at this and troubleshooting. I really appreciate you and your team.

Unfortunately, that latest build you linked to did not solve the issue.
here is the log file of the latest run with the developer build:

<![LOG[-------------------------------------------------------------------------------]LOG]!><time="14:14:06.803-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] install started.]LOG]!><time="14:14:06.875-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script version is [1.0.0].]LOG]!><time="14:14:06.881-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script date is [2025-09-07].]LOG]!><time="14:14:06.889-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_EN_01] script author is [DWT].]LOG]!><time="14:14:06.896-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.5].]LOG]!><time="14:14:06.902-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:'Install'].]LOG]!><time="14:14:06.917-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module version is [4.1.5].]LOG]!><time="14:14:06.921-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module imported in [6.6014709] seconds.]LOG]!><time="14:14:06.924-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module initialized in [5.5085622] seconds.]LOG]!><time="14:14:06.926-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module path is ['C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit'].]LOG]!><time="14:14:06.929-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] config path is ['C:\WINDOWS\ccmcache\2t\Config'].]LOG]!><time="14:14:06.931-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] string path is ['C:\WINDOWS\ccmcache\2t\Strings'].]LOG]!><time="14:14:06.933-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] session mode is [Native].]LOG]!><time="14:14:06.936-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Computer Name is [ATLVM-THURJ1.DWT.com].]LOG]!><time="14:14:06.938-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM].]LOG]!><time="14:14:06.940-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.26100.4946].]LOG]!><time="14:14:06.944-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Type is [WorkStation].]LOG]!><time="14:14:06.947-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMware].]LOG]!><time="14:14:06.950-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN].]LOG]!><time="14:14:06.952-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.26100.4768].]LOG]!><time="14:14:06.955-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.26100.4768 X64].]LOG]!><time="14:14:06.959-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Process Path is [C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe].]LOG]!><time="14:14:06.963-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000].]LOG]!><time="14:14:06.965-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following users are logged on to the system: [DWT-DOMAIN\thurj].]LOG]!><time="14:14:06.968-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session information for all logged on users:
 
NTAccount             : DWT-DOMAIN\thurj
SID                   : S-1-5-21-2041924414-608314587-1170935872-43102
UserName              : thurj
DomainName            : DWT-DOMAIN
SessionId             : 3
SessionName           : RDP-Tcp#0
ConnectState          : WTSActive
IsCurrentSession      : True
IsConsoleSession      : False
IsActiveUserSession   : True
IsValidUserSession    : True
IsUserSession         : True
IsRdpSession          : True
IsLocalAdmin          : False
IsLocalAdminException : 
LogonTime             : 9/5/2025 5:40:05 PM
IdleTime              : 00:00:01.4143759
DisconnectTime        : 
ClientName            : PF5GNRCY
ClientProtocolType    : RDP
ClientDirectory       : C:\WINDOWS\System32\mstscax.dll
ClientBuildNumber     : 26100
]LOG]!><time="14:14:06.976-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current process is running with user account [NT AUTHORITY\SYSTEM] under logged on user session for [DWT-DOMAIN\thurj].]LOG]!><time="14:14:06.980-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: There is no console user logged on (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="14:14:06.983-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The active logged on user who will receive UI elements is [DWT-DOMAIN\thurj].]LOG]!><time="14:14:06.987-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The current execution context has a primary UI language of [en-US].]LOG]!><time="14:14:06.990-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following locale was used to import UI messages from the strings.psd1 files: [en-US].]LOG]!><time="14:14:06.993-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="14:14:06.997-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.]LOG]!><time="14:14:07.010-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session 0 detected, user(s) logged on to interact if required.]LOG]!><time="14:14:07.015-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The processes ['WINWORD'] were found to be running and will require closure.]LOG]!><time="14:14:07.109-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="14:14:07.114-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Deployment type is [Install].]LOG]!><time="14:14:07.120-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function Start]LOG]!><time="14:14:07.159-300" date="10-03-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function invoked with bound parameter(s):
 
Parameter       Value                                     Type        
---------       -----                                     ----        
[-SessionState] System.Management.Automation.SessionState SessionState
]LOG]!><time="14:14:07.173-300" date="10-03-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Function End]LOG]!><time="14:14:07.237-300" date="10-03-2025" component="Export-ADTEnvironmentTableToSessionState" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Execution] :: Function End]LOG]!><time="14:14:07.245-300" date="10-03-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Module [PSAppDeployToolkit.Extensions] imported successfully.]LOG]!><time="14:14:07.345-300" date="10-03-2025" component="PSAppDeployToolkit.Extensions.psm1" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit.Extensions\PSAppDeployToolkit.Extensions.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="14:14:07.464-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter         Value                                                           Type               
---------         -----                                                           ----               
[-PersistPrompt]  True                                                            SwitchParameter    
[-DeferTimes]     3                                                               UInt32             
[-AllowDefer]     True                                                            SwitchParameter    
[-CloseProcesses] ProcessDefinition { Name = winword, Description = , Filter =  } ProcessDefinition[]
[-CheckDiskSpace] True                                                            SwitchParameter
]LOG]!><time="14:14:07.479-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Evaluating disk space requirements.]LOG]!><time="14:14:07.674-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="14:14:07.765-300" date="10-03-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked without any bound parameters.]LOG]!><time="14:14:07.770-300" date="10-03-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Retrieving free disk space for drive [C:\].]LOG]!><time="14:14:07.779-300" date="10-03-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Free disk space for drive [C:\]: [68520 MB].]LOG]!><time="14:14:07.789-300" date="10-03-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="14:14:07.796-300" date="10-03-2025" component="Get-ADTFreeDiskSpace" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Successfully passed minimum disk space requirement check.]LOG]!><time="14:14:07.802-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The user has [3] deferrals remaining.]LOG]!><time="14:14:07.844-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Checking for running processes: ['winword']]LOG]!><time="14:14:07.917-300" date="10-03-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The following processes are running: ['WINWORD'].]LOG]!><time="14:14:07.953-300" date="10-03-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Instantiating user client/server process.]LOG]!><time="14:14:08.211-300" date="10-03-2025" component="Invoke-ADTClientServerOperation" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="14:14:08.901-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value                                                            Type       
---------      -----                                                            ----       
[-ErrorRecord] Exception calling "Open" with "0" argument(s): "Pipe is broken." ErrorRecord
]LOG]!><time="14:14:08.913-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="14:14:09.015-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Exception calling "Open" with "0" argument(s): "Pipe is broken."
Error Record:
-------------
 
Message               : Exception calling "Open" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
                           at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
                           at System.IO.BinaryWriter.Write(String value)
                           at PSADT.ClientServer.ServerInstance.Invoke[T](String command) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 590
                           at PSADT.ClientServer.ServerInstance.Open() in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 93
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1292
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19545
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19857
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="14:14:09.030-300" date="10-03-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="3" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="14:14:09.046-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value                                                            Type       
---------      -----                                                            ----       
[-ErrorRecord] Exception calling "Open" with "0" argument(s): "Pipe is broken." ErrorRecord
]LOG]!><time="14:14:09.053-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function End]LOG]!><time="14:14:09.133-300" date="10-03-2025" component="Resolve-ADTErrorRecord" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
 
Message               : Exception calling "Open" with "0" argument(s): "Pipe is broken."
InnerException        : System.IO.IOException: Pipe is broken.
                           at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
                           at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
                           at System.IO.BinaryWriter.Write(String value)
                           at PSADT.ClientServer.ServerInstance.Invoke[T](String command) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 590
                           at PSADT.ClientServer.ServerInstance.Open() in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT.ClientServer.Server\ServerInstance.cs:line 93
                           at CallSite.Target(Closure , CallSite , Object )
 
FullyQualifiedErrorId : IOException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1292
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19545
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19857
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="14:14:09.147-300" date="10-03-2025" component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="13872" file="C:\WINDOWS\ccmcache\2t\Invoke-AppDeployToolkit.ps1">
<![LOG[[Pre-Install] :: Function Start]LOG]!><time="14:14:09.172-300" date="10-03-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Function invoked with bound parameter(s):
 
Parameter      Value            Type 
---------      -----            ---- 
[-ExitCode]    60001            Int32
[-ErrorAction] SilentlyContinue
]LOG]!><time="14:14:09.181-300" date="10-03-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Finalization] :: [DWT_Test_EN_01] install completed in [2.4258789] seconds with exit code [60001].]LOG]!><time="14:14:09.208-300" date="10-03-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="3" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[-------------------------------------------------------------------------------]LOG]!><time="14:14:09.213-300" date="10-03-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="13872" file="C:\WINDOWS\ccmcache\2t\PSAppDeployToolkit\PSAppDeployToolkit.psm1">

This is a different exception, at least. Can you please check the Application event logs in Windows for any crashes from PSADT.ClientServer.Client.exe?

I'm sorry for the back and forward here. Whatever's going on here is a weird and isolated issue to do with your environment which is why I'm having to get you doing the testing.

Please try this build out: - This is PSAppDeployToolkit 4.1.6 · PSAppDeployToolkit/PSAppDeployToolkit@7586a14 · GitHub. Rather than assuming only reading of client responses can fail, it validates that sending the command to the client doesn't fail either, and will therefore give us a more descriptive error.

It's not going to fix the problem, but it should hopefully point us in the right direction as to what's going on here.

Here is the latest log file, after updating the build you linked to above.

<![LOG[-------------------------------------------------------------------------------]LOG]!><time="17:35:39.513-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_4.1.6_EN_01] install started.]LOG]!><time="17:35:39.624-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_4.1.6_EN_01] script version is [1.0.0].]LOG]!><time="17:35:39.646-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [DWT_Test_4.1.6_EN_01] script date is [2025-10-03].]LOG]!><time="17:35:39.654-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.6].]LOG]!><time="17:35:39.656-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:'Install'].]LOG]!><time="17:35:39.661-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module version is [4.1.6].]LOG]!><time="17:35:39.663-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module imported in [6.053921] seconds.]LOG]!><time="17:35:39.666-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module initialized in [5.0019975] seconds.]LOG]!><time="17:35:39.668-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] module path is ['C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit'].]LOG]!><time="17:35:39.670-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] config path is ['C:\WINDOWS\ccmcache\2y\Config'].]LOG]!><time="17:35:39.671-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] string path is ['C:\WINDOWS\ccmcache\2y\Strings'].]LOG]!><time="17:35:39.673-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: [PSAppDeployToolkit] session mode is [Native].]LOG]!><time="17:35:39.675-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Computer Name is [ATLVM-THURJ1.DWT.com].]LOG]!><time="17:35:39.676-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM].]LOG]!><time="17:35:39.678-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.26100.4946].]LOG]!><time="17:35:39.680-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: OS Type is [WorkStation].]LOG]!><time="17:35:39.682-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMware].]LOG]!><time="17:35:39.684-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN].]LOG]!><time="17:35:39.687-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.26100.4768].]LOG]!><time="17:35:39.689-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.26100.4768 X64].]LOG]!><time="17:35:39.691-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell Process Path is [C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe].]LOG]!><time="17:35:39.693-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000].]LOG]!><time="17:35:39.695-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following users are logged on to the system: [DWT-DOMAIN\thurj].]LOG]!><time="17:35:39.700-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session information for all logged on users:
 
NTAccount             : DWT-DOMAIN\thurj
SID                   : S-1-5-21-2041924414-608314587-1170935872-43102
UserName              : thurj
DomainName            : DWT-DOMAIN
SessionId             : 2
SessionName           : RDP-Tcp#0
ConnectState          : WTSActive
IsCurrentSession      : True
IsConsoleSession      : False
IsActiveUserSession   : True
IsValidUserSession    : True
IsUserSession         : True
IsRdpSession          : True
IsLocalAdmin          : False
IsLocalAdminException : 
LogonTime             : 10/6/2025 4:39:44 PM
IdleTime              : 00:00:00.0130907
DisconnectTime        : 
ClientName            : PF5GNRCY
ClientProtocolType    : RDP
ClientDirectory       : C:\WINDOWS\System32\mstscax.dll
ClientBuildNumber     : 26100
]LOG]!><time="17:35:39.702-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Current process is running with user account [NT AUTHORITY\SYSTEM] under logged on user session for [DWT-DOMAIN\thurj].]LOG]!><time="17:35:39.706-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: There is no console user logged on (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="17:35:39.708-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The active logged on user who will receive UI elements is [DWT-DOMAIN\thurj].]LOG]!><time="17:35:39.710-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The current execution context has a primary UI language of [en-US].]LOG]!><time="17:35:39.713-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The following locale was used to import UI messages from the strings.psd1 files: [en-US].]LOG]!><time="17:35:39.715-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="17:35:39.717-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.]LOG]!><time="17:35:39.726-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Session 0 detected, user(s) logged on to interact if required.]LOG]!><time="17:35:39.730-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: The processes ['WINWORD'] were found to be running and will require closure.]LOG]!><time="17:35:39.758-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="17:35:39.768-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Deployment type is [Install].]LOG]!><time="17:35:39.777-300" date="10-06-2025" component="Open-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Initialization] :: Module [PSAppDeployToolkit.Extensions] imported successfully.]LOG]!><time="17:35:39.885-300" date="10-06-2025" component="PSAppDeployToolkit.Extensions.psm1" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit.Extensions\PSAppDeployToolkit.Extensions.psm1">
<![LOG[[Pre-Install] :: The user has [3] deferrals remaining.]LOG]!><time="17:35:40.119-300" date="10-06-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Checking for running processes: ['winword']]LOG]!><time="17:35:40.191-300" date="10-06-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: The following processes are running: ['WINWORD'].]LOG]!><time="17:35:40.220-300" date="10-06-2025" component="Get-ADTRunningProcesses" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Instantiating user client/server process.]LOG]!><time="17:35:40.393-300" date="10-06-2025" component="Invoke-ADTClientServerOperation" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: Exception calling "GetClientProcessResult" with "1" argument(s): "Object reference not set to an instance of an object."
Error Record:
-------------
 
Message               : Exception calling "GetClientProcessResult" with "1" argument(s): "Object reference not set to an instance of an object."
InnerException        : System.NullReferenceException: Object reference not set to an instance of an object.
                           at CallSite.Target(Closure , CallSite , Object , Boolean )
 
FullyQualifiedErrorId : NullReferenceException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1297
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19545
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19857
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="17:35:40.883-300" date="10-06-2025" component="Show-ADTInstallationWelcome" context="NT AUTHORITY\SYSTEM" type="3" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Pre-Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
 
Message               : Exception calling "GetClientProcessResult" with "1" argument(s): "Object reference not set to an instance of an object."
InnerException        : System.NullReferenceException: Object reference not set to an instance of an object.
                           at CallSite.Target(Closure , CallSite , Object , Boolean )
 
FullyQualifiedErrorId : NullReferenceException,Show-ADTInstallationWelcome
ScriptStackTrace      : at Private:Invoke-ADTClientServerOperation, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 1297
                        at Show-ADTWelcomePrompt, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19545
                        at Show-ADTInstallationWelcome<Process>, C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19857
                        at Install-ADTDeployment, C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1: line 138
                        at <ScriptBlock>, C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1: line 342
                        at <ScriptBlock>, <No file>: line 1
 
PositionMessage       : At C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1:138 char:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="17:35:40.940-300" date="10-06-2025" component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="3472" file="C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1">
<![LOG[[Finalization] :: [DWT_Test_4.1.6_EN_01] install completed in [1.4864487] seconds with exit code [60001].]LOG]!><time="17:35:40.985-300" date="10-06-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="3" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[-------------------------------------------------------------------------------]LOG]!><time="17:35:40.990-300" date="10-06-2025" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="3472" file="C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1">

Although there are no events in the Windows Application log, here are the events in the Powershell log.

(Start from the bottom to see progression)


Level Date and Time Source Event ID Task Category
Information 10/6/2025 5:35:41 PM PowerShell 403 Engine Lifecycle "Engine state is changed from Available to Stopped.

Details:
NewEngineState=Stopped
PreviousEngineState=Available

SequenceNumber=44

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:32 PM PowerShell 800 Pipeline Execution Details "Pipeline execution details for command line: & $Script:CommandTable.'Add-Type' -LiteralPath $PSScriptRoot\lib\System.IO.FileSystem.AccessControl.dll
.

Context Information:
DetailSequence=1
DetailTotal=1

SequenceNumber=25

UserId=DWT-DOMAIN\SYSTEM
HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
ScriptName=C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1
CommandLine=                    & $Script:CommandTable.'Add-Type' -LiteralPath $PSScriptRoot\lib\System.IO.FileSystem.AccessControl.dll

Details:
CommandInvocation(Add-Type): ""Add-Type""
ParameterBinding(Add-Type): name=""LiteralPath""; value=""C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\lib\System.IO.FileSystem.AccessControl.dll""
"
Information 10/6/2025 5:35:32 PM PowerShell 800 Pipeline Execution Details "Pipeline execution details for command line: & $Script:CommandTable.'Add-Type' -LiteralPath $_
.

Context Information:
DetailSequence=1
DetailTotal=1

SequenceNumber=23

UserId=DWT-DOMAIN\SYSTEM
HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
ScriptName=C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1
CommandLine=                & $Script:CommandTable.'Add-Type' -LiteralPath $_

Details:
CommandInvocation(Add-Type): ""Add-Type""
ParameterBinding(Add-Type): name=""LiteralPath""; value=""C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\lib\PSADT.UserInterface.dll""
"
Information 10/6/2025 5:35:32 PM PowerShell 800 Pipeline Execution Details "Pipeline execution details for command line: & $Script:CommandTable.'Add-Type' -LiteralPath $_
.

Context Information:
DetailSequence=1
DetailTotal=1

SequenceNumber=21

UserId=DWT-DOMAIN\SYSTEM
HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
ScriptName=C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1
CommandLine=                & $Script:CommandTable.'Add-Type' -LiteralPath $_

Details:
CommandInvocation(Add-Type): ""Add-Type""
ParameterBinding(Add-Type): name=""LiteralPath""; value=""C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\lib\PSADT.dll""
"
Information 10/6/2025 5:35:32 PM PowerShell 800 Pipeline Execution Details "Pipeline execution details for command line: & $Script:CommandTable.'Add-Type' -LiteralPath $_
.

Context Information:
DetailSequence=1
DetailTotal=1

SequenceNumber=19

UserId=DWT-DOMAIN\SYSTEM
HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
ScriptName=C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1
CommandLine=                & $Script:CommandTable.'Add-Type' -LiteralPath $_

Details:
CommandInvocation(Add-Type): ""Add-Type""
ParameterBinding(Add-Type): name=""LiteralPath""; value=""C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\lib\PSADT.ClientServer.Server.dll""
"
Information 10/6/2025 5:35:31 PM PowerShell 800 Pipeline Execution Details "Pipeline execution details for command line: & $Script:CommandTable.'Add-Type' -AssemblyName @(
.

Context Information:
DetailSequence=1
DetailTotal=1

SequenceNumber=17

UserId=DWT-DOMAIN\SYSTEM
HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
ScriptName=C:\WINDOWS\ccmcache\2y\PSAppDeployToolkit\PSAppDeployToolkit.psm1
CommandLine=            & $Script:CommandTable.'Add-Type' -AssemblyName @(

Details:
CommandInvocation(Add-Type): ""Add-Type""
ParameterBinding(Add-Type): name=""AssemblyName""; value=""Microsoft.PowerShell.Commands.Management, System.ServiceProcess, System.Windows.Forms""
"
Information 10/6/2025 5:35:26 PM PowerShell 600 Provider Lifecycle "Provider ""Certificate"" is Started.

Details:
ProviderName=Certificate
NewProviderState=Started

SequenceNumber=15

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=1
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 400 Engine Lifecycle "Engine state is changed from None to Available.

Details:
NewEngineState=Available
PreviousEngineState=None

SequenceNumber=13

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=5.1.26100.4768
RunspaceId=90f69b0d-4927-4397-b97c-8ad3f9cab673
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""Variable"" is Started.

Details:
ProviderName=Variable
NewProviderState=Started

SequenceNumber=11

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""Function"" is Started.

Details:
ProviderName=Function
NewProviderState=Started

SequenceNumber=9

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""FileSystem"" is Started.

Details:
ProviderName=FileSystem
NewProviderState=Started

SequenceNumber=7

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""Environment"" is Started.

Details:
ProviderName=Environment
NewProviderState=Started

SequenceNumber=5

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""Alias"" is Started.

Details:
ProviderName=Alias
NewProviderState=Started

SequenceNumber=3

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

Information 10/6/2025 5:35:24 PM PowerShell 600 Provider Lifecycle "Provider ""Registry"" is Started.

Details:
ProviderName=Registry
NewProviderState=Started

SequenceNumber=1

HostName=ConsoleHost
HostVersion=5.1.26100.4768
HostId=4e08291e-ea8b-4de2-8ccc-adda4812d8ad
HostApplication=C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -Command try { & 'C:\WINDOWS\ccmcache\2y\Invoke-AppDeployToolkit.ps1' -DeploymentType Install } catch { throw }; exit $Global:LASTEXITCODE
EngineVersion=
RunspaceId=
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine="

This is truly bizarre as it's like the process isn't even starting at all. Do you have any Application Control like AppLocker/WDAC/Airlock/CyberArk?

We do indeed. We use Ivanti Application Control.
We do not use it to block anything, but we do use it to elevate certain processes (like application updaters), so users do not get prompted with UAC.

Can you please check its logs anyway to be sure? Short of a TeamViewer session with you, I'm stumped.

Here is the Application Control Event log:

Log Name: AppSense
Source: AppSense Application Manager Agent.
Date: 10/6/2025 5:35:40 PM
Event ID: 9018
Task Category: None
Level: Information
Keywords: Classic
User: DWT-DOMAIN\thurj
Computer: ATLVM-THURJ1.DWT.com
Description:
'DWT-DOMAIN\ThurJ' has had user privileges 'modified' for '%systemroot%\ccmcache\2y\psappdeploytoolkit\lib\psadt.clientserver.client.exe [Hash:e5d78cf284ce2ae2191622f6e442312a2066c037 Size:233560 bytes] [ProductVersion: 4.1.6.0] [FileVersion: 4.1.6.0] [Product Name: PSAppDeployToolkit Client/Server Client Executable] [Company Name: PSAppDeployToolkit Team] [Vendor: Patch My PC, LLC] [File Description: PSAppDeployToolkit Client/Server Client Executable] [Parent Process: "%systemroot%\system32\windowspowershell\v1.0\powershell.exe" -executionpolicy bypass -noninteractive -noprofile -nologo -command try { & '%systemroot%\ccmcache\2y\invoke-appdeploytoolkit.ps1' -deploymenttype install } catch { throw }; exit $global:lastexitcode]' with policy 'Elevate' on 'PF5GNRCY' in 'Session ID: 2'. Deciding Rule: 'Everyone'. Audit Only mode enabled.
Event Xml:



9018
0
4
0
0
0x80000000000000

13345


AppSense
ATLVM-THURJ1.DWT.com



DWT-DOMAIN\ThurJ
modified
%systemroot%\ccmcache\2y\psappdeploytoolkit\lib\psadt.clientserver.client.exe [Hash:e5d78cf284ce2ae2191622f6e442312a2066c037 Size:233560 bytes] [ProductVersion: 4.1.6.0] [FileVersion: 4.1.6.0] [Product Name: PSAppDeployToolkit Client/Server Client Executable] [Company Name: PSAppDeployToolkit Team] [Vendor: Patch My PC, LLC] [File Description: PSAppDeployToolkit Client/Server Client Executable] [Parent Process: "%systemroot%\system32\windowspowershell\v1.0\powershell.exe" -executionpolicy bypass -noninteractive -noprofile -nologo -command try { & '%systemroot%\ccmcache\2y\invoke-appdeploytoolkit.ps1' -deploymenttype install } catch { throw }; exit $global:lastexitcode]
Elevate
PF5GNRCY
Session ID: 2
Everyone
Audit Only mode enabled.

This log looks normal, as we auto-elevate everything running from C:\Windows\ccmcache (thus anything running from MECM Software Center) to ensure it has the rights to install properly (as we are all non-admins).

If you run the solution via psexec or an on-demand scheduled task as SYSTEM, does the issue still occur? If so, I'd like for you to install Visual Studio 2022 and I can talk you through debugging the C# code, or we could arrange a TeamViewer session together. I'm a developer for the project and not a random forum member.

Thank you!

I will try PSEXEC and get back to you tomorrow (as my day is wrapping up).