Resume allowing unused features to be removed from Windows Server 2019
Using the following PowerShell snipet to remove the binaries from unused roles and features worked great in Windows Server 2012-2016.
Get-WindowsFeature | Where-Object {$PSItem.InstallState -eq "Available"} | Uninstall-WindowsFeature -Remove
When used in conjunction with Features on Demand this results in smaller install footprints for VMs and VM templates. Doing so in Windows Server 2019 breaks future CU installs due to the new PSFX update engine (error code 0x800F0982 PSFXEMATCHINGCOMPONENTNOT_FOUND is returned).
