Hi Philip SH,
this error message in the CBS.log indicates that there is a missing assembly in the Microsoft-Windows-Foundation-Package. This can cause issues when trying to remove roles on your Server 2016 VM.
To resolve this issue, you can try running the System File Checker (SFC) tool to repair any corrupted system files. To do this, open an elevated Command Prompt and type "sfc /scannow" and press Enter. This will scan your system for any corrupted files and attempt to repair them.
If the SFC tool does not resolve the issue, you can try running the Deployment Image Servicing and Management (DISM) tool to repair the Windows image. To do this, open an elevated Command Prompt and type "DISM /Online /Cleanup-Image /RestoreHealth" and press Enter. This will scan your system and attempt to repair any issues with the Windows image.
If neither of these solutions work, you may need to reinstall the Microsoft-Windows-Foundation-Package to resolve the missing assembly issue.
Hope it helps.
Kind regards,
Lei