• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

Server 2008 - Scheduled Defrag within domain

We are seeking to implement scheduled, monthly defrags within a domain.  I have a great script that defrags all drives once ran on a workstation.  What I want to do is to have all workstations run the script from a shared network location, monthly, at a set time.  I set up a GPO to, under computers, Preferences, control panel, scheduled tasks and did what I believe was to ask the script to be ran from a shared network location montly.  Is this not the proper way to do this?  Once the group policy is applied, should I be able to see it under scheduled tasks, in the individual workstations?  I have the script set up to run using the domain admins credentials.

For whatever reason, the script is not running and I see no trace of a scheduled task on the workstations when I look under scheduled tasks locally.  I would really appreciate some help on this.  All i really need the workstations to do is to run the script, from a network shared location, on a monthtly basis.  I also notcied that I would set up the scheduled task GPO, see the scheduled task in the Group policy editor and after the scheduled time for its execution, the scheduled task removed itself.. leaving the scheduled task GPO blank.  I need to ensure that this happens every month.  

Thank you in advance.
  • 2
2 Solutions
JiffyZAuthor Commented:
The above information is unfortunately not helpful.  I only need to defragment the workstations.  I already have the script I want them to run.  I just need a way to make the workstations, run the script, from a shared network location at a set time.  I need methods to do this in Server 2003 and Server 2008.

I do not believe a start up script would work properly as many of the machines are left on at all times, and I do not want to tie this to a user log in.

Please advise.. Thank you!
Henrik JohanssonSystems engineerCommented:
If Group Policy Preferences Extension has been installed on XP/2003, you can push out the schedule task by using GPO/GPP
Edit the GPO by using a Vista/2008 machine and navigate to the following section to create the schedule task, and link the GPO to the OU-structure containing the computer objects
Computer Configuration\Preferences\Control Panel\Scheduled Tasks

You can also use schtasks command tool to create the schedule task remotely
JiffyZAuthor Commented:
Combination of solutions on forums completeld this project. Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now