PowerShell: Finding Disk Controller Errors

This line will analyse your system event log for disk controller errors:

PS> Get-EventLog -LogName System -InstanceId 3221487627 -ea 0 | ForEach-Object { $_.ReplacementStrings[0] } | Group-Object -NoElement | Sort-Object Count -Descending
Count Name
----- ----
        23 \Device\Harddisk2\DR4
        21 \Device\Harddisk2\DR2
          7 \Device\Harddisk2\DR3

Such errors can indicate disk failure but most often they result from USB sticks that you removed unexpectedly. If you do not get any results, then there are no disk controller errors.

One thought on “PowerShell: Finding Disk Controller Errors

  1. Just desire to say your acitrle is as amazing. The clarity in your post is just nice and i could assume you are an expert on this subject. Well with your permission let me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the rewarding work.

Leave a Reply

Your email address will not be published.