Hi Alvin777,
Thanks for your post.
You can use the /Cleanup-Image
option to perform cleanup or recovery operations on the specified image.
Dism /Image:D:\ /Cleanup-Image /CheckHealth
Dism /Image:D:\ /Cleanup-Image /ScanHealth
Dism /Image:D:\ /Cleanup-Image /RestoreHealth
Please refer to this link for more details.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.