I have a virtual machine, that has dynamically expanding vhdx as a C drive. Or 'thin provisioned' to speak in terms of other hyper-visors.
I'm running Windows server 2016 on it, as a DC to be exact. Over the time of two years the vhdx file grew; the size of the disk within the virtual machine lists as 18gb, while the vhdx file is around 128gb. The vhdx is to big.
What caused this?, and how can I shrink the size of the vhdx file.