No operating system is bulletproof. Many things can go wrong - sometimes files go messy on hard drive after a power failure, sometimes a bad software or driver installation causes trouble, sometimes user deletes something important, etc.
This section will cover the most annoying problems - Windows will not start or run properly. The remedy may be as simple as pressing a few keyboard keys, or it may take some time or even hours of repairing system files or performing a non-destructive reinstallation.
For other kind of problems, such as CD-s not playing, videos choppy, printer not working, etc, visit Microsoft Fix it Solution Center for easy and automated troubleshooting.
You can also access troubleshooting tools by booting from Windows installation DVD (applies to Windows Vista and later only).
If you need to boot from a CD/DVD or USB drive, see the Computer boot order article for instructions on how to change PC boot order.
Things to know and try before starting troubleshooting
Always check for error and warning events in Event Viewer, this might help a lot. To identify file system corruption or hard drive problems, look for events with ID 7 and 55 in System log.
In Safe Mode, ignore events such as DCOM "This service cannot be started in Safe Mode" (Event ID 10005) and events with ID 7001. These events happen because Safe Mode starts only essential services to help fighting malware or stop problematic programs from loading.
Windows Vista, 7, 8 and 8.1 users can use Reliability Monitor for troubleshooting applications that crash or stop responding.
All Windows versions have the built-in DirectX Diagnostic Tool for troubleshooting display and audio driver errors - just use keyboard shortcut Windows Key+R to open Run dialog, type dxdiag and click OK.
In Windows XP, a prompt for checking WHQL digital signatures appears first, click Yes there.
Open Display tab and verify that Notes field contains "No problems found". If there are problems, you must reinstall or update display driver.
If you experience frequent computer crashes (aka Blue Screen of Death, BSOD), analyze crash dump files with WhoCrashed Home Edition to see which program, driver or hardware component is the cause.
Then try testing your computer's memory with Memtest86+. It doesn't help much when you spend hours fixing your Windows and then a defective memory module ruins the whole thing again. And believe me, defective memory is often the root of all evil when your Windows does not start, or acts erratically.
In case your Windows is able to start and you can log in successfully, you should try running System File Checker first. This program verifies that files required to run Windows are in tact and if neccessary, replaces damaged, missing or malware-modified files.
Please note that System File Checker is not able to run properly in Windows Safe Mode.
Windows XP users need the Windows CD that came in product box or with the computer. You can use friend's CD here, but make sure it matches the version of your Windows XP - do not use Windows XP Home CD-s for repairing Windows XP Professional installations and vice versa. Do I need to say that you cannot use Windows Vista, 7 or 8/8.1 DVD-s for repairing Windows XP files?
Windows Vista and later versions have a special folder where required files are cached, so the installation DVD is not usually required.
In Windows XP, open Run dialog using keyboard shortcut Windows Key+R or by opening Start menu and clicking Run. Type cmd and click OK.
In Windows Vista and 7, open Start menu and type cmd into Search box. Right-click cmd.exe (or cmd if you have file extensions hidden) and select Run as administrator. This will open so-called elevated command prompt.
In Windows 8 and 8.1, open Start screen and type "cmd" - Search pane opens automatically (you can also open Search pane using keyboard shortcut Windows Key+Q). Right-click Command Prompt and click Run as administrator in App bar.
Windows Vista, 7 and 8/8.1 users will meet the most beloved User Account Control. Click Continue or Yes here.
Now, in the black Command Processor window, type sfc /scannow and press Enter key to run the command.
In Windows XP, a separate Windows File Protection window opens. In a minute or so, another window pops up, asking for Windows XP CD. Insert it now and the latter dialog disappears automatically.
Please note that you do not really need Windows XP Service Pack 3 CD, the original one will do just fine.
In Windows Vista, 7, 8 and 8.1, the whole process continues within the same Command Prompt window. The checking and repairing takes quite some time in all Windows versions - 30 minutes or more is absolutely normal.
If no missing or damaged files were detected or no restart is required to complete the changes, the Windows File Protection window closes automatically in Windows XP. You can check System log in Event Viewer for entries that have "Windows File Protection" written in the Source column.
In Windows Vista and newer, "Windows Resource Protection did not find any integrity violations" appears. This means that all files were present and in tact.
In case some damaged or missing files were detected and replaced, the message reads "Windows Resource Protection found corrupt files and successfully repaired them".
If a restart is required for changes to take effect, an additional line "The system file repair changes will take effect after the next reboot" appears.
You can then safely close the Command Prompt window. If neccessary, restart your computer and see if Windows works better now.
In case you get an error message "Windows Resource Protection could not perform the requested operation" during the scan or "Windows Resource Protection found corrupt files but was unable to fix some of them" after the scan, this most probably means that permissions of a file do not allow checking or replacing it.
To resolve this, first type cd /D %windir% and press Enter. This will open the folder where Windows is installed. Second, type icacls * /T /Q /C /RESET and press Enter. This will revert file and folder permissions in your Windows folder to their defaults. You do get really many "Access is denied" messages in the process, but this is expected. Please use the correct capitalization in the commands!
After this, try running sfc /scannow again.
If you still get the same error, use the chkdsk /r command to run an exhaustive disk check. Because Windows is running from the same drive, you will see the "Chkdsk cannot run because the volume is in use by another process" error. Press Y and then press Enter to schedule the disk check for the next restart.
Restart your computer right away, but be aware that the full disk check might take from 30 minutes to several hours to complete. Do not reboot your computer during the test!
After the check has completed and you are back in Windows, launch System File Checker once again.
If it fails this time too, you should run Startup Repair.
To see the System File Checker log in Windows Vista, 7, 8 and 8.1 (beware, it is a pretty technical and large one!), you need to run Notepad with elevated rights (right-click, Run as administator), browse to the C:\Windows\Logs\CBS folder and open the CBS.log file. Opening the file normally ends with an "Access Denied" message.
Accessing Advanced Boot Options with F8 key
Pressing F8 key during boot-time opens Advanced Boot Options menu for Windows XP, Vista and 7. It offers several troubleshooting options: Last Known Good Configuration, Safe Mode, VGA Mode, etc. Always try Last Known Good Configuration and Safe Mode first if Windows is not able to start properly.
In Windows 8 and 8.1, the F8 key trick is not available by default and the Last Known Good Configuration option has been removed altogether. Accessing the Advanced Options menu requires starting Windows and then rebooting to Advanced startup via PC Settings app. Alternatively, hold down Shift key while clicking Restart.
Advanced repair options also become available if Windows 8/8.1 is not able to start three times in a row, or if Automatic Repair fails.
If really required, you can still temporarily enable the good old F8 key trick in Windows 8 and 8.1. Boot from Windows 8/8.1 installation media or Recovery Drive/System Repair Disc and use bcdedit as described in this article. Please note that this legacy feature should be used during troubleshooting only - it can cause problems on UEFI (newer version of BIOS) systems.
- If you changed advanced system settings or edited registry manually, try Last Known Good Configuration first (only in Windows XP, Vista or 7). If that does not help, try changing the settings back by going to Safe Mode or using System Restore.
- If you installed some new software, try uninstalling it in Safe Mode or use System Restore.
- If you updated or installed a driver, try Last Known Good Configuration (in Windows XP, Vista and 7 only) first. If that is of no help, try rolling back the driver or removing the new driver in Safe Mode or use System Restore.
- If you added some hardware, such as modem, hard drive, sound card, memory module (RAM), etc, remove it from your computer and try starting Windows normally. If Windows starts and works fine, read the manual that came with the new hardware or consult the seller of the hardware. Sometimes you need to take some certain steps before installing a new hardware. Not all hardware works with every computer!
- If you added a new video (graphics) card or replaced your monitor and Windows does not start or screen goes blank, try using Enable VGA Mode, aka Enable low-resolution video mode and changing screen resolution to minimum or recommended level.
- If you get a blue screen (also known as Blue Screen of Death / BSOD) and automatic restart, use WhoCrashed for crash dump analysis. Also, files on your hard disk might be messed up - start Windows in Safe Mode, or use Recovery Console (only in Windows XP), Repair Your Computer (in Windows Vista and 7) or Recovery Environment (in Windows 8 and 8.1) for repairing file system errors.
My Data Recovery CD/USB can also help here.
- If Windows works, but is slow or many programs crash, use the non-destructive reinstall (available in Windows XP and Windows 7) method that most probably repairs your Windows without deleting your programs, files and settings. Windows 8 and 8.1 offer the Refresh your PC option that keeps your files and personalization settings, but removes programs and apps that were not installed using Windows Store unless you've created a custom recovery image.
- If nothing else works, you can still recover your files using Puppy Linux (in case hard disk itself is fine) or my Data Recovery CD/USB - you can recover data from damaged disks, restore deleted partitions and files, and much more with the bootable disc or USB drive. To rescue your files, you must also have a USB flash drive or external hard drive with sufficient space.
After you store your important files elsewhere, reinstall Windows XP, Vista or 7. In Windows 8 and 8.1, you can use the Reset your PC option to prevent complete reinstallation.
When nothing helps, grab your last backup (you DO have a backup?)
Sadly, there are times when Windows cannot be recovered to a previous state - if your hard drive fails completely and no data can be recovered. You will have to buy a new hard drive unless it is covered by warranty. Or maybe some virus or malware deletes most important things, such as SAM (Security Accounts Manager) database or registry so that Windows knows nothing about users or itself anymore. In that case read the Restore disk image using EaseUS Todo Backup Free in Windows or Restore a System Image in Windows 7, 8 and 8.1 article to restore your Windows disk. To restore latest versions of your documents, read the Restore files and folders using EaseUS Todo Backup Free in Windows or Restore files and folders in Windows 7, 8 and 8.1 article.
If Windows detects that it did not shut down correctly the last time, it opens Windows Error Recovery options after you turn on your computer.
If this happens for the first time or if you know that there was a power failure or something else unintentional caused your computer to shut down unexpectedly, you can select Start Windows Normally with arrow keys on your keyboard and press Enter key.
In case this error screen appears repeatedly, you should select Safe Mode instead: this could be just a problem with messy files on hard drive and Safe Mode always checks and repairs disk errors before starting.
Here Windows failed to start. If you just added some new hardware to your computer, you should try removing it and starting Windows again to see if it now works fine. If it does, consult the manual of your new hardware to see the installation steps and compatibility for your version of Windows.
If there was a power failure while starting Windows, select Start Windows Normally.
If you haven't changed anything:
- In Windows XP, start Safe Mode and verify Windows is able to start. If not, boot from my Data Recovery CD and run a full disk check.
- In Windows Vista, boot your computer from Windows Vista DVD, select your regional settings and then click Repair your computer. Follow instructions.
- In Windows 7, select Launch Startup Repair (recommended) and follow instructions there.
"NTLDR is missing" (in Windows XP) or "BOOTMGR is missing" (in Windows Vista and 7) means that something or someone has deleted the file and Windows has no idea from which hard disk or partition to start up.
Windows XP users should boot from my Data Recovery CD and run a full disk check. If this does not help, perform a non-destructive reinstall.
Windows Vista and 7 users should boot from Windows DVD, select their regional settings and then click Repair your computer.
You should run full virus and malware scans immediately after Windows works again to prevent this situation from repeating itself.
In case Windows repeatedly restarts and you see a blue screen flashing before each restart, you probably have not enough time to read the message. To read the message and find out what's causing the behavior, you should disable automatic restart on system failure.
When your computer starts, you might see some full-screen logo or black screen with gray texts such as "AMI", "Intel", "Testing Memory", "Hard disk", etc. Press F8 key on your keyboard repeatedly right after you see such screen disappear. This will open Windows Advanced Boot Options menu.
Use Arrow Down key to select Disable automatic restart on system failure and press Enter key.
In case of failure, the blue screen will not disappear anymore and you can see the details of error.
Here is one infamous example of Blue Screen of Death (BSOD) - error code 0x0000007B meaning "Inaccessible boot device" - Windows cannot use the hard disk it is installed on. This usually happens after you change/update/remove drivers for a hard disk controller; or you install a new hard disk controller (IDE, PATA, SATA, SAS or SCSI) card and connect your hard disk to it, but there are no drivers available for the new controller in Windows.
You must press power or reset button on your computer to continue.
If you're lucky and you only changed or removed drivers, you can achieve success by selecting Last Known Good Configuration from Advanced Boot Options menu (use the F8 key again after you turn your computer back on) the next time.
In case Last Known Good Configuration does not work, Windows XP users should boot from my Data Recovery CD and run a full disk check. If this does not resolve the problem, do a non-destructive reinstallation and install proper drivers (you might need to press F6 key while Windows setup is loading to add new drivers in case Windows XP has no clue about the disk controller).
Windows Vista users can also boot their PC from Windows DVD and use the Repair Your Computer option.
Windows 7 users should try Repair Your Computer from the Advanced Boot Options menu or Launch Startup Repair from the Windows Error Recovery menu.
If you changed or added a disk controller, disconnect the hard drive from the new controller and connect the cable back to motherboard connector (or where it used to be before). Then boot to Windows and install proper drivers for the new controller. Also consult the manual of the new controller for detailed installation instructions. Then turn off your computer and connect hard drive to the new controller and try booting to Windows again.