+ Post New Thread
Results 1 to 4 of 4
Windows 7 Thread, Rescheduling Windows 7 default defrag in Technical; Afternoon all. Bit stumped on this one. I'm trying to move the default defrag form the stupid time of Wednesday ...
  1. #1

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,467
    Thank Post
    750
    Thanked 1,210 Times in 852 Posts
    Blog Entries
    45
    Rep Power
    533

    Rescheduling Windows 7 default defrag

    Afternoon all.

    Bit stumped on this one. I'm trying to move the default defrag form the stupid time of Wednesday 1am to Saturday morning when our machines are doing the rest of their maintenance tasks; as it is, the defrag just ends up running first thing Wednesday morning when the PCs come back on and by the gods, it makes things crawl. (This despite the assertion in Task Scheduler that it will stop if the computer ceases to be idle)

    Does anyone know how to replace/delete-then-readd this task? I've been trying to do it with GPP and neither Replace with the settings I want nor Delete with the settings replicated as closely as possible are having an effect.

  2. #2
    ADMaster's Avatar
    Join Date
    May 2012
    Posts
    264
    Thank Post
    4
    Thanked 26 Times in 22 Posts
    Rep Power
    12
    try a start up script or pushing out the script with your favorite deployment method

    Schtasks: Management Services

  3. Thanks to ADMaster from:

    sonofsanta (25th September 2012)

  4. #3

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,467
    Thank Post
    750
    Thanked 1,210 Times in 852 Posts
    Blog Entries
    45
    Rep Power
    533
    Cheers... after a bit of digging based on the schtasks command I found a page detailing more or less exactly what I needed @ Changing the Windows 7 Scheduled Defrag Task Anything about IT.

    Stupidly, though, running the complete BAT file (disable then create) when logged on as an administrator works perfectly. Setting the script as a startup script, it successfully disables the existing defrag, but doesn't add the new one from the XML. There's no mention of it in the Task Scheduler log (event 106). So in the end I have:
    Code:
    schtasks.exe /change /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
    running in a startup script to disable the default defrag schedule, and then I'm adding a new one with GPP - which, just to confuse matters, is added at the root of Task Scheduler's library, instead of in Microsoft\Windows\Defrag where the original is.

    So a bit of a faff, but working - just need to test that this new defrag still ignores SSDs (which I think it should) and I'm good to go. Huzzah!

  5. #4
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,723
    Thank Post
    206
    Thanked 254 Times in 206 Posts
    Rep Power
    65
    Can this not be done using Group policy Preferences?

    EDIT: ooops read the whole post this time...

SHARE:
+ Post New Thread

Similar Threads

  1. Windows Default save location
    By TechMonkey in forum Windows 7
    Replies: 5
    Last Post: 29th August 2012, 05:19 PM
  2. [MS Office - 2007] Default font not saving on Office 2007 Windows 7
    By talksr in forum Office Software
    Replies: 0
    Last Post: 26th March 2010, 02:25 PM
  3. Default Windows Explorer Opening Location
    By EJWill in forum Windows 7
    Replies: 11
    Last Post: 2nd February 2010, 02:36 PM
  4. Replies: 1
    Last Post: 19th January 2009, 02:54 PM
  5. Changing the Default Window Property
    By Mintsoft in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 20th December 2007, 01:31 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •