dism命令使用教程_Dism命令教程修复Windows

dism命令使用教程

dism命令使用教程

Deployment Image Servicing and Management (DISM) is a tool that is used to scan and fix the WIM store issues which can affect Windows system files. DISM is a command-line tool and used with the Administrative privileges which means normal users can not use it. It can run currently running Windows operating system files as well as .vim , .vhd .vhdx files. Dism can be run in  MS-DOS or PowerShell without a problem.

Deployment Image Servicing and Management (DISM)是一种工具,用于扫描和修复可能影响Windows系统文件的WIM存储问题。 DISM是一种命令行工具,具有“管理”权限,这意味着普通用户无法使用它。 它可以运行当前正在运行的Windows操作系统文件以及.vim.vhd .vhdx文件。 Dism可以在MS-DOS或PowerShell中运行而不会出现问题。

Dism命令需要提升的权限(管理员模式) (Dism Command Requires Elevated Permissions (Administrator Mode))

Before using Dism we need to know that Dism requires Administrative privileges. For example, when we try to get help information with the /? we will get Error: 740 Elevated permissions are required to run DISM.. So we will start the MS-DOS terminal with Administrative privileges in normal user desktop.

在使用Dism之前,我们需要知道Dism需要管理特权。 例如,当我们尝试使用/?获得帮助信息时/? 我们将得到Error: 740 Elevated permissions are required to run DISM. 。 因此,我们将在普通用户桌面中以“管理”权限启动MS-DOS终端。

Dism Command Requires Elevated Permissions (Administrator Mode)
Dism Command Requires Elevated Permissions (Administrator Mode)
Dism命令需要提升的权限(管理员模式)

First, we will write the cmd command to the Start Menu like below and then right-click to the Command Prompt which will open a menu. Then click to the Run as administrator which will open the MS-DOS in Administrator mode.

首先,如下所示,我们将cmd命令写入“ Start Menu ,然后右键单击“ Command Prompt ,这将打开一个菜单。 然后单击以Run as administrator身份Run as administrator ,它将以管理员模式打开MS-DOS。

Dism Command Requires Elevated Permissions (Administrator Mode)
Dism Command Requires Elevated Permissions (Administrator Mode)
Dism命令需要提升的权限(管理员模式)

Dism帮助 (Dism Help)

Dism provides different imaging commands to enumerate, install, uninstall, configure, update. We can list these commands and get information about them with the /? option like below.

Dism提供了不同的映像命令来枚举,安装,卸载,配置,更新。 我们可以列出这些命令并使用/?获得有关它们的信息/? 如下所示的选项。

Dism Help
Dism Help
Dism帮助

扫描图像以更快地发现问题(Scan Image For Problems Faster)

Windows operating system components can be scanned with the following command. /CheckHealth option will scan faster way with fewer details.

可以使用以下命令扫描Windows操作系统组件。 /CheckHealth选项将以更少的详细信息更快地进行扫描。

> dism /Online /Cleanup-Image /CheckHealth
Scan Image For Problems Faster
Scan Image For Problems Faster
扫描图像以更快地发现问题

扫描图像以查看速度较慢和详细的问题(Scan Image For Problems Slower and Detailed)

If we want to scan a more detailed way the Windows files or Image we can use /ScanHealth option. This option process will take some time to complete but will provide a more detailed scan result.

如果我们想以更详细的方式扫描Windows文件或图像,可以使用/ScanHealth选项。 此选项过程将花费一些时间,但会提供更详细的扫描结果。

> dism /Online /Cleanup-Image /ScanHealth
Scan Image For Problems Slower and Detailed
Scan Image For Problems Slower and Detailed
扫描图像以查找速度较慢和详细的问题

自动扫描和修复(Scan and Repair Automatically)

If there are problems we can repair them automatically with the /RestoreHealth option.

如果有问题,我们可以使用/RestoreHealth选项自动修复。

> dism /Online /Cleanup-Image /RestoreHealth
Scan and Repair Automatically
Scan and Repair Automatically
自动扫描和修复

指定Windows分区(Specify Windows Partition)

While using dism the current partition will be used to scan Windows operating system files. We can also specify different partitions for Windows operating system files. We will specify the partition with the /Image: option by providing a partition letter. In this example, we will scan the Windows operating system files in partition D:.

使用dism时,当前分区将用于扫描Windows操作系统文件。 我们还可以为Windows操作系统文件指定不同的分区。 我们将通过提供分区字母来使用/Image:选项指定分区。 在此示例中,我们将扫描分区D:的Windows操作系统文件。

> dism /Online /Image:D /Cleanup-Image /ScanHealth

从指定的WIM文件修复 (Repair From Specified WIM File)

While repairing we can use a drive or path in order to specify WIM file. We can specify the WIM file location with the /Source: option and provide the path. In this example, we will use D:\install.wim as WIM file to repair.

修复时,我们可以使用驱动器或路径来指定WIM文件。 我们可以使用/Source:选项指定WIM文件的位置并提供路径。 在此示例中,我们将使用D:\install.wim作为WIM文件进行修复。

> dism /Online /Cleanup-Image /RestoreHealth /Source:D:\install.wim
LEARN MORE  How To Read And Filter Windows Update Log In Command Line
了解更多信息如何在命令行中读取和过滤Windows Update登录

翻译自: https://www.poftut.com/dism-command-tutorial-to-repair-windows/

dism命令使用教程

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: DISM (Deployment Image Servicing and Management) 是 Windows 系统中的一个命令行工具,用于管理和修复 Windows 映像(包括 Windows 系统映像和 Windows 安装映像)。 使用 DISM 命令,你可以在线或离线状态下添加、删除或更新 Windows 映像中的组件,以及执行其他映像管理任务。 例如,你可以使用 DISM 命令修复系统文件损坏或丢失,恢复系统功能,添加驱动程序和更新、升级 Windows 系统,以及预配和部署 Windows 映像。 要使用 DISM 命令,你需要在命令提示符下输入 "dism" 命令,并跟随选项和参数。例如,要查看 DISM 命令的帮助信息,你可以输入以下命令: ``` dism /? ``` 要查看 Windows 映像中已安装的组件,你可以输入以下命令: ``` dism /online /get-features ``` 有关 DISM 命令的更多信息,请参阅 Microsoft 文档:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-command-line-options-reference ### 回答2: DISM (Deployment Image Servicing and Management) 是一个命令行工具,用于在 Windows 操作系统中更改、更新和修复映像文件。它主要用于管理操作系统映像文件(.wim 格式)和虚拟硬盘文件(.vhd 或 .vhdx 格式)。 DISM 可以用于各种任务,包括添加或删除驱动程序、更新 Windows 功能和组件、修复操作系统映像文件中的损坏或错误、安装本地化包等等。 通过 DISM 命令,用户可以执行各种操作。以下是一些常用的 DISM 命令实例: 1. “dism /online /cleanup-image /scanhealth”:该命令用于扫描操作系统映像文件的完整性,以检测是否存在任何损坏或错误。 2. “dism /online /cleanup-image /restorehealth”:该命令用于修复操作系统映像文件中的损坏或错误。它会尝试从 Windows 更新服务器或本地安装媒体中获取所需的文件,并代替损坏或错误的文件。 3. “dism /online /enable-feature /featurename:NetFx3 /all /source:D:\sources\sxs /LimitAccess”:该命令用于安装 .NET Framework 3.5 功能。"source" 参数指定安装文件的位置,"LimitAccess" 确保只使用指定源进行安装。 4. “dism /online /get-drivers”:该命令用于获取当前操作系统中所有已安装驱动程序的信息。 5. “dism /online /add-package /packagepath:C:\Updates\KB123456.cab”:该命令用于安装一个以 .cab 格式打包的更新程序包。 这些只是 DISM 命令的一部分示例,它提供了广泛的功能和选项,可以帮助管理员轻松管理和维护 Windows 操作系统映像文件。使用 DISM 命令需要管理员权限,可以在命令提示符(CMD)或 PowerShell 中执行。 ### 回答3: cmd DISM命令是一种用于部署或映像服务和管理工具的命令行工具。DISM即Deployment Image Servicing and Management,它允许用户在Windows操作系统中进行一些高级的映像管理操作。 通过CMD中的DISM命令,可以执行许多有用的任务,包括: 1. 安装、修复、更新和卸载Windows操作系统的组件、驱动程序和升级补丁。 2. 备份和还原映像文件,以及创建自定义的Windows安装映像文件。 3. 检查和修复映像文件的一致性,以确保操作系统的稳定性。 4. 配置Windows部署服务,以便于访问、管理和部署映像文件。 5. 启用或禁用Windows功能,如语音识别、Hyper-V虚拟化等。 使用DISM命令的格式如下:dism /option [参数]。其中,/option代表要执行的DISM操作,而[参数]是与操作相关的选项和值。 例如,要检查映像文件的完整性,可以执行以下命令dism /online /cleanup-image /checkhealth。这将扫描并报告映像文件中的任何错误或损坏。 总之,CMD中的DISM命令是一种强大而灵活的工具,能够帮助用户管理和维护Windows操作系统的映像文件。它在系统管理、系统维护和Windows部署方面具有重要的作用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值