Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > error in schtasks command line

Reply
Thread Tools

error in schtasks command line

 
 
=?Utf-8?B?YzFncmFudA==?=
Guest
Posts: n/a
 
      09-13-2006
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?YzFncmFudA==?=
Guest
Posts: n/a
 
      09-13-2006
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?
>

 
Reply With Quote
 
 
 
 
=?Utf-8?B?YzFncmFudA==?=
Guest
Posts: n/a
 
      09-23-2006
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?
>

 
Reply With Quote
 
John Barnes
Guest
Posts: n/a
 
      09-23-2006
Thanks for your solution, hope you enjoy

"c1grant" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Problem with subprocess.call and windows schtasks Chris Rebert Python 0 11-18-2012 04:39 PM
Re: Problem with subprocess.call and windows schtasks Tim Golden Python 0 11-18-2012 04:19 PM
ASP.NET site hangs when schtasks /v switch is invoked persillade@hotmail.com ASP .Net 0 05-27-2005 02:25 PM
"Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server Yehuda Vernik ASP .Net Security 1 10-19-2004 06:55 PM
schtasks problem cct ASP .Net Security 0 11-12-2003 08:23 AM



Advertisments