October 19th, 2015

PowerTip: Get File System errors on NTFS Volumes with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to get file system errors on all NTFS volumes.

Hey, Scripting Guy! Question How can I use Windows PowerShell to check your NTFS volumes for file system errors?

Hey, Scripting Guy! Answer On Windows 10 with Windows PowerShell 5.0, use the Get-Volume cmdlet to retrieve all volumes and
           pipe the output to the Get-VolumeCorruptionCount cmdlet, for example:

Get-Volume | Get-VolumeCorruptionCount

            Note  This command requires elevation.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.