Answered by:
Microsoft Task Scheduler: Schtasks.exe unable to register new task in Arabic OS (locale)

Question
-
I created a task in MS Task Scheduler app using simple xml command approach:
> SCHTASKS /CREATE /SC DAILY /TN "TEST" /XML> "C:\TEST.xml"
When i try to register the task in an Arabic regional OS setting/machine the task registration fails.
XML (task):
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>1441-04-07T11:33:39</Date>
<URI>TEST</URI>
</RegistrationInfo>
<Triggers>
<TimeTrigger>
<StartBoundary>1441-04-07T11:33:39-08:00</StartBoundary>
..
BUT, if i edit the year in this Xml to 2019 instead of that (local calendar) year 1441, the task registers successfully.
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2019-04-07T11:33:39</Date>
<URI>TEST</URI>
</RegistrationInfo>
<Triggers>
<TimeTrigger>
<StartBoundary>2019-04-07T11:33:39-08:00</StartBoundary>
..
Please let me know how to resolve this! Thanks a ton.- Moved by Xingyu ZhaoMicrosoft contingent staff Thursday, December 5, 2019 2:26 AM
Wednesday, December 4, 2019 11:27 PM
Answers
-
I'd try asking for help over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=win10itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w8itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w7itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=winservergen
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Thursday, December 5, 2019 7:29 AM
- Marked as answer by Richard MuellerMVP Thursday, December 12, 2019 11:35 AM
Thursday, December 5, 2019 3:18 AM
All replies
-
Hi Joe Haame,
Thank you for posting here.
I will move this thread to Where is the Forum For…? forum which can tell you where to go ask questions.
Thank you for your understanding.
Best Regards,
Xingyu Zhao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- Edited by Xingyu ZhaoMicrosoft contingent staff Thursday, December 5, 2019 2:26 AM
Thursday, December 5, 2019 2:25 AM -
I'd try asking for help over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=win10itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w8itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w7itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=winservergen
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Thursday, December 5, 2019 7:29 AM
- Marked as answer by Richard MuellerMVP Thursday, December 12, 2019 11:35 AM
Thursday, December 5, 2019 3:18 AM -
@Dave: Thanks for your response.
I posted this question at Windows Server General Forum. Thanks.
Thursday, December 5, 2019 4:31 AM -
Sounds good, you're welcome.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Thursday, December 5, 2019 2:09 PM