I signed a script and set-executionpolicy allsigned in server. Then I ran in PS shell and answer Always. The certified go to trusted publisher and script always run in shell without prompt me anymore.
But when I schedule it by system account with higest privileges it not run. It fact the status is running, but the script is stucked and do nothing at all!
If I set-executionpolicy remotesigned, the task done the job!
Some help for these foreign Brazilian beginner will be appreciate!! Thank you!!