How to List Drives Using PowerShell

If you frequently work with the PowerShell, you may need to display the drives within the Powershell console window. In this tutorial, we will show you how you can list drives using PowerShell in Windows 10 / 8 / 7.

PowerShell can be used to obtain a list of all the drives that are active on your system, along with the details like; space used, free space and the Root folder for each drive.

First, you'll need to open PowerShell as an Administrator. To open an elevated PowerShell prompt, in the taskbar search bar, type powershell. Now see the result Windows PowerShell which appears on the top. Right-click on it and select Run as Administrator.

In the PowerShell window, type the following command and hit Enter:

Code:

get-psdrive –psprovider filesystem


How to List Drives Using PowerShell UI3cmMT

That's it.

Did you find this tutorial helpful? Don’t forget to share your views with us.