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
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.