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.
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.
- dkingsb4Apr 29, 2025Copper Contributor
While this didn't necessarily solve my issue, the testing certainly pointed me in the right direction. The solution was to add the Domain Computers AD group to the network share that housed the files I needed to copy. This gave the local SYSTEM account access to the network share that it needed.
My dilemma now is to figure out how to get a task sequence to utilize this script after installing the software application I'm using. I'm still testing this, and will make another post if I need to. So far I was able to get MECM to run the script as needed by either running it directly through the "run scripts" option, or I built an application using the script installer deployment type to run the script after the software is installed.