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?