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: Turn Disk Defrag Schedule Off

31 Aug 2015   #1
omidsolo

Windows 7 Pro SP1 x64
 
 
Turn Disk Defrag Schedule Off

Howdy,
There's an article here:
Disk Defragmenter Schedule- Turn On or Off

Which is very obvious, actually I need to disable the Disk Defragmenter Schedule CheckBox via registry!
I need help, if anyone knows which registry key to modify.
Just please refrain asking why I wanna use the registry method or show any other method!
Cheers.


My System SpecsSystem Spec
.
01 Sep 2015   #2
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Hello omidsolo mate just go to that tutorial and post a reply Brink will answer your query

PS Don't forget to back up the registry first though if you play in there Registry - Backup and Restore
My System SpecsSystem Spec
01 Sep 2015   #3
omidsolo

Windows 7 Pro SP1 x64
 
 

Thanks dude, done, hope I receive a response
My System SpecsSystem Spec
.

01 Sep 2015   #4
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Yes you will mate he is a very busy fellow being Admin and doing what he does on the 7 8 and now 10 forums which includes a vast number of the tutorials - frankly I don't know how he does what he does
My System SpecsSystem Spec
01 Sep 2015   #5
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by omidsolo View Post
I need to disable the Disk Defragmenter Schedule CheckBox via registry!
The answer is not as obvious as you may think. The Disk Defragmenter Schedule checkbox configuration is not saved in the form of a registry key. Rather the setting is determined by the enabled state of a very specific task.

Would you be okay with some PowerShell method instead, Omidsolo?
My System SpecsSystem Spec
01 Sep 2015   #6
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Actually Pyprohly has said it in a nutshell and far better than I could have done. Personally playing in the registry is something I think I may have mentioned requires great care and in any case requires a back up before one does anything
My System SpecsSystem Spec
02 Sep 2015   #7
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

A VBScript solution.

Code:
' ToggleScheduledOptimisation.vbs
' Toggles the on or off state of the Disk Defragmenter Schedule.

Function PromptForElevation()
	If Not CreateObject("WScript.Shell").Run("Net Sess", 0, True) = 0 Then
		CreateObject("Shell.Application").ShellExecute "WScript", """" & WScript.ScriptFullName & """", "", "RunAs", 1
		WScript.Quit
	End If
End Function

PromptForElevation()

Set objScheduleService = CreateObject("Schedule.Service")
objScheduleService.Connect()

Set taskScheduledDefrag = objScheduleService.GetFolder("\Microsoft\Windows\Defrag").GetTask("ScheduledDefrag")

If taskScheduledDefrag.Enabled Then
	taskScheduledDefrag.Enabled = False
Else
	taskScheduledDefrag.Enabled = True
End If
My System SpecsSystem Spec
02 Sep 2015   #8
Ztruker

Windows 10 Pro X64
 
 

Actually there is no need to turn off defrag. It will recognize the SSD and not defrag it.
My System SpecsSystem Spec
02 Sep 2015   #9
omidsolo

Windows 7 Pro SP1 x64
 
 

So, there's no way via registry for sure ?!
My System SpecsSystem Spec
03 Sep 2015   #10
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by omidsolo View Post
So, there's no way via registry for sure ?!
Sorry, perhaphs I wasn't clear enough.

Omidsolo, the state of Disk Defrag Schedule is not determined by any registry key or value. There is no "way via registry" because that setting is simply not stored the registry. Period.

The registry stores a lot of settings, there's no denying that, but some things that we call 'settings' aren't alway stored in the registry. They are instead interpreted from the state of things, such as, if a certain file exists, or maybe if a particular process is running, or maybe if a certain task is enabled or disabled which is exactly how the Disk Defrag Schedule checkbox is determined.

Windows does not revolve around the registry, mate.
My System SpecsSystem Spec
Reply

 Turn Disk Defrag Schedule Off




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Disk Defragmenter Schedule- Turn On or Off
How to Turn the Windows 7 Disk Defragmenter Schedule On or Off This will show you how to turn the Disk Defragmenter schedule on or off to allow it to run automatically in Windows 7 or not. Disk Defragmenter is set to run on a automatic schedule by default in Windows 7. The Disk Deframenter...
Tutorials
How Windows 7 defrag schedule work
I was playing around with the default Windows 7 defrag schedule and still can't figure how it work exactly. The default schedule is set to start at 1h am wednesday with 3 minutes idle condition. Their is also a settings that set the defrag to start as soon as it can if a schedule is missed. If...
Performance & Maintenance
Auslogics Disk Defrag vs IObit Smart Defrag
Which Defragger do you think is better, because I am trying to decide between the two, but can't decide on one or the other.
Software
Schedule to wake up or turn on?
Hi, How can you schedule your win7 to wake up or turn on on a specific time. eg. my IDM starts work at 1am. i sleep before 12. I dont want to waste energy to keep my computer fully on this whole hour (electricity is expensive here). I've tried to schedule it, but it keeps failing. I dont...
General Discussion
Windows Disk Defrag Doesn't Defrag
Disk defrag stops analyzing at 62% and doesn't go any further. So I downloaded Defraggler and ran it. It worked but it wouldn't defrag down to 0% fragmentation, It still shows 4% after defrag.
Performance & Maintenance
Backup Files Schedule - Turn On or Off
How to Turn the Windows 7 Backup Files Schedule On or Off This will show you how to turn the Windows 7 automatic backup files schedule on or off for an existing or new backup configuration. For an Existing Backup Configuration 1. Open the Control Panel (icons view). 2. Click on the...
Tutorials


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 15:42.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App