Skip to content

Resize-Partition : Cannot process argument transformation on parameter 'Size' #298

@aoylerjha

Description

@aoylerjha

Powershell Windows ISE error when running Resize-Partition

$supportedSize = (Get-PartitionSupportedSize -DriveLetter K)
Resize-Partition -DriveLetter K -Size $supportedSize.SizeMax
Resize-Partition : Cannot process argument transformation on parameter 'Size'. Cannot convert the "System.Object[]" value of type
"System.Object[]" to type "System.UInt64".
At line:2 char:39

  • Resize-Partition -DriveLetter K -Size $supportedSize.SizeMax
  •                                   ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Resize-Partition], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Resize-Partition

Any recommendations? Insights?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions