I’m using PSAppDeploy with SCCM. I created a deployment using Copy-File in PSAppdeploy and I am having it run when the user is logged in. The deployment copies a file to a path in appdata for the user. Here is my script code:
Copy-File -Path “$dirSupportFiles\blank.potx” -Destination “$envAppData\microsoft\templates\blank.potx”
This is being deployed as a SCCM application. It is configured to install for the user and the install command is:
Deploy-Application.exe -DeploymentType ‘Install’ -DeployMode ‘NonInteractive’
When the user is logged in and the deployment runs, I get the following:
Is there anything I missed in this configuration that could prevent that prompt from appearing?
AgentQ
August 13, 2021, 9:48pm
2
You’ll need to edit the XML to allow PSADT in standard user context. Otherwise it forces Administrative rights.
Check this thread:
[xml%20config%20file%20error%20message]
I got the error message [PSAppDeployToolkit] has an XML config file option [Toolkit_RequireAdmin] set to [True] so as to require Administrator rights for the toolkit to function. Please re-run the deployment script as an Administrator or change the option the XML config file to not require Administrator rights when deploying a script through SCCM.
This only happened on 4 users computers.
Why would this message come up on the four computers. None of th…
Hope that helps.
Thanks! Will check out that thread.
You need to use an active setup for this. Copy the file to a location on c-drive somewhere. Just create a templates directory in the program files.
Then create a active setup with the build in function that does a copy command to %appdata%
No need for admin permissions or editing the xml file.