How to check NTP settings
When possible, computers should be configured to use NTP servers advertised by DHCP. When this is not possible, on-campus systems may be manually configured to use the SCS NTP servers listed in the table below. Off-campus systems should use servers from the
NTP Pool Project
and/or the public servers
CLOCK-1. CS. CMU. EDU
and
CLOCK-2. CS. CMU. EDU
. Systems receiving SCS Computing Facilities software support will receive the required configuration automatically and should not be adjusted.
SCS NTP Servers
(on-campus use only):
NTP in Windows 7
Windows 7 systems benefit from using the full set of NTP servers, but cannot be configured to obtain NTP server information from DHCP. Because the control panel does not allow setting multiple servers, settings on these systems must be verified and changed from a command prompt. Systems which are members of the SCS domain will receive NTP configuration via domain group policy and should not be reconfigured.
To verify the NTP server list:
- Click on the Windows button
- In the “Search programs and files” box, type
cmd
and press Enter. - If necessary, select
cmd
from the list of search results. - In the command prompt window, enter
w32tm /query /peers - Check that an entry is shown for each of the servers listed above.
To manually configure the list of NTP servers:
- Click on the Windows button
- In the “Search programs and files” box, type
cmd - Right-click on
cmd
in the list of search results. - Select
Run as administrator - Select
Yes
in the UAC dialog. - In the command prompt window, enter
w32tm /config /update /manualpeerlist:"NEW-PARSLEY. SRV. CS. CMU. EDU NEW-SAGE. SRV. CS. CMU. EDU NEW-ROSEMARY. SRV. CS. CMU. EDU CORIANDER. SRV. CS. CMU. EDU FENNEL. SRV. CS. CMU. EDU PAPRIKA. SRV. CS. CMU. EDU" - Enter
w32tm /query /peers - Check that an entry is shown for each of the servers listed above.
NTP in Windows 10
Windows 8 systems benefit from using the full set of NTP servers, but cannot be configured to obtain NTP server information from DHCP. Because the control panel does not allow setting multiple servers, settings on these systems must be verified and changed from a command prompt. Systems which are members of the SCS domain will receive NTP configuration via domain group policy and should not be reconfigured.
To verify the NTP server list:
- Hold the windows key and press
X
to bring up the Power User menu. - Select
Command Prompt - In the command prompt window, enter
w32tm /query /peers - Check that an entry is shown for each of the servers listed above.
To manually configure the list of NTP servers:
- Hold the windows key and press
X
to bring up the Power User menu. - Select
Command Prompt (Admin) - Select
Yes
in the UAC dialog. - In the command prompt window, enter
w32tm /config /update /manualpeerlist:"NEW-PARSLEY. SRV. CS. CMU. EDU NEW-SAGE. SRV. CS. CMU. EDU NEW-ROSEMARY. SRV. CS. CMU. EDU CORIANDER. SRV. CS. CMU. EDU FENNEL. SRV. CS. CMU. EDU PAPRIKA. SRV. CS. CMU. EDU" - Enter
w32tm /query /peers - Check that an entry is shown for each of the servers listed above.
NTP in macOS
MacOS X systems currently cannot be configured to obtain NTP server information from DHCP. Systems which are enrolled in the SCS Facilities JSS service receive correct NTP configuration via that service and should not be reconfigured. Other systems must be configured manually.
To verify the NTP server list setting:
- Open System Preferences
- Click
Date & Time - Click on the
Date & Time
tab. - Verify that
Set Date & Time automatically
is checked. - In the server name field, enter
NEW-PARSLEY. SRV. CS. CMU. EDU NEW-SAGE. SRV. CS. CMU. EDU NEW-ROSEMARY. SRV. CS. CMU. EDU CORIANDER. SRV. CS. CMU. EDU FENNEL. SRV. CS. CMU. EDU PAPRIKA. SRV. CS. CMU. EDU
Debian, Ubuntu
Debian and Debian-derived systems, including Ubuntu, will use NTP servers from DHCP by default when DHCP is used without NetworkManager. If NTP servers from DHCP are being used, they will be listed in the file
/var/lib/ntp/ntp.conf.dhcp
. If that file does not exist, then NTP servers are not being obtained from DHCP.
Unfortunately, Ubuntu systems use use NetworkManager by default, and there is a bug which prevents NTP configuration from being updated in this case. Systems running the Facilities-supported Dragon Ubuntu 12.04 or 14.04 contain a fix for this problem. On systems which are not Facilities-supported, one of two workarounds is required. Either the list of servers may be configured manually, or a simple script may be installed to enable automatic operation.
To manually configure the list of NTP servers
, edit the file
/etc/ntp.conf
. Remove or comment out any lines beginning with the keywords “server” or “peer”, and replace them with the lines shown below. Then run
service ntp restart
.
server new-parsley.srv.cs.cmu.edu iburst server new-sage.srv.cs.cmu.edu iburst server new-rosemary.srv.cs.cmu.edu iburst server coriander.srv.cs.cmu.edu iburst server fennel.srv.cs.cmu.edu iburst server paprika.srv.cs.cmu.edu iburst
#!/bin/sh
if [ "$2" = "up" -a -n "${DHCP4_NTP_SERVERS}" ] ; then export reason=BOUND export new_ntp_servers="${DHCP4_NTP_SERVERS}" sh /etc/dhcp/dhclient-exit-hooks.d/ntp
elif [ "$2" = "dhcp4-change" -a -n "${DHCP4_NTP_SERVERS}" ] ; then export reason=RENEW export new_ntp_servers="${DHCP4_NTP_SERVERS}" sh /etc/dhcp/dhclient-exit-hooks.d/ntp
elif [ "$2" = "down" ] ; then export reason=STOP sh /etc/dhcp/dhclient-exit-hooks.d/ntp
fi
exit 0 - Disable and then re-enable the network interface, using either
nmcli
or the NetworkManager applet menu. Note that the menu location and appearance will vary depending on the Ubuntu version and desktop environment in use. - Restart NetworkManager by entering the command
service network-manager restart - Reboot the system.
NTP in Fedora & RHEL
Fedora and its derivatives, including RHEL, will use NTP servers from DHCP by default when DHCP is used.
For this to work, the setting
PEERNTP=NO
must
not
be present in
/etc/sysconfig/network
, or in the interface-specific file
/etc/sysconfig/network-scripts/ifcfg-DEV
, where
DEV
is the interface name.
Содержание
Утилита w32tm – Управляем службой времени в Windows
Как настроить NTP-сервер с помощью w32tm?
Как проверить статус синхронизации с NTP-сервером с помощью w32tm?
Проверяем текущее состояние службы времени и статус последней успешной синхронизации с NTP-сервером:
w32tm /query /Status
Как проверить доступность NTP-сервера с помощью w32tm?
Отсылается 5 запросов на UDP порт 123 NTP-сервера следующим образом:
w32tm /stripchart /computer:DC01.ad.holding.com /dataonly /samples:5
Ответ от NTP-сервера получим примерно такой:
microsoft-windows/win-command-line-tools/w32tm-manage-windows-time-service.txt
· Последнее изменение: 14.07.2020 15:09 —
Алексей Максимов
Hope this post finds you in good health and spirit.
Network Time Protocol (NTP) is a networking standard for time synchronization over packet-switched, variable-latency data networks between computer systems. N TP aims to synchronize all participating computers to Coordinated Universal Time within a few milliseconds (UTC),

Windows Time service
All machines under Active Directory Domain Services management have their time and date synchronised via the Windows Time service (W32Time) (AD DS). The many tools and options for managing the Windows Time service are covered in this article.
A machine that is a member of a domain automatically synchronises time using a domain hierarchy of time sources. You can reconfigure a computer to start automatically sourcing its time from the domain hierarchy if it has previously been manually configured to synchronise from a particular time source, possibly because it had not previously connected to a domain.
The majority of domain-joined computers synchronise time from the domain hierarchy using a time client type of NT5DS. The domain controller, which serves as the root forest domain’s primary domain controller (PDC) emulator operations master, is an exception to this rule. It is set up for the PDC emulator operations master to synchronise time with an outside source.
How to check system’s current NTP configuration?
W32tm.exe is the preferred command-line tool for configuring, monitoring, or troubleshooting the Windows Time service.
w32tm /query /status
w32tm /query /status gives you information such as:
stratum
leap indicator
precision
last sync
NTP server
poll interval

Configure two time servers for the client.
w32tm /config /manualpeerlist:"ntpserver.windowstechno.com clock.adatum.com" /syncfromflags:manual /update
Set the client to automatically synchronized time with a domain source.
w32tm /config /syncfromflags:domhier /updatestop w32time
w32time
Check the client time settings.
W32tm /query /computer:controller-PC /configuration
A list of the W32time configuration settings for the client is shown in the command’s output.
So, that’s all in this blog. I will meet you soon with next stuff . Have a nice day !!!
Recommended content
How to manage Kerberos protocol changes related to CVE-2022-37967
What is SOX Compliance and What Are the Requirements?
Common Types of Cyber Attacks and How to Prevent Them
What Is Active Directory and How Does It Work?
RODC Installation Guide- Step by step guide to install read only domain controller
RODC Filtered Attribute Set
Installing and configuring a RODC in Windows Server-2012
How to find the GUID of Domain Controller
Understanding Group Policy Preferences
Group Policy Verification Tool GPOTool Exe
Group Policy Health Check on Specific Domain Controller
Netlogon Folder in Active Directory
Custom Attributes in Active Directory
Tombstone Lifetime of My Active Directory Forest
Computers AD Site From the Command Line
Active Directory Database Integrity
Disabling and Enabling the Outbound Replication
DFS Replication Service Stopped Replication
Strict Replication Consistency
The replication operation failed because of a schema mismatch between the servers involved
Troubleshooting ad replication error 8418 the replication operation failed because of a schema mismatch between the servers
Replication information in txt file
Repadmin Replsummary
Enabling the outbound replication

- Home
- News
- How To Use The DISM Restore Health Command To Repair Windows
However, the SFC commands may fail sometimes, so you should turn to the DISM commands instead since they are more effective. On this page, let’s begin with the introduction to DISM and the basic DISM restore health
commands.
MiniTool Power Data Recovery Trial Click to Download
Clean & Safe
DISM Restore Health & DISM Check Health
What Is DISM
DISM.exe, also known as a DISM Image Servicing Utility file, will always target your chosen area when it’s running on your PC. It’s necessary to introduce the common DISM command switches before talking about how to use the Windows DISM tool.
How to fix DISM “the source files could not be found” in Windows 10?
DISM.exe /Online /Cleanup-Image /Restorehealth
DISM.exe cannot foresee a path unless you specify a switch in the command. What are the common DISM.exe switches and what are the functions of them?
DISM Restore Health Switches: DISM /Online /Cleanup-Image /Restorehealth
Image switch and Online switch
If you add a /Image switch to a DISM.exe command, the path will be restricted to the root directory of an offline Windows image or virtual hard disk; it’s available for DISM offline repair Windows 10. However, if you specify a /Online switch (DISM.exe /Online), the command will target files for your operating system online instead of an offline image.
By giving a Cleanup-Image switch (DISM.exe /Online /Cleanup-Image), you can ask the DISM tool to do two things:
- Target the running operating system.
- Clean and recover operations and undertakings on the system.
The Restorehealth switch in a DISM command tells the tool to scan the running operating system for corrupt files and attempt to repair them automatically.
DISM.exe /Online /Cleanup-Image /ScanHealth
DISM Check Health Switches: DISM /Online /Cleanup-Image /ScanHealth
The Online switch and Cleanup-Image switch in the DISM /Online /Cleanup-Image /ScanHealth command does the same work as mentioned in the DISM /Online /Cleanup-Image /Restorehealth command. Well, what will the ScanHealth switch do? Actually, it tells the Windows DISM tool to execute a progressive scan for finding problems in the operating system.
See what you can do if
DISM /Online /Cleanup-image /Restorehealth is stuck
How to Run DISM to Restore Health or Check Health
Step 1: Run Command Prompt as Administrator
- Click on the Start
button in the lower left corner. Also, you can press the Start
key on the keyboard. - Scroll down in the Start menu to find the Windows System
folder. - Expand the folder and right click on Command Prompt
. - Select More
-> Run as administrator
.
Step 2: Type Correct Command and Execute It
- To let DISM tool check the system for corruption and fix any problems it finds automatically, you should type DISM /Online /Cleanup-Image /RestoreHealth
and press Enter
. - If you only want to perform a quick check, please type DISM /Online /Cleanup-Image /CheckHealth
and press Enter
. - To perform a more advanced scan to check if your OS image has any problems, you should type DISM /Online /Cleanup-Image /ScanHealth
and press Enter
.
How to fix the problem when DISM failed on a Windows computer?
About The Author
This tutorial offers some ways to allow you check hard drive or USB flash drive health for free in Windows 10. You can check the detailed guides. Still, if you lost some important data in your hard drive or USB drive, you can use the professional data recovery software from MiniTool
to easily recover lost data for free.
- How do I check external USB drive health?
- How to check my hard drive health Windows 10?
If you find your hard drive or USB flash drive can’t work well and wonder how to check hard drive or USB drive health in Windows 10, you can try some of the free ways below.
This post introduces how to check USB flash drive or hard drive health for free with Windows 10 CHKDSK
or Scandisk utility. You can also use the best free hard drive partition manager MiniTool Partition Wizard
to easily check and repair hard disk
errors in Windows 10.
Besides, if you mistakenly deleted or unexpectedly lost some important data in your hard drive or USB flash drive, you can use the best free data recovery software
(MiniTool Power Data Recovery) to easily recover the deleted/lost files for free.
How to Check Hard Drive Health (Internal/External HDD, USB) in Windows 10
Method 1. Use Windows 10 CHKDSK Utility
Improper use or mechanical shock of drive can cause logical corruption and failure, physical scratches and damages, or other disk errors to hard drive. When things go wrong with your hard drive or USB, you can try the simple method first to check hard drive health: use Windows 10 CHKDSK
tool to check and fix hard disk errors.
Tip:
This method works with computer local hard drive, as well as external hard drive and USB flash drive. To check errors in external HDD or USB, you should connect the external hard drive or USB to your Windows 10 computer at first.
Step 2.
In Command Prompt window, you can type the command chkdsk *: /f
, and hit Enter
key on the keyboard. Replace “*” with the actual drive letter
of the target drive. The CHKDSK tool will start checking the hard drive or USB health, namely, it will scan and fix
detected errors in the external hard drive or USB.
Step 3.
After CHKDSK finishes the hard disk health check and repair, you can type Exit
or click Close
icon to close Command Prompt window.

Method 2. Use Scandisk to Check USB/Hard Drive Health
Windows offers another disk error checking tool Scandisk which allows you to check and fix hard disk errors. You can check below how to check hard drive health or USB health with Scandisk.
Step 1.
You can click This PC
or press Windows + E to open File Explorer window. In the Devices and Drives
section, you can right-click the target drive you’d like to scan and choose Properties
.
Step 2.
Next you can tap Tools
tab, and click Check
button under Error checking
section.

Step 3.
In the pop-up Error Checking window, you can ignore the “You don’t need to scan this drive” message and click Scan drive
to start scanning the drive for errors. If errors are found, you can decide if you want to fix them.
Method 3. Use MiniTool Partition Wizard
To check hard drive or USB health, the third-party free hard drive partition manager – MiniTool Partition Wizard – is also professional. It also works for SSD health check
.
MiniTool Partition Wizard can detect and fix disk file system
errors, find hard disk bad sectors, test hard drive speed
, analyze hard drive space usage.
Besides, MiniTool Partition Wizard also allows you to easily create/resize/extend/format/wipe hard drive partitions, convert partition format, copy disk, migrate Windows 10 OS to SSD, and more.
Free download the free hard disk health check software MiniTool Partition Wizard on your Windows 10 computer, and check the guides below on how to check hard drive health Windows 10.
MiniTool Partition Wizard Free Click to Download
Clean & Safe
Step 1.
Launch MiniTool Partition Wizard to enter into its main interface. Right-click the partition on the hard drive (internal or external) or USB drive, and select Check File System
.
Step 2.
In the pop-up Check File System
window, you can choose Check & fix detected errors
option, and click Start
button.
Step 3.
If you want to check bad sectors on the drive, you can right-click the target partition and choose Surface Test
option. MiniTool Partition Wizard will start checking if there are any bad sectors on the hard drive or USB drive.

If your USB flash drive or external hard drive is not showing up in Windows 10, you can check the tutorials below for some solutions:
Fix: External Hard Drive Not Showing Up Or Recognized
Fix USB Flash Drive Not Recognized & Recover Data
If you meet problem when trying to eject USB or external hard drive in Windows 10, you can check this tutorial: 12 Ways to Fix Problem Ejecting USB Mass Storage Device Win 10
.
Click to Tweet
How to Recover Data from Your Hard Drive or USB
If your USB or external hard drive has problems and you lost some data on it, you can use the professional data recovery software to recover data and files after you use one the three ways above to check hard drive/USB health and fix errors.
MiniTool Power Data Recovery is a special data restore tool for Windows 10. It enables you to easily recover deleted files
and lost data from computer local hard drive, external hard drive, USB, SSD, SD card, etc.
Note:
If you mistakenly deleted some files or lost some important data on the drive, you should stop using that drive immediately, and timely use data recovery software to retrieve deleted/lost files. This is because it’s very hard to recover overwritten files
if the disk is overwritten.
Download and install MiniTool Power Data Recovery on your Windows 10 computer, and check the easy steps below for how to recover data from hard drive, USB, etc.
MiniTool Power Data Recovery Trial Click to Download
Clean & Safe
Step 1.
If you want to recover data from USB pen drive
or external hard drive, you should connect it to your computer beforehand. After that, you can launch MiniTool Power Data Recovery to access its main UI.
Step 2.
You can choose the target partition under Logical Drives
or select the device under Devices
tab and click Scan
to start scanning all data including deleted or lost files on the device.

Step 3.
After it finishes the data scan, you can check the scan result to find deleted/lost files, and click Save
button to set a new device or destination to store the recovered deleted/lost files.
Back Up Data and Files Before You Format the Hard Drive or USB
After you use the ways above to check hard drive/USB health, and recover data from the drive, you can format the drive if problems still exist.
Before you format the drive, you should copy and back up all needed data. For external hard drive and USB drive, you can connect them to your computer and copy files to another safe device.
If you want to format a computer hard drive, you should not format the OS partition. If you really need to format the system partition
, you should migrate Windows 10 OS
to another HDD or SSD.
As the professional free PC system and file backup software, MiniTool ShadowMaker
helps you easily back up Windows system, files and folders, partitions or whole disk content at fast speed. Besides, you can also use MiniTool ShadowMaker to easily backup and restore Windows system
.
MiniTool ShadowMaker Trial Click to Download
Clean & Safe
Step 1. Launch MiniTool ShadowMaker and click Keep Trial button to enter into main UI. Click Connect button under This Computer.
Step 2. Next you can click Backup module at the toolbar. Click Source section to choose the source files and folders, or partitions you want to backup. And click Destination section to choose the destination path to store the backups.
Step 3. When everything is settled, you can click Back up Now button to start backing up the selected files or partitions to the destination.

After you backed up the needed data, you can use MiniTool Partition Wizard, Disk Management
, or Diskpart
command line to easily reformat hard drive for free
if needed.
Verdict
Click to Tweet
Check Hard Drive/USB Drive Health FAQ
How do I check my hard drive health Windows 10?
How do I check for bad sectors on my hard drive?
To check for bad sectors on hard disk, you can run chkdsk /r
command in Command Prompt window, or, use MiniTool Partition Wizard’s Surface Test function to accomplish the task.
How do I know if my smart hard drive is dying?
How can I check the health of my USB hard drive?
You can use CHKDSK, Scandisk, MiniTool Partition Wizard or WMIC command to check the health of USB hard drive. As for how to use WMIC command to check hard disk, you can press Windows + R, type cmd, and press Enter to open Command Prompt. Then you can type wmic
command and hit Enter. Continue to type diskdrive get status
command, and hit Enter. You can see if the hard drive status is OK.
DISM /online /cleanup-image /restorehealth gets stuck is a common issue when you want to use it to find and fix system issues. In this post, MiniTool Software
will introduce some easy and useful solutions to fix DISM /online /cleanup-image /restorehealth.
What Is DISM /online /cleanup-image /restorehealth?
What Is DISM?
The full name of DISM is Deployment Image Servicing and Management (DISM.exe). It is a command-line tool that is used to service and prepare Windows images for Windows PE, Windows Recovery Environment (Windows RE), and Windows Setup. So, you can use it to repair your Windows 10/11 image.
If your Windows 10/11 has missing or corrupted files, you can use DISM to repair the image. D ISM is built into Windows. It is available through the command line or Windows PowerShell.
About DISM /online /cleanup-image /restorehealth
DISM /online /cleanup-image /restorehealth is a DISM command that runs a scan for corruption and repairs your system problems. It is OK to run DISM /online /cleanup-image /restorehealth or DISM.exe /online /cleanup-image /restorehealth.

What if DISM /online /cleanup-image /restorehealth Takes Forever?
Running DISM /online /cleanup-image /restorehealth or DISM.exe /online /cleanup-image /restorehealth is not a quick process. It will take some minutes or even hours to finish the whole process.
At times, you may find that DISM /online /cleanup-image /restorehealth takes too long. You did not even wait until the end.
Here are two cases:
Dism.exe /Online /Cleanup-Image /Restorehealth stuck at 62.3 %
My laptop was shutting down all of a sudden and hence I run the Dism.exe /Online /Cleanup-Image /Restorehealth from the cmd prompt. however, it is now stuck at 62.3 % for the last 12 hours. Please let me know what should I do now.
dism /online /cleanup-image /restorehealth stuck at image version.
Is DISM /online /cleanup-image /restorehealth stuck? If yes, how to fix DISM /online /cleanup-image /restorehealth? We collect some useful solutions and introduce them in this article.
Wait and See
The duration of the DISM restorehealth depends on the amount of damage that needs to be repaired. The more corruption, the longer it will take to repair them. As mentioned above, the whole process may even last for several hours. So, you can just wait and see.
If the percentage of the progress bar has not changed for a long time, you can consider taking measures to fix the problem.
Check the Command You Have Entered
To make the process run normally, you need to make sure the command is correct. Any extra spaces can influence the result. So, just go to check the command.
Restart Your Computer
When using your computer, a lot of processes and services are running in the background, although some of them are not necessary. So many running background processes and services can not only slow down your computer but also cause some unexpected problems like DISM /online /cleanup-image /restorehealth takes forever.
It is easy to close unnecessary services and programs: you just need to restart your computer. Then, your device can run in a clean state again. Next, you can run DISM /online /cleanup-image /restorehealth or DISM.exe /online /cleanup-image /restorehealth and see if the command can work normally.
Check if Your Computer Has Enough RAM
If the RAM on your computer is not enough, you may encounter issues when you run DISM commands. 4 GB RAM should be enough for your Windows 10 or Windows 11 computer. If your RAM is less than 4 GB, DISM /online /cleanup-image /restorehealth can easily get stuck when running.
To solve the problem, you can upgrade or replace the RAM with a larger one. Here is how to upgrade or replace the RAM on a computer
.
Run Command Prompt as Administrator


Step 1: Click the search icon from the taskbar and search for cmd.
Run CHKDSK
You can run CHKDSK to check and fix found errors on your system.
Step 1: Click the search icon from the taskbar and search for cmd
or C ommand Prompt
.
Step 3: Type chkdsk C: /f /r
into Command Prompt and press Enter
to run this command. In this step, you can replace C with your drive letter.
After these steps, you can run DISM /online /cleanup-image /restorehealth or DISM.exe /online /cleanup-image /restorehealth in Command Prompt again and see if it can complete successfully.
If the issue persists, you can try the next solution.
Run SFC
You can use the System File Checker (SFC) tool to repair missing or corrupted system files on your Windows 10/11 computer.
Step 2: Type sfc /scannow
into Command Prompt and press Enter
to run it.
Step 3: Wait until the whole scan process ends.
Tip: The sfc /scannow command will scan all protected system files and replace corrupted files with a cached copy located in a compressed folder at %WinDir%\System32\dllcache. Here, the %WinDir% placeholder represents the Windows operating system folder like C:\Windows.
Update Windows 10/11 to the Latest Version
DISM /online /cleanup-image /restorehealth is stuck or DISM.exe /online /cleanup-image /restorehealth is stuck can also happen when your Windows 10/11 is outdated. So, just update your Windows system and see if the DISM stuck issue is solved.
Microsoft always releases Windows updates via Windows Update in the Settings app. You can go to Windows Update to check for updates and install the available updates on your device.
How to check for updates on Windows 10?
Step 1: Press Windows + I
to open the Settings app.
Step 2: Go to Update & Security > Windows Update
.
Step 3: If there are available updates there, you can click Download and install
to install them on your device. But if you cannot find any updates but you are sure your system is not the latest version, you can click the Check for updates
button to manually get the update.

Step 4: Restart your Windows 10 computer to complete the whole update process.
How to check for updates on Windows 11?
Step 1: Press Windows + I
to open the Settings app.
Step 2: Select Windows Update
from the left menu.
Step 3: Download and install all the available updates listed on the right panel. However, if you do not see any updates, you can click the Check for updates
button to check if there are available updates. If yes, install them on your device.

Step 4: Restart your computer to complete the whole update process.
After installing the latest Windows update, you can run DISM /online /cleanup-image /restorehealth or DISM.exe /online /cleanup-image /restorehealth again and see if the process can complete successfully.
Rescue Your Missing Files on Windows 10/11
There should be many important files like photos, videos, movies, and documents on your computer. Your files may get lost or deleted for some reason. For example, you just deleted them by mistake but you also emptied Recycle Bin. Or perhaps, your drive becomes inaccessible and you want to use the files in it immediately. The situation can be even worse: you cannot start your computer successfully, let alone use the data in it.
If you want to rescue your files on a Windows 10/11 computer, you can try MiniTool Power Data Recovery. This is a piece of professional data recovery software
that can work on all versions of Windows. With this software, you can recover data from data storage devices including computer internal hard drives, external hard drives, SD cards, memory cards, USB flash drives, pen drives, and more.
This software has a free edition. You can use this free file recovery tool
to recover up to 1 GB of data.
MiniTool Power Data Recovery Free Click to Download
Clean & Safe
After downloading and installing this software on your device, you can use these steps to retrieve your files:
Step 1: Open the software to enter its main interface.
Step 2: This software will show you all the drives it can find. You need to find the drive you want to recover data from, then hover over that drive, and click the Scan
button to start the scanning process. You can also switch to the Devices
tab and select the whole disk to scan.

Step 3: When the scanning ends, you can see the scan results. You will see three paths: Deleted Files
, Lost Files
, and Existing Files
. You can open the paths to find the files you want to recover. If you still remember the name of the file you want to recover, you can enter its name into the search box at the top-right corner and find the file by its name. Besides, you are allowed to preview 70 types of files to guarantee that the file you select is your needed one.
You need to download the package of the previewer if you use the free edition for the first time.

Step 4: Select your needed files, then click the Save
button and choose a suitable path to save these files.

You can use the recovered files immediately.
If you want to use this software to recover more files, you need to use a full edition.
How to recover data from an unbootable Windows computer?
If you want to recover data from an unbootable computer, you need to use the bootable edition of this software.
First, you need to use MiniTool Media Builder to create a bootable USB drive
, then you can set your computer to boot from that bootable USB drive
and recover your data.
>> See how to recover data from a Windows computer that won’t boot
.
Wrapping Things up
DISM /online /cleanup-image /restorehealth is stuck? You should not worry too much about it. The methods mentioned in this article can help you solve the problem. In addition, if you want to recover your files, you can try MiniTool Power Data Recovery.
![]()
Если в Windows 10 возникают проблемы, это может быть связано с отсутствием или повреждением файлов. Это руководство расскажет вам о восстановлении системы с помощью командных инструментов обслуживания образов развёртывания и управления ими (DISM) и средства проверки системных файлов (SFC).
В Windows 10 обслуживание образов развертывания и управление ими – это инструмент командной строки, предназначенный для администраторов для подготовки, изменения и восстановления образов системы, включая среду восстановления Windows, программу установки Windows и Windows PE (WinPE). Однако любой желающий может также использовать этот инструмент с локальным образом восстановления для решения типовых системных проблем.
Обычно, когда вам нужно устранить конкретную ошибку, определить, почему устройство перестаёт загружаться правильно, или решить проблемы с производительностью, вы можете использовать инструмент команды System File Checker для сканирования и замены отсутствующих или повреждённых системных файлов с помощью образа для восстановления. Проблема использования этого подхода заключается в том, что если один или несколько файлов Windows 10 в образе повреждены, команда SFC не сработает. Если вы столкнулись с такой проблемой, можно использовать образ «install.wim» с DISM для восстановления образа, а затем использовать инструмент SFC для исправления установки без необходимости повторно переустанавливать Windows с нуля.
В этом руководстве по Windows 10 рассказывается, как использовать инструменты DISM и SFC с командной строкой, чтобы вернуть компьютер в рабочее состояние без необходимости переустановки системы.
Предупреждение. Команды, описанные в этом руководстве, являются безопасными, но так как вы будете вносить изменения в систему, рекомендуется создать полную резервную копию, прежде чем продолжать.
Как использовать DISM для восстановления образа Windows 10
Инструмент DISM для Windows 10 предлагает три варианта восстановления образа, включая «CheckHealth», «ScanHealth» и «RestoreHealth», которые вы можете запускать по порядку. В зависимости от серьёзности проблемы можно использовать параметр «RestoreHealth» для исправления локально доступного образа с использованием различных исходных файлов.
Команда DISM с опцией CheckHealth
Параметр CheckHealth в DISM позволяет быстро определить, есть ли какие-либо повреждения внутри локального образа Windows 10. Никакого ремонта при этом не выполняется.
Чтобы проверить образ Windows 10 на наличие проблем с DISM, выполните следующие действия:
- Откройте меню «Пуск».
- Введите в поиск cmd, нажмите правой кнопкой мыши на верхний результат и выберите параметр «Запуск от имени администратора».
- Введите следующую команду, чтобы выполнить быструю проверку, и нажмите ввод:
DISM /Online /Cleanup-Image /CheckHealth

После выполнения этих действий DISM запустится и проверит любые повреждения данных, которые могут потребовать исправления.
Команда DISM с опцией ScanHealthОпция ScanHealth выполняет более расширенное сканирование, чтобы определить, есть ли в образе системы какие-либо проблемы.
- Откройте меню «Пуск».
- Search for cmd, right-click on the top result and select the “Run as administrator” option.
- Type the following command to perform an advanced DISM scan and press enter:
DISM /Online /Cleanup-Image /ScanHealth

Advanced Scan may take a few minutes to check and determine if the Windows 10 image needs to be repaired.
DISM command with RestoreHealth option
If there are problems with the system image, you can use DISM with the RestoreHealth option to automatically scan and fix common problems.
To fix problems with Windows 10 images using the DISM tool, follow these steps:
- Open the start menu.
- Search for cmd, right-click on the top result and select the “Run as administrator” option.
- Type the following command to restore the Windows 10 image and press enter:
DISM /Online /Cleanup-Image /RestoreHealth

Note:
if the command hangs at some point, that’s fine. After a few minutes, the process will complete successfully.
After completing these steps, Deployment Image Servicing and Management will connect to Windows Update to download and replace corrupted files (if any).
Troubleshooting DISM with the install image. wim
The DISM command usually works without problems, but if you have problems replacing corrupted files or you are not connected to the Internet, you will need to provide another image using the “Source” option. You can usually use an install.wim or install.esd file from another computer, a bootable installation media, or a Windows 10 ISO file. However, make sure the files match the version, edition, and language of the version of Windows 10 you’re trying to fix.
Download Windows 10 ISO file
If you need to use a third-party file source, the Media Creation Tool is recommended to download a fresh copy of Windows 10.
- Go to the Microsoft Support website https://www.microsoft.com/en-us/software-download/windows10
. - Click the Download Tool Now button.
- Double click the MediaCreationToolxxxx.exe file to start installation.
- Click the Accept button.
- Select “Create installation media (USB stick, DVD or ISO file) for another PC”.

- Click the Next button.
- Click the Next button again.

- Select the “ISO File” option.

- Click the Next button.
- Select a destination to save the Windows 10 ISO file.
- Click the Save button.
- Click on the link to open the file location in explorer.

- Click the Finish button.
- Double-click the Windows.iso file to mount the image.
- In the “This PC” section, confirm the drive letter to mount in the panel on the left.

After completing these steps, you can continue with DISM using the Source option to restore your local Windows 10 image.
Fix Windows 10 Recovery Image
To run the Deployment Image Servicing and Management Tool using an image from an alternate source (install.wim), do the following:
- Open the Start menu.
- Search for cmd, right-click on the top result and select the “Run as administrator” option.
- Type the following command to restore the Windows 10 image and press enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources \install.wim

In the command, replace “F” with the drive letter corresponding to the ISO mount point in File Explorer.
- Optional.
Type the following command to limit the use of Windows Update and press enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:E\Sources\install.wim /LimitAccess
- Optional.
Type the following variation of the previous command to perform the same task and press enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:E:\Sources\install.wim:1/LimitAccess
In the command, change F:\Sources to the path to the install.wim file.
After completing these steps, the command will scan and fix the most common problems using the “install.wim” file that you provided as an alternative source.
Troubleshooting DISM with an ESD Image
If you have an encrypted install.esd image, you can use it to repair corrupted files in Windows 10.
To use DISM with the “install.esd” image file as a source for Windows 10 recovery, follow these steps:
- Open the start menu.
- Search for cmd, right-click on the top result and select the “Run as administrator” option.
- Type the following command to restore the image using the “install.esd” file and press enter:
DISM /Online /Cleanup-Image /RestoreHealth / Source:C:\ESD\Windows\sources\install.esd

In the command, replace C:\ESD\Windows\sources with the path that matches the location of the “.esd” file (if any).
- Optional.
Type the following command to limit the use of Windows Update and press enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd /LimitAccess
- Optional.
Type the following variation of the previous command to perform the same task and press enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\ESD\Windows\sources\install.esd:1 /LimitAccess
- Optional.
Type the following command to use the install.esd file located on another drive and press enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.esd
In the command, replace F:\Sources with the path to the location of the “install.esd” file.
After doing these, DISM will repair corrupted files using the files included in the “install.esd” image.
How to run SFC to fix problems in Windows 10
The instructions above are for fixing problems with the system image, not with the current installation of Windows 10. After restoring the image to a healthy state, you must use the System File Checker (SFC) command-line tool to restore the current system.
To use the SFC tool to repair your Windows 10 installation, follow these steps:
- Open the start menu.
- Search for cmd, right-click on the top result and select the “Run as administrator” option.
- Type the following command to restore the installation and press enter:

Tip:
if errors are found, you can run the command three times to make sure everything has been fixed.
DISM (Deployment Image Servicing and Management)
is a powerful command-line tool to repair Windows images and fix system issues. If you’re having fatal problems and unable to run apps or even use your system properly then in such terrifying situations, the DISM command in Windows comes off very handy.
This article covers a full guide about the DISM command, how to use it, when to use it, and things you need to be careful about when using this tool.
The DISM command is already built into Windows.
You can run the command from either the Command Prompt
or Windows Powershell
.
When Should You Use It?
- Getting Blue Screen of Death(BSOD)
- Application failures
- System crashing
- Windows features not working as they should
However, before running the DISM command, you should first try the SFC command. Don’t know about the SFC command? No worries. We’ll cover that as well.
What is the SFC Command
System File Checker (SFC)
is another built-in tool for Windows to repair
missing and corrupted system files. It’s used to scan Windows and restore those files. You can troubleshoot many defections using this command.
Repair System Files With the SFC Command
You can use many options with the SFC command depending on what you want to do with the file(s). For example
- /scannow
→ Scans and repairs all protected operating system files - /verifyonly
→ Only scans files and doesn’t repair them - /scanfile=file
→ Scans and repairs only a specific file
For this tutorial, we’ll use the /scannow
option.
sfc /scannow 
It will start scanning your PC for any corrupted files
. Usually, it takes a couple of minutes to scan everything so wait a bit.
If everything goes smoothly and it doesn’t find anything fishy, you’ll get the message “ Windows Resource Protection did not find any integrity violations.
”

If you get a “ Windows Resource Protection found corrupt files but was unable to fix some of them
” message instead, try using the command in Safe Mode
.
Once this command repairs the corrupted files using local images, you can find the log files here.
Repair System Files With the DISM Command
If the SFC command failed to fix your issues, then it’s time to use the DISM command.
Just like the SFC command, the DISM command also has a few options. These are
- CheckHealth
- ScanHealth
- RestoreHealth
You need to use these options in this particular order. We’ll show you how to use each option with the DISM command and what they do.
CheckHealth Option With The DISM Command
The CheckHealth
option helps you find any defect with the Windows image. It doesn’t do any repairs though.
DISM /Online /Cleanup-Image /CheckHealth 
ScanHealth Option With The DISM Command
ScanHealth is a more advanced option. With ScanHealth, you can scan the Windows image for any corruption and check whether the image is repairable or not.
DISM /Online /Cleanup-Image /ScanHealth 
The full scanning will take some time. So wait for it to finish successfully.
DISM Command – RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth However, if you want to fix an offline image with a mounted image as a repair source, try this command;
If you don’t add any source, the default location of Features on Demand
gets used. You can also add
LimitAccess
to the command so that the Windows Update
is not used as the repair source. This is a sample command if you add source and /LimitAccess;
If you’re a beginner and don’t have much knowledge about all these, we recommend you use the first command among the three.

It may take longer than the previous scans. It may even get stuck at 20% or 40%. Don’t panic as this is normal.
After the process is finished successfully, you’ll get the “ The restore operation completed successfully.
” message.
You can find the log files here;
Common Problems After /RestoreHealth is used
After using the above command, you may face some problems. Here we highlight two common problems you may face. If you face any other problems, let us know in the comments.
“The source file could not be found”
problem
If you get this message, here’s how you can fix it.
- Step-1: Run the Command Prompt as administrator.
- Step-2: Type the command DISM /Online /Cleanup-Image /StartComponentCleanup
and press ENTER. - Step-3: Now type DISM /Online /Cleanup-Image /RestoreHealth
and press ENTER. - Step-4: Type this command sfc /scannow
and press ENTER. - Step-5: Restart your PC to see if your problem is solved or not
Error: 4448
problem
This error is caused by a corrupted system file
. You can fix this with an in-place system upgrade. You may also want to check for hard disk issues and whether your PC is able to boot successfully.
Error: 87 problem
This problem is mainly caused for two reasons.
- Not typing the command properly. For example, if someone forgets to add spaces and types DISM/Online/Cleanup-Image/RestoreHealth.
- If you forgot to run the Command Prompt
as administrator.
What to do if DISM doesn’t work?
If your system problems still persist after running the SFC and DISM commands, there are a few ways you can go.
If you have created a restore point previously, then try a System Restore. Chances are that your PC was in good health when you created the restore point.
Alternatively, you can take a backup and try reinstalling Windows again. You won’t lose files such as pictures or documents. However, you will have to reinstall all the programs.
Why Use the DISM Command
Using the DISM command, you can
- Check for damaged Windows features and system files.
- Identify and fix many Windows Operating System related bugs and issues (BSOD, application crash, system functions not working).
- Repair files that System File Checker or Windows Resource Protection found but failed to repair.
- Restore the system image so you can repair the Windows installation.
FAQ
What is the DISM Command?
Deployment Image Servicing and Management (DISM) is a built-in command-line tool used for servicing and preparing Windows images.
You can use DISM to service a Windows image (.wim) or a virtual hard disk
(.vhd or .vhdx).
How do I run the DISM command?
You can run through the Command Prompt or Windows Powershell. Here’s how you do it using the Command Prompt
–
- Step-1: Go to search. You can use the Window Key + S
keyboard shortcut. - Step-2: Start typing Command Prompt in the search bar.
- Step-3: Rick-click on Command Prompt
and press Run as administrator
. - Step-4: Type in the DISM command.
Should I run DISM or SFC first?
You should run SFC first. And then DISM if SFC fails to resolve the problem. S FC tool is used for checking missing system files and restoring them from the cache. On the other hand, the DISM command repairs Windows images by getting a replacement from the Windows servers.
What is a DISM cleanup image?
The /Cleanup-Image option is added with the DISM command when it’s run. This is used for fixing defects in Windows images. This is the syntax of how the /Cleanup-Image option is used:
Dism /Online /Cleanup-Image /RestoreHealth In this tutorial, we’ve covered everything you need to know to use the DISM command so you can fix issues with your Windows PC. If we’ve missed any part or you’re facing any problem while fixing it, let us know in the comments.




