Windows 11修复损坏的 ISO 文件
sfc /scannow
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
以管理员权限运行命令提示符(PowerShell也行),运行以下指令,把wim镜像挂载到C:\REP目录下面:
ATTRIB C:\install.wim -R & DISM.exe /Mount-Image /ImageFile:C:\install.wim /Index:1 /MountDir:C:\REP
执行以下命令进行离线修复(可以不联网)
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\REP\windows /LimitAccess
sfc /scannow
卸载刚刚挂载的镜像,删除install.wim文件和C:\REP文件夹。
DISM.exe /Unmount-Image /MountDir:C:\REP /Discard
DISM:是Deployment Imaging and Management(部署映像服务和管理)的缩写。
Dism /online /Get-CurrentEdition #查看映像版本/当前版本
Dism /online /Get-TargetEditions #查看当前系统是否可升级,以及可升级版本