Script Category: Disk Tools

CheckDisk SystemDrive (Server RDP detect)

Edit script line 1 for number of failures before email is sent and line 2 for the email addrsss to send to. Script runs a standard chkdsk, it then looks for failures if failures found it checks how many failures have been reported before. Then either sends email and schedules a chkdsk /f or schedules a chkdsk and adds failure to registry. Procedure will check for user logged in using qwinsta (windows server only, but will detect RDP sessions). If no user is logged in it will reboot to run chkdsk /f. Writes to script log if successful. Able to report by filtering script log for $ChkDsk$ $Audit$ $OOD$

 

A version of this script that does not use qwinsta.exe to detect if a user is logged in can be found here.

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… Continue Reading

Defrag – Scan and Analyze ONLY

This script checks a system(s) and determines if it needs defragmenting.  You can see the results of this by running a Script Log Report, and using “Defrag – Scan and Analyze ONLY” as Script Name filter. Continue Reading

Defraggler Silent Install/Update

Script downloads txt files with dl location, current version, install argument & registry key. Script then checks if Defraggler is installed, if not it will install, if installed it compares installed version to current version and updates if needed. Writes to script log if successful. Script then deletes installer and all txt files. Able to… Continue Reading

Defraggler Update Only

Script downloads txt files with dl location, current version, install argument, & registry key. Script then checks if Defraggler installed, if not it will abort install, if installed it compares installed version to current version and updates if needed. Writes to script log if successful. Script then deletes installer and all txt files. Able to… Continue Reading

CheckDisk SystemDrive

Edit script line 1 for number of failures before email is sent and line 2 for the email addrsss to send to. Script runs a standard chkdsk, it then looks for failures if failures found it checks how many failures have been reported before. Then either sends email and schedules a chkdsk /f or schedules… Continue Reading

Defraggler Defrag

Determines if Defraggler installed. If installed it asks which drive and if quick defrag should be performed. Script then executesbased on question results, and writes to script log is successful. Continue Reading

Defraggler Silent Install

Script gets txt file with download location. Downloads installer and runs with the /S argument. Script then deletes all files, and then writes to script log if successful. Continue Reading

Defrag – Scan and Analyze ONLY

This script checks a system(s) and determines if it needs defragmenting.  You can see the results of this by running a Script Log Report, and using “Defrag – Scan and Analyze ONLY” as Script Name filter. Continue Reading

Copyright ©2014-2016 Network Depot LLC.

12040 South Lakes Drive Suite 202 Reston, VA 20191 USA

Terms of Service - Refund Policy - Privacy Policy

Skip to toolbar