Allow resizing existing VHDX-profiles
It would be great to be able to increase the maximum size of an already existing VHDX-profile without first having to remove the old profile or migrating to a new profile.

5 comments
-
Chris Marreel commented
maybe implement this with e.g. a "minimum freespace". If there is e.g. less than 2GB freespace/whitespace in the VHDX-container, then don't do a shrink. But there there is more than 2GB freespace/whitespace, then you should have the option to do the shrink. The resize-action will take time, so it will slow down the logon-action... And we should avoid to have longer longer logontimes.... So maybe at logoff / Merge of the VHDX ?
-
Adam Stadnick commented
Additionally, the migrate command has a bug in the syntax - the order of the arguments matters a great deal, or the command will migrate without adjusting the size. This was a MASSIVE pain for us to figure out.
-
Kasper Johansen commented
There are a few different scripts out there already, here is my approach:
https://github.com/kaspersmjohansen/FSLogix/tree/master/Expand-Container -
Anonymous commented
You can change the size of the .vhd(x) files via diskpart commands. If you want to do all of your profiles at once, you just need a maintenance window where nobody is using their profiles. Attach, resize, expand, done - can be easily scripted.
-
Anonymous commented
This becomes more and more important with growing OST files and OneDrive on Demand.