PowerShell Logo Small

Get-Volume



This is the built-in help made by Microsoft for the command 'Get-Volume', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the specified Volume object, or all Volume objects if no filter is provided.

SYNTAX


Get-Volume [[-DriveLetter] <Char[]>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-Partition <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-FilePath <String>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-ObjectId <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-DiskImage <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-FileSystemLabel <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-Volume [-AsJob] [-CimSession <CimSession[]>] [-Path <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-Volume cmdlet will return a Volume object or a set of Volume objects that match the specified criteria.


Note: Dynamic volumes are supported only by the following cmdlets:
Repair-Volume (chkdsk), Optimize-Volume (defrag), and Format-Volume (format) on basic disks and storage spaces.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=306997
Get-Disk
Get-Partition
Format-Volume
Optimize-Volume
Repair-Volume
Set-Volume

REMARKS

<

Examples


Example 1: Get all volumes

PS C:\>Get-Volume



This example returns all volumes on all partitions, on all disks.




Example 2: Get the volume for a particular drive letter

PS C:\>Get-Volume -DriveLetter C
DriveLetter FileSystemLabel FileSystem HealthStatus SizeRemaining Size
----------- --------------- ---------- ------------ ------------- ----
C NTFS Healthy 23.61 GB 465.42 GB



This example gets the Volume object for drive letter C.