Add a Task Schedule to Computers

  • Thread starter Jose Ines Cantu Arrambide
  • Start date
J

Jose Ines Cantu Arrambide

Hello,
Is there a way to add a Task Schedule to a group policy?
For example, I want all computers to defrag their localdisk at specific
times.

Thanks in advance.
Jose.
 
S

Steven Umbach

I don't know of a Group Policy admin template that will do such, but you might
look into using the AT command as a startup script via Group Policy/computer
configuration. At the command prompt type AT /? for info. However according to a
MS KB as shown below, defrags can not be scheduled - at least the built in
ne. --- Steve

http://support.microsoft.com/default.aspx?scid=kb;en-us;227463
 
J

Jose Ines Cantu Arrambide

Thanks I'll look into AT
To schedule a defrag locate defrag.exe in \%windir%\System32\ when adding
the task schedule, in the Run property of the job add at the end the drive
letter and the -f option to force defrag.
Run: "C:\WINDOWS\system32\defrag.exe c: -f"

Thanks.
Jose.
 
S

Steven Umbach

OK. I think defrag.exe was introduced in XP and is not in W2K . If that commmand
works for you as a Scheduled Task, it should work with AT. --- Steve
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top