Defragment all drives
VBScript uses wmi queries to get a list of drives. Filters drives based on drivetype. Uses smartmontool to determine if any fixed drives are SSDs. Performs a defrag analysis on any non-SSDs and builds a batch script for any defrags that are needed. Upon completion the VBScript will trigger the batch script to start any defrags that were queued. Can report using “$degfrag$”, “$degfragOK$”, “$degfragError$”, “$degfragStarted$”. $defragOK$ indicates no defrags were needed.
![script-default script-default](https://clubmsp.com/wp-content/uploads/2021/01/script-default.webp)
Script Categories
Content Copyright
Virtual Administrator
Script Version
1.0
Script Author
Script OS
RMM Version
6.2+
Search For More Scripts
View More results...