Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Change tasks runtime using schtasks (Vista)

Reply
Thread Tools Display Modes

Change tasks runtime using schtasks (Vista)

 
 
Super Play
Guest
Posts: n/a

 
      01-04-2008
I am attemtping to use schtasks to change a taks run time using the command
line tool "schtasks"

As a test I am attempting to change the time of the scheduled defrag, using
the syntax:

SCHTASKS /Change /TN ScheduledDefrag /ST 15:00

This returns the following error:

ERROR: The specified task name "ScheduledDefrag" does not exist in the
system.

However if I run "schtasks /query " to quey all taks the folllowing is
retured

Folder: \Microsoft\Windows\Defrag
TaskName Next Run Time Status
========================================== ====================
===============
ManualDefrag N/A Ready
ScheduledDefrag 09/01/2008 01:00:00 Ready


Even in the Vista Scheduled taks GUI it shows the tasks name as
"ScheduledDefrag"


What is going on?

 
Reply With Quote
 
 
 
 
Rollexx
Guest
Posts: n/a

 
      01-28-2008

Hello,
I'm working on the same problem. I found the command to get th
defrag:

Change the command as follow:

SCHTASKS /Change /TN microsoft\windows\defrag\ScheduledDefrag /S
15:00

Than I get another error: access is denied. I tried to use the loca
admin account, but it does not work. My computer is member of a domain
May you have an idea??

Rollex

--
Rollex
Posted via http://www.vistaheads.co

 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-28-2008
In article <>,
Rollexx <> wrote:
>
>Than I get another error: access is denied. I tried to use the local
>admin account, but it does not work. My computer is member of a domain.
>May you have an idea??
>


What happens if you try to use the task scheduler under computer
management? If all you want to do is schedule defrag you can do that right
from start->computer->hard disk drives and don't need the command line.

Forgive me if I don't understand what you're trying to do.

 
Reply With Quote
 
Jon
Guest
Posts: n/a

 
      01-28-2008
"Rollexx" <> wrote in message
news:...
>
> Hello,
> I'm working on the same problem. I found the command to get the
> defrag:
>
> Change the command as follow:
>
> SCHTASKS /Change /TN microsoft\windows\defrag\ScheduledDefrag /ST
> 15:00
>
> Than I get another error: access is denied. I tried to use the local
> admin account, but it does not work. My computer is member of a domain.
> May you have an idea??
>





Try running the same command 'elevated'

--
Jon



 
Reply With Quote
 
Rollexx
Guest
Posts: n/a

 
      01-28-2008

@ the warf rat:

we want to change the schedule for all clients in the wan. Therefor we
can not use the GUI.

@ Jon

what do you mean with "elevated"??

Rollexx


--
Rollexx
Posted via http://www.vistaheads.com

 
Reply With Quote
 
Jon
Guest
Posts: n/a

 
      01-28-2008

"Rollexx" <> wrote in message
news:...
> @ Jon
>
> what do you mean with "elevated"??
>
> Rollexx



Right-click a link to cmd.exe > Run as administrator

then try the same command that you got an 'Access is denied' message with.


--
Jon




 
Reply With Quote
 
Rollexx
Guest
Posts: n/a

 
      01-29-2008

Yes, now I works.

Thank you.

Rollexx


--
Rollexx
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Change tasks runtime using schtasks Super Play Windows Vista General Discussion 1 01-04-2008 04:37 PM
Microsoft Visual C++ Runtime Library box with Runtime Error Michael Windows Vista General Discussion 3 08-25-2007 12:55 AM
Can't display or change a task with schtasks.exe clayga Windows Vista Administration 0 08-03-2007 06:16 PM
Microsoft Visual C++ Runtime Library ...Runtime Error kaya Windows Vista Mail 2 07-31-2007 11:41 AM
Creating a Schedule Task in Vista with schtasks, Getting Access De Karl[US] Windows Vista General Discussion 0 02-20-2007 09:44 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59