What is the PowerShell equivalent to DISM
's /Cleanup-Image
in this command:
DISM /Image:%mounted_image% /Cleanup-Image /StartComponentCleanup /Resetbase /ScratchDir:%scratch_dir%
Within Use DISM
in Windows PowerShell, there is no corresponding PowerShell cmdlet, so is this Repair-WindowsImage
command the equivalent to the above command?
Repair-WindowsImage -Path $mounted_image -RestoreHealth -ScratchDirectory $scratch_dir