Hyper-V, can I "Expand" and "Shrink" a fixed VHDx?

The host is "Windows Server 2012 Standard" with Hyper-V enabled.
I created a Windows 2008 Server VM that includes two "fixed" VHDx, one for OS (C: drive), the other for DATA (D: drive)
Now I noticed that I have assigned too much space to D: drive. Can I shrink the corresponding "fixed" VHDx? And, in the future, can I expand it again?

To my understanding, a "fixed" VHDx is fixed, once it is created, it will not be expanded or shrinked. Am I correct?

Thanks!
LVL 1
Y YconsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Philip ElderTechnical Architect - HA/Compute/StorageCommented:
You need to shrink the partition within the Windows guest OS Disk Management first.

Once you have done that you can shrink the VHDX file.

TechNet: Online Virtual Hard Disk Resizing
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
use the powershell resize-vhd command
0
Y YconsultantAuthor Commented:
Thank you very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Virtualization

From novice to tech pro — start learning today.