none
Microsoft Task Scheduler: Schtasks.exe unable to register new task in Arabic OS (locale) RRS feed

  • 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.

    Wednesday, December 4, 2019 11:27 PM

Answers

All replies