Error with interactive installation (4.1.5) started by system user when logged-on user has no admin rights

I want to start an installation via task scheduler by the system user.
Starting "Show-ADTInstallationWelcome" isn't working because of an error (see below).
Silent installation is working fine. If the logged on user has admin rights the GUI is working just fine too. Only if the logged on user has only user rights the error occurs.
The error stays the same with version 4.1.3, 4.1.5 and the 4.1.6 version from last friday (PSADT.dll 26.Sep 00:39).
Any help is appreciated.

[2025-09-29T15:55:08.4761406+02:00] [Initialization] [Open-ADTSession] [Info] :: -------------------------------------------------------------------------------
[2025-09-29T15:55:08.5051430+02:00] [Initialization] [Open-ADTSession] [Info] :: [AlcatelIPDesktopSoftphone_13.12.30_01] install started.
[2025-09-29T15:55:08.5071431+02:00] [Initialization] [Open-ADTSession] [Info] :: [AlcatelIPDesktopSoftphone_13.12.30_01] script version is [1.0.0].
[2025-09-29T15:55:08.5091425+02:00] [Initialization] [Open-ADTSession] [Info] :: [AlcatelIPDesktopSoftphone_13.12.30_01] script author is [].
[2025-09-29T15:55:08.5261764+02:00] [Initialization] [Open-ADTSession] [Info] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.3].
[2025-09-29T15:55:08.5301736+02:00] [Initialization] [Open-ADTSession] [Info] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:'Install' -DeployMode:'Interactive'].
[2025-09-29T15:55:08.5331708+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module version is [4.1.5].
[2025-09-29T15:55:08.5351422+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module imported in [2,5196801] seconds.
[2025-09-29T15:55:08.5361732+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module initialized in [2,6712262] seconds.
[2025-09-29T15:55:08.5381673+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module path is ['C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit'].
[2025-09-29T15:55:08.5401421+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] config path is ['\\server\system\Install\AlcatelSoftphone13.12.30\Config'].
[2025-09-29T15:55:08.5411712+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] string path is ['\\server\system\Install\AlcatelSoftphone13.12.30\Strings'].
[2025-09-29T15:55:08.5431421+02:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] session mode is [Native].
[2025-09-29T15:55:08.5451416+02:00] [Initialization] [Open-ADTSession] [Info] :: Computer Name is [client.test.de].
[2025-09-29T15:55:08.5481462+02:00] [Initialization] [Open-ADTSession] [Info] :: Current User is [NT-AUTORITÄT\SYSTEM].
[2025-09-29T15:55:08.5521425+02:00] [Initialization] [Open-ADTSession] [Info] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.22631.5909].
[2025-09-29T15:55:08.5542432+02:00] [Initialization] [Open-ADTSession] [Info] :: OS Type is [WorkStation].
[2025-09-29T15:55:08.5562509+02:00] [Initialization] [Open-ADTSession] [Info] :: Hardware Platform is [Physical].
[2025-09-29T15:55:08.5572507+02:00] [Initialization] [Open-ADTSession] [Info] :: Current Culture is [de-DE], language is [DE] and UI language is [DE].
[2025-09-29T15:55:08.5592501+02:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Host is [ConsoleHost] with version [5.1.22621.5909].
[2025-09-29T15:55:08.5612497+02:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Version is [5.1.22621.5909 X64].
[2025-09-29T15:55:08.5632487+02:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Process Path is [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe].
[2025-09-29T15:55:08.5652495+02:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell CLR (.NET) version is [4.0.30319.42000].
[2025-09-29T15:55:08.5672493+02:00] [Initialization] [Open-ADTSession] [Info] :: The following users are logged on to the system: [dom\username].
[2025-09-29T15:55:08.5692493+02:00] [Initialization] [Open-ADTSession] [Info] :: Session information for all logged on users:

NTAccount             : dom\username
SID                   : ...
UserName              : username
DomainName            : dom
SessionId             : 6
SessionName           : Console
ConnectState          : WTSActive
IsCurrentSession      : False
IsConsoleSession      : True
IsActiveUserSession   : True
IsValidUserSession    : True
IsUserSession         : True
IsRdpSession          : False
IsLocalAdmin          : False
IsLocalAdminException : 
LogonTime             : 29.09.2025 15:51:16
IdleTime              : 00:00:00.1090000
DisconnectTime        : 
ClientName            : 
ClientProtocolType    : Console
ClientDirectory       : 
ClientBuildNumber     :
[2025-09-29T15:55:08.5712487+02:00] [Initialization] [Open-ADTSession] [Info] :: Current process is running under a system account [NT-AUTORITÄT\SYSTEM].
[2025-09-29T15:55:08.5735321+02:00] [Initialization] [Open-ADTSession] [Info] :: The following user is the console user [dom\username] (user with control of physical monitor, keyboard, and mouse).
[2025-09-29T15:55:08.5750151+02:00] [Initialization] [Open-ADTSession] [Info] :: The active logged on user who will receive UI elements is [dom\username].
[2025-09-29T15:55:08.5770219+02:00] [Initialization] [Open-ADTSession] [Info] :: The current execution context has a primary UI language of [de-DE].
[2025-09-29T15:55:08.5790215+02:00] [Initialization] [Open-ADTSession] [Info] :: The following locale was used to import UI messages from the strings.psd1 files: [de-DE].
[2025-09-29T15:55:08.5810211+02:00] [Initialization] [Open-ADTSession] [Info] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.
[2025-09-29T15:55:08.5860209+02:00] [Initialization] [Open-ADTSession] [Info] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.
[2025-09-29T15:55:08.5880215+02:00] [Initialization] [Open-ADTSession] [Info] :: Session 0 detected but deployment mode was explicitly set to [Interactive].
[2025-09-29T15:55:08.5910222+02:00] [Initialization] [Open-ADTSession] [Info] :: The processes ['ipdesktopsoftphone', 'ipdspagent'] were specified as requiring closure but deployment mode was explicitly set to [Interactive].
[2025-09-29T15:55:08.5930219+02:00] [Initialization] [Open-ADTSession] [Info] :: Installation is running in [Interactive] mode.
[2025-09-29T15:55:08.5950219+02:00] [Initialization] [Open-ADTSession] [Info] :: Deployment type is [Install].
[2025-09-29T15:55:08.9200783+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: Evaluating disk space requirements.
[2025-09-29T15:55:08.9769425+02:00] [Pre-Install] [Get-ADTFreeDiskSpace] [Info] :: Retrieving free disk space for drive [C:\].
[2025-09-29T15:55:08.9829732+02:00] [Pre-Install] [Get-ADTFreeDiskSpace] [Info] :: Free disk space for drive [C:\]: [351124 MB].
[2025-09-29T15:55:08.9902511+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: Successfully passed minimum disk space requirement check.
[2025-09-29T15:55:08.9982543+02:00] [Pre-Install] [Get-ADTDeferHistory] [Info] :: Getting deferral history...
[2025-09-29T15:55:09.0082513+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: Defer history shows [1] deferrals remaining.
[2025-09-29T15:55:09.0494518+02:00] [Pre-Install] [Get-ADTRunningProcesses] [Info] :: Checking for running processes: ['ipdesktopsoftphone', 'ipdspagent']
[2025-09-29T15:55:09.0637994+02:00] [Pre-Install] [Get-ADTRunningProcesses] [Info] :: Specified processes are not running.
[2025-09-29T15:55:09.2551754+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Error] :: Ausnahme beim Aufrufen von "Remediate" mit 2 Argument(en):  "Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren."
Error Record:
-------------

Message               : Ausnahme beim Aufrufen von "Remediate" mit 2 Argument(en):  "Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren."
InnerException        : System.UnauthorizedAccessException: Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren.
                           bei System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
                           bei PSADT.Module.AssemblyPermissions.Remediate(RunAsActiveUser runAsActiveUser, IReadOnlyList`1 extraPaths, Boolean useLinkedAdminToken, Boolean useHighestAvailableToken) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\Module\AssemblyPermissions.cs:Zeile 48.
                           bei CallSite.Target(Closure , CallSite , Type , Object , FileInfo[] )
                        
FullyQualifiedErrorId : UnauthorizedAccessException,Show-ADTInstallationWelcome
ScriptStackTrace      : bei Private:Set-ADTClientServerProcessPermissions, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 2150
                        bei Private:Invoke-ADTClientServerOperation, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 1266
                        bei Show-ADTWelcomePrompt, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19535
                        bei Show-ADTInstallationWelcome<Process>, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19847
                        bei Install-ADTDeployment, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 148
                        bei <ScriptBlock>, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 378
                        
PositionMessage       : In \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1:148 Zeichen:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2025-09-29T15:55:09.3000831+02:00] [Pre-Install] [Invoke-AppDeployToolkit.ps1] [Error] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------

Message               : Ausnahme beim Aufrufen von "Remediate" mit 2 Argument(en):  "Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren."
InnerException        : System.UnauthorizedAccessException: Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren.
                           bei System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
                           bei PSADT.Module.AssemblyPermissions.Remediate(RunAsActiveUser runAsActiveUser, IReadOnlyList`1 extraPaths, Boolean useLinkedAdminToken, Boolean useHighestAvailableToken) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\Module\AssemblyPermissions.cs:Zeile 48.
                           bei CallSite.Target(Closure , CallSite , Type , Object , FileInfo[] )
                        
FullyQualifiedErrorId : UnauthorizedAccessException,Show-ADTInstallationWelcome
ScriptStackTrace      : bei Private:Set-ADTClientServerProcessPermissions, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 2150
                        bei Private:Invoke-ADTClientServerOperation, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 1266
                        bei Show-ADTWelcomePrompt, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19535
                        bei Show-ADTInstallationWelcome<Process>, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19847
                        bei Install-ADTDeployment, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 148
                        bei <ScriptBlock>, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 378
                        
PositionMessage       : In \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1:148 Zeichen:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2025-09-29T15:55:09.3270836+02:00] [Finalization] [Close-ADTSession] [Error] :: [AlcatelIPDesktopSoftphone_13.12.30_01] install completed in [0,8609443] seconds with exit code [60001].
[2025-09-29T15:55:09.3300529+02:00] [Finalization] [Close-ADTSession] [Info] :: -------------------------------------------------------------------------------

You need to ensure that users can at the very least, read the contents of the lib folder in the PSAppDeployToolkit module directory, as well as the contents of the Assets folder. We can't amend these permissions on remote shares without an error.

I don't think that is the solution.
We copied the PSAppDeployToolkit folder to "C:\Program Files\WindowsPowerShell\Modules" and the user can for example run Get-ADTEnvironment.

PS C:\Windows\system32> Initialize-ADTModule
PS C:\Windows\system32>
PS C:\Windows\system32> Get-ADTEnvironment

Key                                       Value
---                                       -----
appDeployToolkitName                      PSAppDeployToolkit
appDeployToolkitPath                      C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit
appDeployMainScriptVersion                4.1.5
culture                                   de-DE

You're right, I didn't read the entire stack trace properly. I'll take a look and test this exact scenario out later on today.

Actually, can you please show me the security permissions on a file within the lib folder of the module as it currently resides within C:\Program Files\WindowsPowerShell\Modules? Something like the below:

It was "Read & Execute". Just to be sure I gave the user "Full control" rights and started an exe from the lib folder. The user was able to start the exe (screenshot).

The error stayed the same anyway.

I added an icacls screenshot after I changed the rights to "Full" for the whole PSADT folder.
icacls

I haven't looked at this fully as it's been a busy week, but I just had a thought. I imagine your assets (logos, etc) are still on the network share? Can you please make sure the user can read those and try again?

I used the cache option, so the data should be local. But I'll check it later because it's past midnight here by now. :wink:
I am in no hurry and thank you for your support!

You can test this build out, it'll have a more detailed throw that'll give us more insight: - Add a more descriptive throw in `AssemblyPermissions.Remediate()` t… · PSAppDeployToolkit/PSAppDeployToolkit@45a7f9f · GitHub.

You're not the first person to report confusion over this, so having the exception throw with the file it had an issue with will be beneficial.

You were right. The problem was the not readable AppIcon.png on the network share.
I made a mistake putting the Copy-ADTContentToCache behind Show-ADTInstallationWelcome.
I changed this now but Show-ADTInstallationWelcome still wants to use the png on the network share. Shouldn't it now use the local one?
I added two rows in the script following Copy-ADTContentToCache to show the $adtSession.DirFiles and $adtSession.DirSupportFiles variables. The user has read&execute permissions on the local files.

[2025-10-01T09:42:00.0138136+02:00] [Initialization] [Open-ADTSession] [Info] :: Deployment type is [Install].
[2025-10-01T09:42:00.1067264+02:00] [Pre-Install] [Remove-ADTFile] [Info] :: Deleting file(s) recursively in path [C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01]...
[2025-10-01T09:42:00.1699848+02:00] [Pre-Install] [Copy-ADTContentToCache] [Info] :: Creating cache folder [C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01].
[2025-10-01T09:42:00.1789848+02:00] [Pre-Install] [Copy-ADTContentToCache] [Info] :: Copying toolkit content to cache folder [C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01].
[2025-10-01T09:42:00.2797511+02:00] [Pre-Install] [Copy-ADTFile] [Info] :: Copying file(s) recursively in path [\\server\system\Install\AlcatelSoftphone13.12.30\*] to destination [C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01].
[2025-10-01T09:42:00.2857506+02:00] [Pre-Install] [Copy-ADTFile] [Info] :: Executing Robocopy command: C:\Windows\system32\Robocopy.exe "\\server\system\Install\AlcatelSoftphone13.12.30" "C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01" "*" /NJH /NJS /NS /NC /NP /NDL /FP /IA:RASHCNETO /IS /IT /XX /MT:4 /R:1 /W:1 /E
[2025-10-01T09:42:00.3470967+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: Preparing to execute process [C:\Windows\system32\Robocopy.exe]...
[2025-10-01T09:42:00.3630627+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: Working Directory is [C:\Windows\system32].
[2025-10-01T09:42:00.3704722+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: Executing ["C:\Windows\system32\Robocopy.exe" "\\server\system\Install\AlcatelSoftphone13.12.30" "C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01" "*" /NJH /NJS /NS /NC /NP /NDL /FP /IA:RASHCNETO /IS /IT /XX /MT:4 /R:1 /W:1 /E ]...
[2025-10-01T09:42:00.3994672+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: Executed ["C:\Windows\system32\Robocopy.exe" "\\server\system\Install\AlcatelSoftphone13.12.30" "C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01" "*" /NJH /NJS /NS /NC /NP /NDL /FP /IA:RASHCNETO /IS /IT /XX /MT:4 /R:1 /W:1 /E], awaiting completion...
[2025-10-01T09:42:01.8719949+02:00] [Pre-Install] [Start-ADTProcess] [Success] :: Execution completed successfully with exit code [1].
[2025-10-01T09:42:01.8838884+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: StdOut Output from Execution: 

	  			\\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.exe
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Config\config.psd1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png
	  			\\server\system\Install\AlcatelSoftphone13.12.30\SupportFiles\MyPhoneIPDesktop.ini
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Files\IPDesktopSoftphone_13.12.30.msi
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Strings\strings.psd1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Strings\de\strings.psd1
[2025-10-01T09:42:01.8888827+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: StdErr Output from Execution: N/A
[2025-10-01T09:42:01.8928828+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: Interleaved Output from Execution: 

	  			\\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.exe
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Config\config.psd1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png
	  			\\server\system\Install\AlcatelSoftphone13.12.30\SupportFiles\MyPhoneIPDesktop.ini
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Files\IPDesktopSoftphone_13.12.30.msi
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Strings\strings.psd1
	  			\\server\system\Install\AlcatelSoftphone13.12.30\Strings\de\strings.psd1
[2025-10-01T09:42:01.8968824+02:00] [Pre-Install] [Start-ADTProcess] [Info] :: PassThru parameter specified, returning execution results object.
[2025-10-01T09:42:01.9157895+02:00] [Pre-Install] [Copy-ADTFile] [Info] :: Robocopy output:
\\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.exe \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1 \\server\system\Install\AlcatelSoftphone13.12.30\Config\config.psd1 \\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png \\server\system\Install\AlcatelSoftphone13.12.30\SupportFiles\MyPhoneIPDesktop.ini \\server\system\Install\AlcatelSoftphone13.12.30\Files\IPDesktopSoftphone_13.12.30.msi \\server\system\Install\AlcatelSoftphone13.12.30\Strings\strings.psd1 \\server\system\Install\AlcatelSoftphone13.12.30\Strings\de\strings.psd1
[2025-10-01T09:42:01.9247561+02:00] [Pre-Install] [Copy-ADTFile] [Info] :: Robocopy completed. All files were copied successfully.
[2025-10-01T09:42:01.9357929+02:00] [Pre-Install] [Install-ADTDeployment] [Info] :: adtSession.DirFiles: C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01\Files
[2025-10-01T09:42:01.9401406+02:00] [Pre-Install] [Install-ADTDeployment] [Info] :: adtSession.DirSupportFiles: C:\Vobawf\Install\AlcatelIPDesktopSoftphone_13.12.30_01\SupportFiles
[2025-10-01T09:42:02.1541947+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: Evaluating disk space requirements.
[2025-10-01T09:42:02.1871970+02:00] [Pre-Install] [Get-ADTFreeDiskSpace] [Info] :: Retrieving free disk space for drive [C:\].
[2025-10-01T09:42:02.1931989+02:00] [Pre-Install] [Get-ADTFreeDiskSpace] [Info] :: Free disk space for drive [C:\]: [348680 MB].
[2025-10-01T09:42:02.2009860+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: Successfully passed minimum disk space requirement check.
[2025-10-01T09:42:02.2150170+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Info] :: The user has [3] deferrals remaining.
[2025-10-01T09:42:02.2622884+02:00] [Pre-Install] [Get-ADTRunningProcesses] [Info] :: Checking for running processes: ['ipdesktopsoftphone', 'ipdspagent']
[2025-10-01T09:42:02.2764289+02:00] [Pre-Install] [Get-ADTRunningProcesses] [Info] :: Specified processes are not running.
[2025-10-01T09:42:02.4477786+02:00] [Pre-Install] [Show-ADTInstallationWelcome] [Error] :: Ausnahme beim Aufrufen von "Remediate" mit 2 Argument(en):  "Failed to grant [dom\user] the permissions [ReadAndExecute] to file [\\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png]. This can occur when the caller can't modify permissions, such as when the file is located on a network share."
Error Record:
-------------

Message               : Ausnahme beim Aufrufen von "Remediate" mit 2 Argument(en):  "Failed to grant [dom\user] the permissions [ReadAndExecute] to file [\\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png]. This can occur when the caller can't modify permissions, such as when the file is located on a network share."
InnerException        : System.InvalidOperationException: Failed to grant [dom\user] the permissions [ReadAndExecute] to file [\\server\system\Install\AlcatelSoftphone13.12.30\Assets\AppIcon.png]. This can occur when the caller can't modify permissions, such as when the file is located on a network share. ---> System.UnauthorizedAccessException: Es wurde versucht, einen nicht autorisierten Vorgang auszufĂĽhren.
                           bei System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections, Object exceptionContext)
                           bei System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
                           bei PSADT.Module.AssemblyPermissions.Remediate(RunAsActiveUser runAsActiveUser, IReadOnlyList`1 extraPaths, Boolean useLinkedAdminToken, Boolean useHighestAvailableToken) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\Module\AssemblyPermissions.cs:Zeile 66.
                           --- Ende der internen AusnahmestapelĂĽberwachung ---
                           bei PSADT.Module.AssemblyPermissions.Remediate(RunAsActiveUser runAsActiveUser, IReadOnlyList`1 extraPaths, Boolean useLinkedAdminToken, Boolean useHighestAvailableToken) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\Module\AssemblyPermissions.cs:Zeile 70.
                           bei CallSite.Target(Closure , CallSite , Type , Object , FileInfo[] )
                        
FullyQualifiedErrorId : InvalidOperationException,Show-ADTInstallationWelcome
ScriptStackTrace      : bei Private:Set-ADTClientServerProcessPermissions, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 2150
                        bei Private:Invoke-ADTClientServerOperation, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 1266
                        bei Show-ADTWelcomePrompt, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19536
                        bei Show-ADTInstallationWelcome<Process>, C:\Program Files\WindowsPowerShell\Modules\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 19848
                        bei Install-ADTDeployment, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 155
                        bei <ScriptBlock>, \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1: Zeile 385
                        
PositionMessage       : In \\server\system\Install\AlcatelSoftphone13.12.30\Invoke-AppDeployToolkit.ps1:155 Zeichen:5
                        +     Show-ADTInstallationWelcome @saiwParams
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Copy-ADTContentToCache was never designed with this in mind, and there's commentary here about potentially reworking the scope so it truly only works on the Files/SupportFiles directories. The assets don't have to live next to your deployment script, they could theoretically be anywhere as fully qualified paths are allowed, so how would (should?) we know to cache them?

I got your point. I wasn't aware that I can change the path to the assets in the config file. I did that and now everything works perfect.
Thank you for your great tool and support!