Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9946

PowerShell equivalent to DISM's /Cleanup-Image in Windows 10

$
0
0

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

Viewing all articles
Browse latest Browse all 9946

Trending Articles