Hello, im trying to deploy an App on the Clients that require User rights. I’m running this command :
Execute-ProcessAsUser -Path “$dirfiles\VSCodeUserSetup.exe” -Parameters “/VERYSILENT /NORESTART” -RunLevel ‘LeastPrivilege’ -Wait $true
And then I get this :
[05-06-2021 10:01:47.926] [Installation] [Execute-ProcessAsUser] :: Creating [C:\Users\netw10314\AppData\Local\Temp\PSAppDeployToolkit\ExecuteAsUser].
[05-06-2021 10:01:48.023] [Installation] [Set-ItemPermission] :: Setting permissions [Permissions:Read, InheritanceFlags:None, PropagationFlags:None, AccessControlType:Allow, Method:Add] on path [C:\Users\netw10314\AppData\Local\Temp\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml] for user [True].
[05-06-2021 10:01:48.128] [Installation] [Execute-ProcessAsUser] :: Failed to export the scheduled task XML file [C:\Users\netw10314\AppData\Local\Temp\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml].
Error Record:
-------------At C:\Users\w10314\Downloads\PSAppDeployToolkit_v3.8.4\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1:11709 char:6
+ $Acl.AddAccessRule($Rule)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
Error Inner Exception(s):
-------------------------