Schedule Defrag through Group Policy for all domain workstations

Posted on 2006-03-22
Medium Priority
Last Modified: 2009-01-29
I would like to use Group Policy to schedule defrags on all of my workstations.  I have read various other answers to this issue, but I am not very familiar with writing scripts.  Can someone give me a step-by-step process to make this happen?

Thank you!
Question by:ITBanker
  • 2
LVL 48

Expert Comment

ID: 16263781
you cant add a secheduled task via Group Policy - you can control security over scheduled task but you can actually create them

here is a link for the code that will run defrag on all drives for you though

here is a link on how to create a scheduled task via script

you may want to add a logon script that will create a scheduled task.  this is just trial and error really, GPO doesnt have the functionality yet
LVL 48

Accepted Solution

Jay_Jay70 earned 750 total points
ID: 16263806
you also have the option of using psexec to execut the script remotely on all your machines, if you use the above file, you can create the task easily accross the board


Author Comment

ID: 16543974
I have not responded because I have not had the time to try out Jay_Jay70's recommendations.  However, I do appreciate the attempt to answer my question and will accept the answers given.  Thank you!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question