Quantcast
Channel: windows server – VM.Blog.
Viewing all articles
Browse latest Browse all 29

PowerShell Code Repository – Get-FailingDrive

$
0
0

PowerShell Code Repository – Get-FailingDrive

Get-FailingDrive works with SMART to determine if your hard drive may be failing. If it determines that the hard drive might be failing, a warning is displayed along with a collection of information about the potentially failing drive.

#.SYNOPSIS

Checks for any potentially failing drives and reports back drive information.

.DESCRIPTION

Checks for any potentially failing drives and reports back drive information. This only works

against local hard drives using SMART technology. Reason values and their meanings can be found

here: http://en.wikipedia.org/wiki/S.M.A.R.T#Known_ATA_S.M.A.R.T._attributes

.PARAMETER Computer

Remote or local computer to check for possible failed hard drive.

.PARAMETER Credential

Provide alternate credential to perform query.

.NOTES

Author: Boe Prox

Version: 1.0

http://learn-powershell.net

 

.EXAMPLE

Get-FailingDrive

WARNING: ST9320320AS ATA Device may fail!

MediaType       : Fixed hard disk media

InterFace       : IDE

DriveName       : ST9320320AS ATA Device

Reason          : 1

SerialNumber    : 202020202020202020202020533531584e5a4d50

FailureImminent : True

Description

———–

Command ran against the local computer to check for potential failed hard drive.

#


Tagged: hardware, powershell, windows server

Viewing all articles
Browse latest Browse all 29

Trending Articles