你好,
确实无法在08R2上使用,DISM这算是系统镜像所带的功能,系统默认的。虽然在Win7和08R2上是支持DISM命令的,但是对于下方我了解的这些参数,不论是清理的还是检查的都无法使用,官网给出的信息是“can’t be used when servicing a version of Windows that is earlier than Windows 8 or Windows Server 2012 images"
/CheckHealth, /ScanHealth, /RestoreHealth, /Source,
和 /LimitAccess
/StartComponentCleanup
/AnalyzeComponentStore
同时官网给出的信息是部署映像服务和管理(DISM)可以在Windows 8.1、Windows Server 2012 R2、Windows 8、Windows Server®2012、Windows 7和Windows Server 2008 R2映像上工作。然而,完整的功能只有在你维护Windows 8.1或Windows Server 2012 R2镜像时才可用。这是因为服务任何Windows映像所需的文件和资源位于映像中,而不是在技术人员的计算机上。DISM将检测并使用目标图像中可用的资源来更新图像。
我们可以在下方连接中看到:The DISM /ScanHealth, /CheckHealth, and /RestoreHealth arguments
can only be used when servicing Windows® 8 or Windows Server® 2012 images.
https://docs.microsoft.com/zh-cn/previous-versions/windows/it-pro/windows-8.1-and-8/hh824869%28v%3dwin.10%29
所以对于这个检查健康的状态,dism无法加一些参数,但是通常在win7/08上都使用sfc /scanow的命令来修复检查。磁盘就是chkdsk.
平时我用的多的就是关于windows update的,dism/ online/ get package,
Dism /online /cleanup /spsuperseded
希望对您有帮助,如果回答是有帮助的,
请将其标记为答案,
可以帮助其他有相同问题的社区成员,
并快速找到有用的答复。
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.