Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Windows Scheduled Defrag Problem

08 Feb 2011   #1

windows 7 64 bit professional
 
 
Windows Scheduled Defrag Problem

This issue is a bit complicated . I did a Repair Install to fix some problems in IE8. It fixed IE8, however, after some CClien registry cleanings, whenever I opened my Scheduled Tasks window, I got an error message ("The selected task "(0)" no longer exists. To set the current tasks click refresh…"). It turned out that this was caused by the fact that I had the file
C:\Windows\System32\Tasks\Microsoft\Windows\Defrag\ScheduledDefrag.XML”
but I didn't have any scheduled task in the window
Task Scheduler (Local)\Task Scheduler Library\Microsoft\ Windows\Defrag”
(which must have been the fault of CClean ).

Following some advice (from another Forum), I removed the original XML file from its folder, and simply set up a defragmenter task and run it via a batch file from the Task Scheduler:


Start program “D:\Bat Files\ScheduledDefragStart.bat”
Start program “C:\Windows\System32\Defrag.exe C:”
Start program “D:\Bat Files\ScheduledDefragFinish.bat”

where the first batch file wrote my own log file (date and time) and also activated an 'Always On' power scheme, while the last batch file finished the log file (time) and activated a 'Sleep Now' power scheme.

I set up the power schemes and activated them using the 'powercfg.exe' command with the appropriate numeric identifier (powercfg /list) in the batch file (e.g. the 'Sleep Now' batch file is: C:\Windows\System32\powercfg /setactive e11694a4-9381-4b6b-9d07-b5054bc05bc1.

The XML file that my own defrag scheduled task created is similar but not exactly the same as the original XML file that came with the original installation. And this is probably the reason for the next issue: I cannot run the Windows defragmenter manually from the Control Panel anymore. I get an error message: "Disk Defragmenter was scheduled using another program...".

My questions:

1. Is there a way to restore the original Windows Defragmenter (I still have the original XML file)?
2. Would another Repair Install solve this problem? (Then I probably would have to delete my defrag entry from the Task Scheduler and also the XMP file)?

I would greatly appreciate any comments/help/suggestions.

P.S. I am trying also to use "MyDefrag" (from the author of "JKDefrag") but so far it seems extremely complicated to run it via a batch file.

Thank you,

Laci.



My System SpecsSystem Spec
.

Reply

 Windows Scheduled Defrag Problem





Thread Tools



Similar help and support threads for2: Windows Scheduled Defrag Problem
Thread Forum
Scheduled defrag query Performance & Maintenance
Does Puran Defrag 7.3 Free work with Windows 7 Defrag disabled ? Software
Windows Disk Defrag Doesn't Defrag Performance & Maintenance
Scheduled Defrag Disabled for SSD, but what about 2nd HD? Hardware & Devices
Does Windows Defrag defrag system files? Performance & Maintenance
scheduled Disk defrag does not run Performance & Maintenance
MSE Scheduled Scan Problem System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:14 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33