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 Response to “PowerShell: Finding Disk Controller Errors”

  1. Resty June 26, 2012 at 11:51 pm #

    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

revia in alcoholism