Forum Discussion
Deploying PS Script as Application Doesn't Work
- Apr 24, 2025
Your problem is that you are copying a file from a network share. This is because the script will run as local system account. As such you need to test your script as local system. This blog will show you how to do that. How to Access the Local System Account - Recast Software
You can solve this but including the license file with the script/setup. That is the simplest solution.
Isn't it possible to deploy the script as an application and under User Experience select the installation behavior to install for user instead of install for system?
Yes, you're correct. However, I wasn't trying to install it for a user, I needed it installed for the system, Garth-MVP's answer was accurate. The script needed to be ran utilizing the system account, which needed additional permissions on the network share (Adding Domain Computers). Once I did that, I was able to run scripts that were sitting on a network share. There's also other things that can be done, but it was less a Config Manager issue and more a permissions issue.