Server 2008 - Scheduled Defrag within domain

Posted on 2009-12-24
Last Modified: 2012-05-08
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.
Question by:JiffyZ
    LVL 24

    Accepted Solution


    Author Comment

    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!
    LVL 31

    Assisted Solution

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

    Author Closing Comment

    Combination of solutions on forums completeld this project. Thanks!

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
    I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now