Hi Lansweeper Community,
I have a question about the best way to run a PowerShell script on our inventoried machines that require the use of the -PolicyExecution Bypass parameter.
What I was thinking is to run a Command within the Deployment settings, and the command would contain:
powershell.exe -executionpolicy bypass -file myScript.ps1
Does this assume that myScript.ps1 is on the Lansweeper server, within the local {PackageShare}\ ?
Also, for scripts, is it best practice to use the system account (assuming that it does not need domain credentials)?
Thank you in advance,
Daniel