You'd probably need DISM.

    DISM.exe /Online /Cleanup-image /Restorehealth