none
NEW-PARTITION DOESNT WORK RRS feed

  • Question

  • Hello,

    i am encountering a problem with New-Partition Disknumber 5 -UseMaximumSize

    I am using ISE as admin, am getting the following error:

    New-Partition : Cannot process argument transformation on parameter 'DiskNumber'. Cannot convert value "Disknumber" to type "System.UInt32[]". Error: "Cannot convert value "Disknumber" to 
    type "System.UInt32". Error: "Input string was not in a correct format.""
    At line:1 char:15
    + New-Partition Disknumber 5 -UseMaximumSize
    +               ~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [New-Partition], ParameterBindingArgumentTransformationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,New-Partition

    The disk is disk 5, an external usb 3 device.

    Anyone who can help me with this and tell me what is going wrong? thank you.

    Wednesday, February 20, 2019 1:39 PM

Answers

  • You missed the hyphen in front of the paramter DiskNumber!  ;-)  .... it should be -DiskNumber

    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    Wednesday, February 20, 2019 1:44 PM