Display a list of volumes on a remote computer

by Mitch Tulloch [Published on 5 Oct. 2011 / Last Updated on 5 Oct. 2011]

How to use the Get-WmiObject Windows PowerShell cmdlet to display a list of volumes on a remote computer.

Get-WmiObject is one of the Windows PowerShell cmdlets that can act on a remote computer by using the -ComputerName parameter. You can use the Get-WmiObject cmdlet to quickly display a list of volumes on a remote computer. For example, if the name of the remote computer is SEA-SRV-01 then you could type the following command from the Windows PowerShell command shell:

Get-WmiObject Win32_LogicalDisk -ComputerName SEA-SRV-01 | Format-Table

The results will be formatted like this:

DeviceID    DriveType    ProviderName    FreeSpace    Size    VolumeName

You can also abbreviate the above command like this:

gwmi Win32_LogicalDisk –cn SEA-SRV-01 | ft

If you have feedback concerning this tip, please email me. And be sure to check out my website!

See Also

The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links