I need a solution
I want to make more use of Powershell scripts as tasks to send out to clients but it doesnt work because the scripts are not signed and the execution policy is restricted on the clients. I can sign .ps1 scripts outside of the system but want to be able to make quick tasks etc. without making a seperate .ps1. I have read that we can run the disable execution policy script before, run the script, then enable again but this seems a pretty stupid way of achieving it and increases the chances of leaving it open. Is there a better way to do it yet?