?
Solved

Schedule Defrag through Group Policy for all domain workstations

Posted on 2006-03-22
4
Medium Priority
?
2,979 Views
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!
0
Comment
Question by:ITBanker
  • 2
3 Comments
 
LVL 48

Expert Comment

by:Jay_Jay70
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
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm

here is a link on how to create a scheduled task via script
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0922.mspx

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
0
 
LVL 48

Accepted Solution

by:
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

http://www.sysinternals.com/Utilities/PsExec.html
0
 
LVL 1

Author Comment

by:ITBanker
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!
0

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