Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Convert a dynamic vhd to fixed vhd using Convert-VHD cmdlet

$
0
0

Hi folks,

I have dynamically expanding vhd. Now I want to convert it to fixed size vhd.

I used the  Convert-VHD  cmdlet, which works fine.

But if I give the source and want to overwrite my dynamic vhd to the fixed vhd,  it is throwing error, such the file exists.

Convert-VHD –Path "\path\to\vhd\mydata.vhd" –DestinationPath "\path\to\vhd\mydata.vhd" -VHDType Fixed -DeleteSource

Is there any other option (like -Force) available for this ?

Note: Without using a temp file and renaming, I hope we have a better solution

Thanks,

Saleem


Viewing all articles
Browse latest Browse all 8743

Trending Articles