Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Disk Health with new PS Scanner

Used to have to rely on PDQ Deploy to run a package to output drive status to a txt file, then use "Files & Directories" in Inventory to pick up the results to report disk heath.....*whew*

Now with PS Scanner!

 

Get-PhysicalDisk | Where-Object {$_.FriendlyName -NotLike "*Virtual*"} | ForEach-Object {

[PSCustomObject]@{
DiskName = $_.FriendlyName
Type = $_.MediaType
Health = $_.HealthStatus
Status = $_.OperationalStatus

 

}
}

 

Boom. Done.

1

Comments

1 comment
Date Votes
  • Jeremy,

    Thanks for sharing. I had something similar in a PDQ tool that I would just run manually against machines to check them. Your scanner is working well in my environment.

    I look forward to the influx of useful PS scanners from the community in the coming weeks.

    1