Registered a PowerShell Scheduled job using the following script:
enter $T = New-JobTrigger -Daily -AT "04:00 AM" here
enter Register-ScheduledJob -Name JobName -FilePath C:\Jobs\myScript.ps1 -Trigger $T here
When I try to Run this job using Windows Task Scheduler I get the following issue:
Task Scheduler failed to start "\Microsoft\Windows\PowerShell\ScheduledJobs\JobName" task for user "myUser". Additional Data: Error Value: 2147944187.
There is a pretty the same issue Task Scheduler failed to start. Additional Data: Error Value: 2147943726 but with different Error Value ID. Anyway, I tried all suggestions from there but no results.
Some more details:
- Current user is not an Administator
- I've check the box Run with highest privileges
- Machine - Windows Server 2012
Any ideas how I can resolve this issue?