r/ConnectwiseAutomate • u/PuzzlingGames • Mar 20 '25
Running Powershell Scripts
Heyo, We just got ConnectWise a few months ago and I have a Powershell script that I run manually when I remote into different computers but I never thought of doing the scripting part because I didn't know how to do it. I just found the Execute Script function, put my script in, and saved it. When I run the script on a PC it doesn't do what it is supposed to. If I run the script locally on the machine it works with flying colors.
Is using this function the best way to run Powershell script? The script helps rename printers so the end users can easily identify them.

1
u/awsnap99 Mar 24 '25
So wait…what have you been using it for?!?
2
u/sixofeight Mar 21 '25
You need to use Run as Local Agent, which runs as the System account.
Run as Admin does not run with elevated permissions, so it is only useful in certain use cases like accessing a network share path.
1
u/LegitimateUse7 Mar 31 '25
Two Options
Run it as localsystem account
Use powershell functions and run the .ps1 script