parameter set cannot be resolved using the specified named parameters

I have two drives "C and E" with 20 and 30 GBs of storage each, when i try to crete a new fixed vhd with source as my C drive in E drive...i am getting error

New-VHD -Path E://Fixed.vhd -Fixed -SourceDisk 0 -SizeBytes 25GB

March 20th, 2015 5:55pm

Try this:

New-VHD -Path E:\Fixed.vhd -Fixed -SourceDisk 0


Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 6:43pm

It would certainly be helpful if you posted the error?  Your question also doesn't make much sense.

March 20th, 2015 7:10pm

Hi,

You can't use -SizeBytes with -Fixed and -SourceDisk. See the parameter sets listed here:

https://technet.microsoft.com/en-us/library/hh848503.aspx

Relevant snippet:

Parameter Set: FixedWithSource
New-VHD [-Path] <String[]> -Fixed -SourceDisk <UInt32> [-AsJob] [-BlockSizeBytes <UInt32> ] [-ComputerName <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 7:14pm

Mike - Good catch.
March 20th, 2015 7:36pm

Mike - G
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 8:00pm

My brain didn't see it until you posted.

We need a forms based method of creating topics.  This would make getting info easier for the posters and it would help to categorize the posts.  Freeform is so 20th century.

March 20th, 2015 8:08pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics