I am having a weird behavior when executing a schedule task that executes a powershell script.
I logged in as a Domain Admin, we have an account called script_svc with domain admin rights.
I create the schedule task to be executed by the script_svc domain admin account.
The schedule task executes the script "fine" but with unexpected results.
But if I do Run As on the Powershell Icon and enter the "script_svc" credentials and execute the script manually, run 100% fine with the expected results.