PC Review


Reply
Thread Tools Rate Thread

Change tasks runtime using schtasks (Vista)

 
 
Super Play
Guest
Posts: n/a
 
      4th Jan 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
 
 
 
 
the wharf rat
Guest
Posts: n/a
 
      28th Jan 2008
In article <(E-Mail Removed)>,
Rollexx <(E-Mail Removed)> 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
 
      28th Jan 2008
"Rollexx" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
 
Jon
Guest
Posts: n/a
 
      28th Jan 2008

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

Thread Tools
Rate This Thread
Rate This Thread:

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 4th Jan 2008 05:37 PM
Can't display or change a task with schtasks.exe =?Utf-8?B?Y2xheWdh?= Windows Vista Administration 0 3rd Aug 2007 07:16 PM
Creating a Schedule Task in Vista with schtasks, Getting Access De =?Utf-8?B?S2FybFtVU10=?= Windows Vista General Discussion 0 20th Feb 2007 10:44 PM
getting list of scheduled tasks on other machines using schtasks? Yannb Windows XP General 1 2nd Feb 2004 06:01 PM
Print, Change Tasks box size or word wrap tasks Chris n'Texas Microsoft Outlook Calendar 0 17th Dec 2003 03:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 AM.