Forum Discussion

dkingsb4's avatar
dkingsb4
Copper Contributor
Apr 23, 2025
Solved

Deploying PS Script as Application Doesn't Work

I've been trying desperately to get a powershell script to run on a target machine using MECM. First to note, I inherited a partially built MECM environment from my predecessor that wasn't documented...
  • Garth-MVP's avatar
    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.

Resources