< Back

Get-PartitionSupportedSize

Wed Jan 30, 2019 6:02 pm

NAME Get-PartitionSupportedSize



SYNOPSIS

Returns information on supported partition sizes for the specified Disk object.





SYNTAX

Get-PartitionSupportedSize [-DiskNumber] <UInt32[]> [[-PartitionNumber] <UInt32[]>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>]

[<CommonParameters>]



Get-PartitionSupportedSize [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -DriveLetter <Char[]> [<CommonParameters>]



Get-PartitionSupportedSize [-CimSession <CimSession[]>] [-Offset <UInt64[]>] [-ThrottleLimit <Int32>] -DiskId <String[]> [<CommonParameters>]



Get-PartitionSupportedSize [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Get-PartitionSupportedSizes cmdlet returns information on supported partition sizes for the specified Disk object.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DiskId <String[]>

Specifies an ID used to identify a disk in the system.



Required? true

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DiskNumber <UInt32[]>

Specifies an array of disk numbers. These represent the disks for which to get partitions.



Required? true

Position? 1

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DriveLetter <Char[]>

Specifies a letter used to identify a drive or volume in the system.



Required? true

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Offset [<UInt64[]>]

Specifies the starting offset, in bytes.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PartitionNumber [<UInt32[]>]

Specifies the number of the partition.



Required? false

Position? 2

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Partition

http://msdn.microsoft.com/library/windo ... 30524.aspx





You can pipe a Partition object to the InputObject parameter.





OUTPUTS

System.UInt64









Example 1



PS C:\\>Get-PartitionSupportedSizes -DiskNumber 3 -PartitionNumber 2

MinimumSize MaximumSize

----------- -----------



This example is not fully implemented and does not include size values.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816393

Get-Partition