error in schtasks command line

Discussion in 'Windows 64bit' started by =?Utf-8?B?YzFncmFudA==?=, Sep 13, 2006.

  1. when trying to schedule a task from the command line using the following

    schtasks /create /sc WEEKLY /D MON /F /tn Defrag /tr
    "C:\Windows\System32\cscript.exe //nologo C:\CommonApps\defragDrives.vbs" /st
    03:30:00

    the following error is reported
    ERROR: The creation of the scheduled task failed.
    Reason: The Task Name may not contain the characters: <, >, :, /, \,|.

    when changing the task name to "/tn defrag" the command works without issue
    changed taskname to "ABCEFGHIJKLMNOPQRSTUVWXYZ" the command works
    changed taskname to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" the command fails

    Why does putting a "D" in the taskname causes schtasks to fail?
    =?Utf-8?B?YzFncmFudA==?=, Sep 13, 2006
    #1
    1. Advertising

  2. this is on x64 Server

    "c1grant" wrote:

    > when trying to schedule a task from the command line using the following
    >
    > schtasks /create /sc WEEKLY /D MON /F /tn Defrag /tr
    > "C:\Windows\System32\cscript.exe //nologo C:\CommonApps\defragDrives.vbs" /st
    > 03:30:00
    >
    > the following error is reported
    > ERROR: The creation of the scheduled task failed.
    > Reason: The Task Name may not contain the characters: <, >, :, /, \,|.
    >
    > when changing the task name to "/tn defrag" the command works without issue
    > changed taskname to "ABCEFGHIJKLMNOPQRSTUVWXYZ" the command works
    > changed taskname to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" the command fails
    >
    > Why does putting a "D" in the taskname causes schtasks to fail?
    >
    =?Utf-8?B?YzFncmFudA==?=, Sep 13, 2006
    #2
    1. Advertising

  3. uninstalled windows, using ubuntu now. Problem solved


    "c1grant" wrote:

    > when trying to schedule a task from the command line using the following
    >
    > schtasks /create /sc WEEKLY /D MON /F /tn Defrag /tr
    > "C:\Windows\System32\cscript.exe //nologo C:\CommonApps\defragDrives.vbs" /st
    > 03:30:00
    >
    > the following error is reported
    > ERROR: The creation of the scheduled task failed.
    > Reason: The Task Name may not contain the characters: <, >, :, /, \,|.
    >
    > when changing the task name to "/tn defrag" the command works without issue
    > changed taskname to "ABCEFGHIJKLMNOPQRSTUVWXYZ" the command works
    > changed taskname to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" the command fails
    >
    > Why does putting a "D" in the taskname causes schtasks to fail?
    >
    =?Utf-8?B?YzFncmFudA==?=, Sep 23, 2006
    #3
  4. =?Utf-8?B?YzFncmFudA==?=

    John Barnes Guest

    Thanks for your solution, hope you enjoy :)

    "c1grant" <> wrote in message
    news:...
    > uninstalled windows, using ubuntu now. Problem solved
    >
    >
    > "c1grant" wrote:
    >
    >> when trying to schedule a task from the command line using the following
    >>
    >> schtasks /create /sc WEEKLY /D MON /F /tn Defrag /tr
    >> "C:\Windows\System32\cscript.exe //nologo C:\CommonApps\defragDrives.vbs"
    >> /st
    >> 03:30:00
    >>
    >> the following error is reported
    >> ERROR: The creation of the scheduled task failed.
    >> Reason: The Task Name may not contain the characters: <, >, :, /, \,|.
    >>
    >> when changing the task name to "/tn defrag" the command works without
    >> issue
    >> changed taskname to "ABCEFGHIJKLMNOPQRSTUVWXYZ" the command works
    >> changed taskname to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" the command fails
    >>
    >> Why does putting a "D" in the taskname causes schtasks to fail?
    >>
    John Barnes, Sep 23, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Silverstrand
    Replies:
    0
    Views:
    960
    Silverstrand
    Apr 17, 2006
  2. Mike Rahl
    Replies:
    6
    Views:
    2,328
    Walter Roberson
    Dec 12, 2006
  3. chuckcar
    Replies:
    11
    Views:
    9,444
    §ñühw¤£f
    Apr 21, 2009
  4. Evan Platt
    Replies:
    1
    Views:
    867
    John Holmes
    Apr 18, 2009
  5. §ñühw¤£f
    Replies:
    2
    Views:
    1,505
    §ñühw¤£f
    Apr 19, 2009
Loading...

Share This Page