cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mickeyshowers
Engaged Sweeper III
Basic question I'm sure but how do you get Powershell scripts to run? Powershell is installed on the LS server but no matter how I configure an action, they fail. If I run Powershell from my machine and manually run the script, it runs fine.
1 ACCEPTED SOLUTION
Daniel_B
Lansweeper Alumni
This seems to be a working solution:
powershell.exe -noprofile -executionpolicy bypass -file {actionpath}YourScript.ps1


Alternatively you could use the deployment feature of Lansweeper and deploy scripts or other kinds of installers/commands to your network computers, so they will locally be executed. Instructions on how to create a deployment package can be found here.

View solution in original post

1 REPLY 1
Daniel_B
Lansweeper Alumni
This seems to be a working solution:
powershell.exe -noprofile -executionpolicy bypass -file {actionpath}YourScript.ps1


Alternatively you could use the deployment feature of Lansweeper and deploy scripts or other kinds of installers/commands to your network computers, so they will locally be executed. Instructions on how to create a deployment package can be found here.