I have a powershell script that I want to run as a schedule job.
The script runs great when I execute it manually, but when I run the schedule task, the job fails with the message "could not start"
Schedule job setup:
Run: powershell -command "& 'ScriptName.ps1'" Start in: Run as:
This is scheduled on a Windows Server 2003 and is running powershell 1.