If I run a scheduled task that executes a PS script, it fails, actually does nothing. If I log onto that system with the user account running the task and then log off again, the scheduled task runs fine. Why would a local profile need to be created before running a PS script with it? We have a GPO that sets the MachinePolicy to RemoteSigned but have not been able to set the UserPolicy to RemoteSigned unless the user logs on.
↧