Last updated on November 17th, 2026 at 03:03 pm
No single Windows 11 button tests every part of a PC, so on a desktop, laptop or tablet, use three built-in tools in order: the health report in Windows Security > Device performance & health, the device list in Device Manager, then the memory test you reach by searching Control Panel for Memory and selecting Diagnose your computer’s memory problems. For anything those tools can’t see, run the diagnostics your PC maker builds into the computer.
Back up and save your work
- Back up your files first. If a drive is producing errors, unusual noises or repeated file corruption, copy important files to another drive or to cloud storage before you run any test. A test can’t bring back data from a drive that fails halfway through.
- Save and close your work. The memory test and some disk checks run during a restart.
- Use an administrator account. Running the disk check command needs, at minimum, membership in the local Administrators group.
- Write down what goes wrong. Note the error message, the stop code on a blue screen, and what you were doing. This tells you which test to run and helps a repair technician later.
- Unplug hardware you added recently. For unexpected restarts, the first thing to try is shutting down the PC, removing the new hardware and trying again.
Which test should you run?
| Symptom | Start with |
|---|---|
| Blue screens, random restarts, apps closing on their own | Memory test, then Event Viewer |
| A device stopped working (sound, Wi-Fi, webcam, USB) | Device Manager |
| Slow file access, corrupted files, disk error messages | Back up, then chkdsk and the maker’s drive test |
| Laptop battery drains quickly | Windows Security health report, then a battery report |
| Graphics or sound problems in games | DirectX Diagnostic Tool |
| PC won’t start Windows at all | The PC maker’s preboot diagnostics |
How to run hardware diagnostics in Windows 11
Each step takes you further from a quick overview toward a specific part.
- Open the health report. Search the Start menu for Windows Security, open it, and select Device performance & health. The report covers four areas: Storage capacity, Battery life, Apps and software and Windows Time service. A green check means that area is fine. A yellow mark means there is an issue, and the report shows a recommendation for it.
- Look for device errors. Right-click the Start button and select Device Manager. Look through the list for any device marked with an exclamation point (!). Double-click the device type to expand it if needed.
- Read the error code. Right-click the marked device and select Properties. The Device status area shows a message and a code, such as Code 10 or Code 43. The troubleshooting section below explains the most common codes.
- Start the memory test. Open Control Panel from the Start menu, type Memory in its search box, and select Diagnose your computer’s memory problems. Windows asks when to run the test. It runs outside your normal desktop during a restart, so choose to restart only after your work is saved.
- Read the memory test result. After the test finishes and you sign in again, open Event Viewer from the Start menu and look in the System log for the MemoryDiagnostics-Results entry. It states whether memory errors were found.

Each part of the report is explained on Microsoft’s Device performance and health page. Keep in mind what it is: a summary of storage space, battery, software and clock issues. It doesn’t stress-test parts, so a clean report doesn’t prove the hardware is healthy.
Can running diagnostics damage my PC or delete files?
The read-only checks (the health report, Device Manager, chkdsk C: without parameters, dxdiag and the battery report) change nothing. A chkdsk repair writes to the drive, which is why a backup comes first, especially on a drive that already shows errors.
Should I install a PC health or optimizer app instead?
No. Avoid generic utilities that claim to diagnose and repair all hardware automatically. Stick with Windows tools and the diagnostics from your computer or component maker.
Check a drive for errors with chkdsk
Chkdsk is the Windows command that checks a drive’s file system. Run it when files are corrupted or Windows reports disk errors, and only after you have a backup.
- Search the Start menu for Command Prompt and open it as an administrator.
- Type chkdsk C: and press Enter. Used without extra parameters, chkdsk only displays the status of the drive and doesn’t fix anything, so this is a safe first look. Replace C: with another drive letter to check a different drive.
- If it reports problems, type chkdsk C: /f /r and press Enter. The /f parameter fixes errors on the disk. The /r parameter locates bad sectors and recovers readable information.
- For the drive Windows is installed on, you will see a message that chkdsk cannot run because the volume is in use, followed by a question about checking it the next time the system restarts. Type Y, press Enter, and restart the PC. The check runs before Windows loads.
Let the check finish. Interrupting chkdsk isn’t recommended, although stopping it shouldn’t leave the drive more corrupt than it was before. The full parameter list is in Microsoft’s chkdsk command reference.
Chkdsk repairs the file system and marks bad sectors. It can’t repair a drive that is physically wearing out. If errors keep coming back, contact the drive or PC manufacturer for the diagnostic tools they provide, and plan to replace the drive.
Check the battery, graphics and sound
Battery report
On a laptop or tablet, open Command Prompt, type powercfg /batteryreport and press Enter. Windows generates an HTML report of battery usage over the life of the system and saves it in the current folder shown in the Command Prompt window. Reading the capacity figures is covered in checking battery health in Windows 11.
DirectX Diagnostic Tool
Type dxdiag in the search box on the taskbar and select dxdiag from the results. The first time, the tool may ask whether to check if your drivers are digitally signed. The System tab lists system information, including the DirectX version. Select Save All Information… to create a file you can send to a support agent or game publisher.
Run your PC maker’s diagnostics
The diagnostics supplied by your PC’s manufacturer cover what the Windows tools can’t see. Preboot tests start before Windows loads, so they are also the option to use when Windows won’t start. For a noisy or overheating laptop, many of these tools also include a dedicated laptop fan test.
On a Dell computer, the documented steps are:
- Turn on the computer. At the Dell logo, press F12 several times until the One Time Boot Menu appears.
- Select Diagnostics. A quick test starts on its own.
- To test one part, press Esc during the quick test, select Advanced test, clear the select-all checkbox, pick the parts to test, and select RUN TEST. Checking Thorough mode runs a longer, more complete test.
- If a test fails, write down the error code. Dell error codes begin with 2000-, and Dell publishes reference tables for them.
The full Dell walkthrough is in its preboot diagnostics article. Other PC makers provide their own diagnostics, opened with a different key or a support app. Look up your exact model on the maker’s support site instead of guessing, because the method varies by brand and model.
How to confirm the result
- Memory: the MemoryDiagnostics-Results entry in the Event Viewer System log reports no errors.
- Devices: the exclamation point is gone in Device Manager and the Device status area no longer shows an error code.
- Drive: a repeat run of chkdsk C: finds no problems.
- Whole PC: the maker’s test finishes without an error code, and the original symptom stops.
A pass isn’t a guarantee. Parts can fail only when hot or only once in a while, and a short test can miss that. If the symptom continues, check the System log in Event Viewer for critical errors logged at the same time as the crash. Filtering for them is explained in checking event logs in Windows 11.
Device errors and missing health reports
Device Manager shows an error code
Microsoft’s Device Manager error code list gives a fix for each code. The common ones:
- Code 10 (This device cannot start): open the device’s Driver tab and select Update Driver. You may need the latest driver from the hardware maker’s website.
- Code 22 (This device is disabled): select Action, then Enable Device.
- Code 28 (The drivers for this device are not installed): right-click the device, uninstall it, then select Action and Scan for hardware changes to reinstall the driver.
- Code 43 (Windows has stopped this device because it has reported problems): uninstall the device and use Scan for hardware changes in the same way. If the code returns, the part itself may be faulty.
- Code 45 (this hardware device is not connected): nothing to fix. It clears when you plug the device back in.
Device performance & health is missing or won’t open
On a work or school PC, policy settings from your organization might prevent access to Device performance & health. Ask your IT department to run the checks. Software-side problems on your own PC, such as sound or printing, are better handled when you run a troubleshooter in Windows 11.
Chkdsk says the volume is in use
That is expected for the Windows drive. Answer Y to schedule the check and restart. If you don’t have administrator rights, chkdsk won’t run at all, so sign in with an administrator account.
Every test passes but the PC still crashes
Go back to the basic steps for unexpected restarts: remove recently added hardware, install the latest updates from Settings > Windows Update with Check for updates, and make sure the Windows drive has 10% to 15% of its space free. Then run the maker’s longer test. Faulty or mismatched memory, a failing power supply and motherboard faults are all known causes of hardware-related stop errors, and the last two don’t show up in Windows tools. It also helps to read the crash logs on Windows 11, because different stop codes from one crash to the next often point toward hardware.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Each guide follows Microsoft, Apple and Google’s own documentation and is updated when the steps change. Screenshots marked “Recreated” are illustrations of the real screens.