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.
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:
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.
This becomes more and more important with growing OST files and OneDrive on Demand.