Here are the screenshots of my setup.
-> Screenshot is missing.
Please export the task, then open it with notepad.exe and paste its contents into your reply.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm having a rough go trying to use Task Scheduler to schedule tasks.
I had the system working for a 6am program for about two weeks. I decided that I wanted to shift users to a new account about two weeks ago, and my task hasn't run properly since. I get this in general from the task. I have both the latest draft of the task and the original one that worked before switching accounts:
When editing the task, every time I get a "one or more of the specified arguments are not valid" error message. I think it has to do with the account I'm running it from. I've looked at other solutions to this issue using the SYSTEM account and switching to 'run whether the user is logged on or not' but that's greyed out for me:
I have not tried running this through a different account since I removed the old one. I looked through a bunch of suggestions from here but no luck.
Any new suggestions? Is there a step I may have missed in creating the new account (Atlas) to give it proper permissions?
Here are the screenshots of my setup:
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Here are the screenshots of my setup.
-> Screenshot is missing.
Please export the task, then open it with notepad.exe and paste its contents into your reply.
It did not work this morning, but I ran the task by hand and that worked fine. What could be causing it to miss the scheduled time? I have it ticked to run whether or not the user is logged on, and my computer boots up 5 minutes before the task runs. Would it be something with running it from the SYSTEM account?
I was able to switch the settings after running Task Scheduler from it's location rather than the shortcuts. I'll give a report in the morning if it worked or not.
When editing the task, every time I get a "one or more of the specified arguments are not valid" error message. I think it has to do with the account I'm running it from. I've looked at other solutions to this issue using the SYSTEM account and switching to 'run whether the user is logged on or not' but that's greyed out for me.
I did not get any error messages when editing the task but I also faced the greyed-out tick boxes. You can get around them like so:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2018-06-17T14:32:02.5940504</Date>
<Author>ATLAS\Atlas</Author>
<Description>KMP draft 7</Description>
<URI>\KMP</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2018-06-17T06:00:00</StartBoundary>
<EndBoundary>2019-08-18T14:30:59</EndBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-21-601604415-2376797430-1722278348-1003</UserId>
<LogonType>Password</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<WakeToRun>true</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\Python36\kmplive.bat</Command>
<WorkingDirectory>C:\Python36</WorkingDirectory>
</Exec>
</Actions>
</Task>