Test-Disk powershell script to test disk IO performance


disk-io-performanceThis script tests disk IO performance by creating random files on the target disk and measuring IO performance. The script can be downloaded from the Microsoft Script Center Repository.  It leaves 2 files in the WorkFolder:
A log file that lists script progress, and
a CSV file that has a record for each testing cycle.

Warning:

This script will delete all subfolders in the work-folder. Make sure to run it in a new folder.

For help type in;

help .\Test-Disk.ps1 -full

Example   .\Test-Disk.ps1 “i:\support” 3GB
This example tests the i: drive, generates files under i:\support, uses a maximum of 3GB disk space on i: drive.   It runs a single thread, runs for 3 cycles, uses largest file = 100MB (1 order of magnitude below 3GB entered), smallest file = 10MB (1 order of magnitude below largest file)

Example   .\Test-Disk.ps1 “i:\support” 11GB 8 5 4
This example tests the i: drive, generates files under i:\support, uses a maximum of 11GB disk space on i: drive, uses a maximum of 8 threads, runs for 5 cycles, and uses SamllestFile 100MB.

Script output looks like:

Test-Disk

Advertisements

3 responses

  1. tyoung

    This is super cool. Thanks for sharing

    July 24, 2014 at 6:40 pm

  2. Bobby Crotty

    This script is helpful, but I ran it in the root of an external hard drive, and it removed all the folders on the drive.

    January 18, 2017 at 1:45 pm

    • Yes. The script deletes all files, folders, and subfolders in the work-folder. Please see warning in red above..

      January 18, 2017 at 1:53 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s