Get Disk information with PowerShell

I was still playing with a few PowerShell commands to getting the disk size and free space. While playing with it I thought that I want also the free percentage of each disk. So I modified one of the commands while playing and found how to adding additional commands to show also the free percentage.

Note: DriveType=3 means all local disks.

Below a another way to get drive utilization:

To get the healthy status of your disks, execute the following PowerShell commands:

To get all drives identified by a standard drive letter. execute the following PowerShell command:

I suppressing the errors with the parameter -ErrorAction SilentlyContinue to ignore non-existent drive letters.

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 192 Articles
Techwire

Be the first to comment

Leave a Reply