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: How to automate diskdefragmentation

14 Oct 2018   #1
jpchint

windows 7 ultimate 64 bit
 
 
How to automate diskdefragmentation

Hi sevenforums,

How can I automate disk defragmentation(assuming with task scheduler) if my fragmentation reaches 30% for C drive?


My System SpecsSystem Spec
.
14 Oct 2018   #2
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi JP,

Task scheduler does not have a run when X% reached, so it would have to be time based ie monthly.


Note
SSD's should NOT be defragged.


Roy
My System SpecsSystem Spec
4 Weeks Ago   #3
Snick

Win 10 x64, Linux Lite, Win 7 x64, BlackArch, Kali, VMWare Workstation Player, OpenVPN
 
 

Windows 7, by default, defrags your Hard Drive (HDD) via task scheduler, it is disabled, by default, with Solid State Drive (SSD).
My System SpecsSystem Spec
.

4 Weeks Ago   #4
jpchint

windows 7 ultimate 64 bit
 
 

Quote   Quote: Originally Posted by torchwood View Post
Hi JP,

Task scheduler does not have a run when X% reached, so it would have to be time based ie monthly.


Note
SSD's should NOT be defragged.


Roy
Thanks Mr.Torchwood for reply.....
My System SpecsSystem Spec
4 Weeks Ago   #5
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Hello jpchint, do you have any PowerShell scripting experience?

Is this article any use to you: Use PowerShell to Determine Fragmentation of your Drive?

Article suggests accessing WMI method DefragAnalysis, and querying the TotalPercentFragmentation member to achieve your scripting goal.
My System SpecsSystem Spec
4 Weeks Ago   #6
jpchint

windows 7 ultimate 64 bit
 
 

Quote   Quote: Originally Posted by iko22 View Post
Hello jpchint, do you have any PowerShell scripting experience?

Is this article any use to you: Use PowerShell to Determine Fragmentation of your Drive?

Article suggests accessing WMI method DefragAnalysis, and querying the TotalPercentFragmentation member to achieve your scripting goal.
Awesome,thanks..
My System SpecsSystem Spec
Reply

 How to automate diskdefragmentation




Thread Tools




Similar help and support threads
Thread Forum
Automate userpasswords2
Is there a way to automate the process of "control userpasswords2" > uncheck "Users Must Enter..." > and specific the local account and its password (see attached)? Ideal solution would be something called from a batch file. edit: Win7SP1 Pro workstations
Installation & Setup
CheckDisk Automate
How To Fix It ??
Performance & Maintenance
How to Automate ASC 4?
I want to know how can i automate the running process of Deep Care. I have already searched the folder, but it doesn't have the Deep Care shortcut. I have to run ASC 4 and from the main menu open Deep Care, and then select Scan and Repair. I wanted a shortcut that goes to Scan and Repair, and to...
General Discussion
Someone automate this for me?
Hi there, wondering if this is possible to create as a .bat file or something here is the code: I can type it in with CMD but I'm running this on many computer so I want it to be faster.
General Discussion
Way to automate USB close down?
Windows 7 RC1 7100 I'm looking for an easier way to close down six USB devices (USB external backup hard drives) than closing them one at a time in the little 'open devices' menu. Is there a utility or setting to automate the process when logging off or shutting down? Thanks for your help -...
General Discussion


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 20:21.
Twitter Facebook Google+