26. Troubleshooting and Repairing Problems

A long time ago, somebody proved mathematically that it was impossible to make any reasonably complex software program problem-free. As the number of variables increases, as the interactions of subroutines and objects become more complex, and as the underlying logic of a program grows beyond the ability of a single person to grasp all at once, errors inevitably creep into the code. Given Windows 10’s status as possibly the most complex software ever created, the bad news is that there are certainly problems lurking in the weeds. However, the good news is that the overwhelming majority of these problems are extremely obscure and appear only under the rarest circumstances.

This doesn’t mean that you’re guaranteed a glitch-free computing experience—far from it. Third-party programs and devices cause the majority of computer woes, either because they have inherent problems themselves or because they don’t get along well with Windows 10. Using software, devices, and device drivers designed for Windows 10 can help tremendously, as can the maintenance program we outline in the rest of the chapters here in Part VI. But computer problems, like the proverbial death and taxes, are certainties in life, so you need to know how to troubleshoot and resolve the problems that will inevitably come your way. In this chapter, we help you do just that by showing you our favorite techniques for determining problem sources and by taking you through all of Windows 10’s recovery tools.

Troubleshooting Strategies: Determining the Source of a Problem

One of the ongoing mysteries that all Windows users experience at one time or another is what might be called the “now you see it, now you don’t” problem. This is a glitch that plagues you for a while and then mysteriously vanishes without any intervention on your part. (This also tends to occur when you ask a nearby user or someone from the IT department to look at the problem. Like the automotive problem that goes away when you take the car to a mechanic, computer problems will often resolve themselves as soon as a knowledgeable user sits down at the keyboard.) When this happens, most people just shake their heads and resume working, grateful to no longer have to deal with the problem.

Unfortunately, most computer ills aren’t resolved so easily. For these more intractable problems, your first order of business is to hunt down the source of the glitch. This is, at best, a black art, but it can be done if you take a systematic approach. Over the years, we’ve found that the best approach is to ask a series of questions designed to gather the required information or to narrow down what might be the culprit. The next few sections take you through these questions.

Did You Get an Error Message?

Unfortunately, most computer error messages are obscure and do little to help you resolve a problem directly. However, error codes and error text can help you down the road, either by giving you something to search for in an online database or by providing information to a tech support person. Therefore, you should always write down the full text of any error message that appears.


Image Tip

If the error message is lengthy and you can still use other programs on your computer, don’t bother writing down the full message. Instead, while the message is displayed, press Windows Logo+Print Screen to place an image of the current screen as a PNG file in your Pictures folder.


Does an Error or Warning Appear in the Event Viewer Logs?

Launch the Event Viewer (use the taskbar’s Search box to type event, and then click View Event Logs), open the Windows Logs branch, and then examine the Application and System logs. In particular, look in the Level column for Error or Warning events. If you see any, double-click each one to read the event description. Figure 26.1 shows an example. Again, although the information here is obscure, the error code and error text give you something to search for in an online database or to give to a tech support person.

Image

Figure 26.1 In the Event Viewer, look for Error and Warning events in the Application and System logs.


Image Tip

If the error message appears before Windows 10 starts, but you don’t have time to write it down, press the Pause Break key to pause the startup. After you record the error, press Ctrl+Pause Break to resume the startup.


Does an Error Appear in System Information?

In the taskbar’s Search box, type msinfo32 and then press Enter to launch the System Information utility. In the Hardware Resources branch, click the Conflicts/Sharing sub-branch for device conflicts. Also, see whether the Components/Problem Devices category lists any devices, as shown in Figure 26.2. Make note of any errors, and then either search for the error online or contact tech support and provide the engineer with the information.

Image

Figure 26.2 You can use the System Information utility to look for device conflicts and problems.

Did You Recently Edit the Registry?

Improper Registry modifications can cause all kinds of mischief. If the problem occurred after editing the Registry, try restoring the changed key or setting. Ideally, if you exported a backup of the offending key, you should import the backup. We show you how to back up the Registry in Chapter 29, “Editing the Windows Registry.”

Image To learn how to back up a Registry key, seeBacking Up the Registry,” p. 675.

Did You Recently Change Any Windows Settings?

If the problem started after you changed your Windows configuration, try reversing the change. Even something as seemingly innocent as activating a screensaver can cause problems, so don’t rule anything out. If you’ve made a number of recent changes and you’re not sure about everything you did, or if it would take too long to reverse all the changes individually, use System Restore to revert your system to the most recent checkpoint before you made the changes. See “Recovering Using System Restore,” later in this chapter.

Did Windows 10 “Spontaneously” Reboot?

When certain errors occur, Windows 10 will reboot itself. This apparently random behavior is actually built in to the system in the event of a system failure—also called a stop error or a blue screen of death (BSOD). By default, Windows 10 writes an error event to the system log, dumps the contents of memory into a file, and then reboots the system. So, if your system reboots, check the Event Viewer to see what happened.

You can control how Windows 10 handles system failures by following these steps:

1. In the taskbar’s Search box, type advanced system, and then click View Advanced System Settings to open the System Properties dialog box with the Advanced tab displayed.

2. In the Startup and Recovery group, click Settings. Figure 26.3 shows the Startup and Recovery dialog box that appears.

Image

Figure 26.3 Use the Startup and Recovery dialog box to configure how Windows 10 handles system failures.

3. Configure how Windows 10 handles system failures using the following controls in the System Failure group:

Image Write an Event to the System Log—Leave this check box activated to have the system failure recorded in the system log. This enables you to view the event in the Event Viewer.

Image Automatically Restart—This is the option that, when activated, causes your system to reboot when a stop error occurs. Deactivate this check box if you want to avoid the reboot. This capability is useful if an error message appears briefly before Windows 10 reboots. By disabling the automatic restart, you give yourself time to read and write down the error message.


Image Tip

If the BSOD problem occurs during startup, your computer winds up in an endless loop: you reboot, the problem occurs, the BSOD appears, and then your computer reboots. Unfortunately, the BSOD appears only fleetingly, so you never have enough time to read (much less record) the error message. If this happens, display the Advanced Startup Options menu (see “Navigating the Recovery Environment,” later in this chapter) and then select the Disable Automatic Restart on System Failure item. This tells Windows 10 not to reboot after the BSOD appears, so you can then write down the error message and, hopefully, successfully troubleshoot the problem.


Image Write Debugging Information—This list determines what information Windows 10 saves to disk (in the folder specified in the Dump File text box below the list) when a system failure occurs. This information—it’s called a memory dump—contains data that can help a tech support employee determine the cause of the problem. You have the following choices:

None—No debugging information is written.

Small Memory Dump (256 KB)—This option writes the minimum amount of useful information that could be used to identify what caused the stop error. This 256KB file includes the stop error number and its description, the list of running device drivers, and the processor state.

Kernel Memory Dump—This option writes the contents of the kernel memory to the disk. (The kernel is the Windows 10 component that manages low-level functions for processor-related activities such as scheduling and dispatching threads, handling interrupts and exceptions, and synchronizing multiple processors.) This dump includes memory allocated to the kernel, the hardware abstraction layer, and the drivers and programs used by the kernel. Unallocated memory and memory allocated to user programs are not included in the dump. This information is the most useful for troubleshooting, so we recommend using this option.

Complete Memory Dump—This option writes the entire contents of RAM to the disk.

Automatic Memory Dump—This option is usually the default, and it means that Windows 10 decides which of the other options to use when writing the debugging info. This is the way to go if you’re not getting any debugging info written to the disk. Why would that happen? Windows 10 first writes the debugging information to the paging file—Pagefile.sys in the root folder of the %SystemDrive%. When you restart the computer, Windows 10 then transfers the information to the dump file. Therefore, you must have a large enough paging file to handle the memory dump. If not, you don’t see the debugging data. The Automatic Memory Dump option can determine in advance whether there is enough room in the paging file and, if not, it will default to a smaller dump.

Active Memory Dump—This option (which is new to Windows 10) means that Windows 10 writes to the disk only those portions of RAM that were in use when the crash occurred. This is a welcome addition to the debugging options because the active memory is most likely to have information on the crash.

Overwrite Any Existing File—When this option is activated, Windows 10 overwrites any existing dump file with the new dump information. If you deactivate this check box, Windows 10 creates a new dump file with each system failure. Note that this option is enabled only for the Kernel Memory Dump and the Complete Memory Dump (which by default write to the same file: %SystemRoot%Memory.dmp).


Image Note

If a program freezes, you won’t be able to shut it down using conventional methods. If you try, you might see a dialog box warning you that the program is not responding. If so, click End Now to force the program to close. If that doesn’t work, right-click the taskbar and then click Task Manager. You should see your stuck application listed. Click the program and then click End Task.


4. Click OK in all the open dialog boxes to put the new settings into effect.

Did You Recently Change Any Application Settings?

If you’ve recently changed an application setting, try reversing the change to see whether doing so solves the problem. If that doesn’t help, here are three other things to try:

Image Check the developer’s website to see whether an upgrade or patch is available.

Image Run the application’s Repair option (if it has one), which is often useful for fixing corrupted or missing files. To see whether a program has a Repair option, use the taskbar’s Search box to type uninstall, and then click Change or Remove a Program. In the Programs and Features window, click the problematic application and then look to see whether a Repair item appears in the taskbar (see Figure 26.4).

Image

Figure 26.4 In the Programs and Features window, click the program and look for a Repair option in the taskbar.

Image Reinstall the program.

Did You Recently Install a New Program?

If you suspect a new program is causing system instability, restart Windows 10 and try operating the system for a while without using the new program. If the problem doesn’t reoccur, the new program is likely the culprit. Try using the program without any other programs running.

You should also examine the program’s readme file (if it has one) to look for known problems and possible workarounds. It’s also a good idea to check for a Windows 10–compatible version of the program if the program was originally written for an earlier Windows version. Again, you can also try the program’s Repair option (if it has one), or you can reinstall the program.

Similarly, if you recently upgraded an existing program, try uninstalling the upgrade.


Image Tip

When a program crashes, Windows 10 displays a dialog box asking if you want to see whether a solution to the problem is available. You can control the behavior of this prompt. See “Checking for Solutions to Problems,” later in this chapter.


Did You Recently Install a New Device?

If you recently installed a new device or if you recently updated an existing device driver, the new device or driver might be causing the problem. Check Device Manager to see whether there’s a problem with the device, as described later in this chapter (see “Troubleshooting Device Problems”).

Image For information on using Device Manger for troubleshooting, seeTroubleshooting Device Problems,” p. 609.

Did You Recently Apply an Update from Windows Update?

It’s an unfortunate fact of life that occasionally updates designed to fix one problem end up causing another problem. Fortunately, Windows 10 lets you uninstall an update. Use the taskbar’s Search box to type installed, and then click View Installed Updates. In the Installed Updates window, click the update you want to remove and then click Uninstall.


Image Tip

If you have Windows 10 set up to perform automatic updating, you can keep tabs on the changes made to your system by selecting Start, Settings, clicking Update & Security to open Windows Update, and then clicking Advanced Options. Click the View Your Update History link to see a list of the installed updates, which includes the update’s name, status (such as Successfully Installed, Requires a Restart to Finish Installing, or Failed to Install), and date installed.


General Troubleshooting Tips

Figuring out the cause of a problem is often the hardest part of troubleshooting, but by itself it doesn’t do you much good. When you know the source, you need to parlay that information into a fix for the problem. We discussed a few solutions in the previous section, but here are a few other general fixes you need to keep in mind:

Image Close all programs—You can often fix flaky behavior by shutting down all your open programs and starting them again. This fix is particularly useful for problems caused by low memory or low system resources.

Image Log off Windows 10—Logging off clears the RAM and thus gives you a slightly cleaner slate than merely closing all your programs.

Image Reboot the computer—If you’re having problems with some system files and devices, logging off won’t help because these objects remain loaded. By rebooting, you reload the entire operating system, which is often enough to solve many computer problems.

Image Turn off the computer and restart—You can often solve a hardware problem by shutting off your machine. Wait for 30 seconds to give all devices time to spin down, and then restart.

Image Check connections, power switches, and so on—Some of the most common (and some of the most embarrassing) causes of hardware problems are the simple physical things. Therefore, make sure that a device is turned on, check that cable connections are secure, and ensure that insertable devices are properly connected.

More Troubleshooting Tools

Windows 10 comes with diagnostic tools—together, they’re called the Windows Diagnostic Infrastructure (WDI)—that not only do a better job of finding the source of many common disk, memory, and network problems, but also can detect impending failures and alert you to take corrective or mitigating action (such as backing up your files). The next few sections describe these tools.

Running the Windows 10 Troubleshooters

Windows Vista introduced the idea of the troubleshooter, a Help system component that offers a series of solutions that lead you deeper into a problem in an attempt to fix it. In Windows 7, the troubleshooters were beefed up and given their own home within the Control Panel interface, and that home remains in place in Windows 8.x and Windows 10. To see the Windows 10 troubleshooters, use the taskbar’s Search box to type trouble, and then choose Troubleshooting in the search results.

The Troubleshooting window (see Figure 26.5) is divided into several categories (Programs, Hardware and Sound, and so on), each of which offers a few links to general troubleshooting tasks. (If you see a message asking whether you want the most up-to-date troubleshooting content, be sure to click Yes.)

Image

Figure 26.5 Windows 10’s Troubleshooting window offers links to various troubleshooting categories and tasks.


Image Tip

If you want to see all the available troubleshooters, click the View All link in the Troubleshooting window.


Figure 26.6 shows the troubleshooters available for the Programs category as we wrote this chapter.

Image

Figure 26.6 Click a category to see its available troubleshooters.

Running the Memory Diagnostics Tool

Few computer problems are as maddening as those related to physical memory defects because they tend to be intermittent and to cause problems in secondary systems, forcing you to waste time on wild goose chases all over your system.

Therefore, it is welcome news indeed that Windows 10 ships with a Windows Memory Diagnostics tool that works with Microsoft Online Crash Analysis to determine whether defective physical memory is the cause of program crashes. If so, Windows Memory Diagnostics lets you know about the problem and schedules a memory test for the next time you start your computer. If it detects actual problems, the system also marks the affected memory area as unusable to avoid future crashes.

Windows 10 also comes with a Memory Leak Diagnosis tool that’s part of the Diagnostic Policy Service. If a program is leaking memory (using up increasing amounts of memory over time), Memory Leak Diagnosis will locate the problem and take steps to fix it.

To run the Memory Leak Diagnostics tool, follow these steps:

1. Use the taskbar’s Search box to type memory, and then click Windows Memory Diagnostic in the search results. The Windows Memory Diagnostic window appears, as shown in Figure 26.7.

Image

Figure 26.7 Use the Windows Memory Diagnostic tool to check for memory problems.

2. Click one of the following options:

Image Restart Now and Check for Problems—Click this option to force an immediate restart and schedule a memory test during startup. Be sure to save your work before clicking this option.

Image Check for Problems the Next Time I Start My Computer—Click this option to schedule a memory test to run the next time you boot.

After the test runs (it takes 10 to 15 minutes, depending on how much RAM is in your system), Windows 10 restarts and you see (for a short time) the Windows Memory Diagnostic icon in the taskbar’s notification area. This icon displays a notification that shows the results of the memory test.

Checking for Solutions to Problems

Microsoft constantly collects information about Windows 10 from users. When a problem occurs, Windows 10 usually asks whether you want to send information about the problem to Microsoft and, if you do (we think it’s a good idea to do this), it stores these tidbits in a massive database. Engineers then tackle the “issues” (as they euphemistically call them) and hopefully come up with solutions.

Windows 10 offers a feature called Problem Reporting that’s designed to make solutions available to anyone who goes looking for them. Windows 10 keeps a list of problems your computer is having, so you can tell it to go online and see whether a solution is available. If a solution is waiting, Windows 10 will download it, install it, and fix your system.

Here are the steps to follow to check for solutions to problems:

1. Use the taskbar’s Search box to type maintenance, and then click Security and Maintenance in the results. The Security and Maintenance window appears.

2. Open the Maintenance section and click Check for Solutions. Windows 10 begins checking for solutions.

3. If you see a dialog box asking whether you want to send more information about your problems, you can click View Problem Details to see information about the problems. When you’re ready to move on, click Send Information.

4. If a solution exists for your computer, you see it listed in the Maintenance section of the Action Center window. Click the solution to install it.

By default, when a problem occurs, Windows 10 does two things:

Image It automatically checks for a solution to the problem.

Image It asks whether you want to send more information about the problem to Microsoft.

You can control this behavior by configuring a few settings:

1. In the Security and Maintenance window’s Maintenance section, under Check for Solutions to Problem Reports, click Settings. The Problem Reporting Settings window appears.

2. Click Change Report Settings for All Users. The Problem Reporting dialog box appears.

3. To configure problem reporting, click one of the following options:

Image Automatically Check for Solutions—Activate this option (it’s the default) to have Windows 10 automatically check online for an existing solution to a problem.

Image Automatically Check for Solutions and Send Additional Data, If Needed—Activate this option to have Windows 10 automatically check online for an existing solution to a problem and to automatically send extra information about the problem.

Image Each Time a Problem Occurs, Ask Me Before Checking for Solutions—Activate this option to have Windows 10 prompt you to check for solutions and to send additional information about the problem.

Image Never Check for Solutions—Activate this option if you don’t want to report problems at all.

Image Allow Each User to Choose Settings—Activate this option if your PC has multiple users and you prefer that each user to choose his or her own reporting options.

4. Click OK to put the new settings into effect.

Troubleshooting Startup

Computers are often frustrating beasts, but few things in computerdom are as maddening as a computer that won’t compute or an operating system that won’t operate. After all, if your PC won’t even start Windows, then Windows can’t start any programs, which means you can’t get any work done.

What you’ve got on your hands is a rather expensive boat anchor, not to mention a hair-pullingly, teeth-gnashingly frustrating problem that you have to fix now. To help save some wear and tear on your hair and teeth, this chapter outlines a few common startup difficulties and their solutions.

Some Things to Try Before Anything Else

Startup problems generally are either trivially easy to fix or are take-it-to-the-repair-shop difficult to solve. Fortunately, startup conundrums often fall into the former camp, and in many cases one of the following solutions will get your PC back on its electronic feet:

Image Some boot problems mercifully fall into the Temporary Glitch category of startup woes. That is, it could be that your PC has just gone momentarily and temporarily haywire. To find out, shut down the computer and leave it turned off for at least 30 seconds to give everything time to spin down. Turn your PC back on and cross whatever parts of your body you think might help.

Image A setting in your computer’s BIOS options might be preventing a normal startup. For example, one of us once had a PC that wouldn’t boot no matter what we did. When we decided to check the BIOS, we found that the hard drive wasn’t listed as the boot device! When we configured the BIOS to boot from the hard drive, all was well. Restart your PC and then press whatever key or key combination your BIOS requires to access the settings (usually the Delete key or a function key such as F2). If you don’t see anything obvious (such as misconfigured boot options), try resetting all the options to the default state.


Image Caution

Whatever you do, resist the temptation to fiddle with the BIOS settings willy-nilly. If you’re not sure what a setting is used for, don’t mess with it. If you have Internet access through another computer or device, you might be able to find an online reference for your PC’s BIOS, which will let you know what each setting does.


Image Every now and then a defective device will interfere with the boot process. To ensure that this isn’t the case, disconnect every device that can be disconnected, and then try booting your newly naked PC. If you get a successful launch, one of the devices was almost certainly the culprit. Attach the devices one by one and try rebooting each time until you find out which one is causing the boot failure. You could then reboot without the device, update the device driver (if an update is available), and try again. If that still doesn’t work, the device is probably defective and should be repaired or replaced.

Image If you get no power when you press your desktop PC’s On switch, it’s likely you have a defective power supply on your hands, one or more of the power supply connections have come loose, or your power cord is not plugged in to a power source or has come loose. Check all the connections and, if they’re fine, replace the power supply. If nothing happens when you try to turn on your notebook or tablet PC, you might be looking at a drained battery. Connect the machine to a power source and try again.

Disabling Startup Programs

If you’re having trouble getting Windows 10 off the ground, a program that launches during the system startup may be the culprit. How do you know which programs run at startup? You can find out by launching Windows 10 in Safe mode, running Task Manager (either press Windows Logo+X or right-click the taskbar, and then click Task Manager), clicking More Details, and selecting the Startup tab (see Figure 26.8).

Image

Figure 26.8 Task Manager’s Startup tab lists the programs that launch during the Windows 10 startup.

This list comes from the Registry, typically from the following keys:

HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun

To find out whether one of the programs is causing Windows 10 to misfire at startup, disable the startup programs one by one (or use the method shown in the “Troubleshooting by Halves” sidebar later in this chapter) to see whether that solves the problem. To disable a startup program, click it and then click Disable.

Disabling Startup Services

If Windows 10 won’t start, troubleshooting the problem usually involves trying various advanced startup options. It’s almost always a time-consuming and tedious business.

However, what if Windows 10 will start, but you encounter problems along the way? Or what if you want to try a few different configurations to see whether you can eliminate startup items or improve Windows 10’s overall performance? For these scenarios, don’t bother trying out different startup configurations by hand. Instead, take advantage of Windows 10’s System Configuration utility, which gives you a graphical front end that offers precise control over how Windows 10 starts.

Launch the System Configuration utility (in the Search box, type msconfig and press Enter) and display the General tab, which has three startup options:

Image Normal Startup—This option loads Windows 10 normally.

Image Diagnostic Startup—This option loads only those device drivers and system services that are necessary for Windows 10 to boot. This is equivalent to deactivating all the check boxes associated with the Selective Startup option, discussed next.

Image Selective Startup—When you activate this option (this is the default), the following check boxes become available (see Figure 26.9): Load System Services, Load Startup Items, and Use Original Boot Configuration. From the previous section, you already know how to disable startup items, so here our only concern is system services. The Load System Services category refers to the system services that Windows 10 loads at startup. The specific services loaded by Windows 10 are listed on the Services tab.

Image

Figure 26.9 Use the System Configuration utility’s General tab to troubleshoot the Windows 10 startup.

You use these check boxes to select which portions of the startup should be processed.

To control startup services, the System Configuration utility gives you two choices:

Image To prevent Windows 10 from loading nonessential services, activate Selective Startup in the General tab and then deactivate the Load System Services check box. Click OK.

Image To prevent Windows 10 from loading specific services, display the Services tab and then deactivate the check box beside the service or services you want to bypass at startup. Click OK.


Image Note

A service is a program or process that performs a specific, low-level support function for the operating system or for an installed program. For example, Windows 10’s Automatic Updates feature is a service.


A Startup Troubleshooting Procedure

Now that you know how to disable startup items and services, here’s a basic procedure you can follow to use Task Manager and System Configuration to troubleshoot a startup problem:

1. In System Configuration, activate the Diagnostic Startup option and then reboot the computer. If the problem did not occur during the restart, you know the cause lies in the system services or the startup items.

2. In System Configuration, activate the Selective Startup option.

3. In System Configuration, activate Load System Services; in Task Manager, disable all the startup programs; reboot the computer.

4. In System Configuration, deactivate Load System Services; in Task Manager, enable all the startup programs; reboot the computer.

5. The problem will reoccur either during the step 3 reboot or the step 4 reboot. When this happens, you know that whatever category (services or programs) you enabled before rebooting is the source of the problem:

Image If the problem reoccurred after you activated the Load System Services check box, run System Configuration and select the Services tab.

Image If the problem reoccurred after you enabled the startup programs, run Task Manager and select the Startup tab.

6. If you’re in System Configuration, click Disable All to clear all the check boxes; if you’re in Task Manager, disable all the programs.

7. Activate one of the services or enable one of the programs and then reboot the computer.

8. Repeat step 7 for each of the other services or programs until the problem reoccurs. When this happens, you know that whatever item you activated or enabled just before rebooting is the source of the problem.

9. In the System Configuration utility’s General tab, activate the Normal Startup option.

10. Fix or work around the problem:

Image If the problem is a system service, you can disable the service. Use the taskbar’s Search box to type services, and then click View Local Services. Double-click the problematic service to open its property sheet. In the Startup Type list, select Disabled and then click OK.

Image If the problem is a Startup item, use Task Manager to disable it. If the item is a program, consider repairing, uninstalling, or reinstalling the program.

Troubleshooting Device Problems

Windows 10 has excellent support for most newer devices, and most major hardware vendors have taken steps to update their devices and drivers to run properly with Windows 10. If you use only recent, Plug and Play–compliant devices that qualify for the Designed for Windows 10 logo, you should have a problem-free computing experience (at least from a hardware perspective). Of course, putting problem-free and computing next to each other is just asking for trouble. Hardware is not foolproof; far from it. Things still can, and will, go wrong, and when they do, you’ll need to perform some kind of troubleshooting. (Assuming, of course, that the device doesn’t have a physical fault that requires a trip to the repair shop.) Fortunately, Windows 10 also has some handy tools to help you both identify and rectify hardware ills.

Troubleshooting with Device Manager

Device Manager (press Windows Logo+X and then click Device Manager) not only provides you with a comprehensive summary of your system’s hardware data, but it also doubles as a decent troubleshooting tool. To see what I mean, check out the Device Manager window shown in Figure 26.10. See how the Other Devices branch has an Unknown Device item that has an exclamation mark superimposed on its icon? This tells you that there’s a problem with the device.

Image

Figure 26.10 The Device Manager uses icons to warn you there’s a problem with a device.

If you double-click the problem device to open its properties, as shown in Figure 26.11, the Device Status area tells you a bit more about what’s wrong. As you can see in Figure 26.11, the problem here is that the device drivers aren’t installed. Device Manager usually offers a suggested remedy (such as the Update Driver button shown in Figure 26.11).

Image

Figure 26.11 The Device Status area tells you if the device isn’t working properly.

Device Manager uses three different icons to give you an indication of the device’s current status:

Image A black exclamation mark (!) on a yellow field tells you that there’s a problem with the device.

Image A red X tells you that the device is disabled or missing.

Image A blue i on a white field tells you that the device’s Use Automatic Settings check box (on the Resources tab) is deactivated and that at least one of the device’s resources was selected manually. Note that the device might be working just fine, so this icon doesn’t indicate a problem. If the device isn’t working properly, however, the manual setting might be the cause. (For example, the device might have a DIP switch or jumper set to a different resource.)

If your system flags a device, but you don’t notice any problems, you can usually get away with just ignoring the flag. I’ve seen lots of systems that run perfectly well with flagged devices, so this falls under the “If it ain’t broke...” school of troubleshooting. The danger here is that tweaking your system to try to get rid of the flag can cause other—usually more serious—problems.

Troubleshooting Device Driver Problems

Other than problems with the hardware itself, device drivers are the cause of most device woes. This is true even if your device doesn’t have one of the problem icons mentioned in the previous section. That is, if you open the device’s properties sheet, Windows 10 might tell you that the device is “working properly,” but all that means is that Windows 10 can establish a simple communications channel with the device. So if your device isn’t working right, but Windows 10 says otherwise, suspect a driver problem. Here are a few tips and pointers for correcting device driver problems:

Image Finish installing the driver—In some cases, a setup program might not be able to complete its driver installation. This can occur if Windows blocks it from accessing certain areas of the system drive or determines that extra software is required for the driver to work. Rather than aborting the install, Windows only lets it go so far and then displays a notification prompting you to let Windows complete the driver installation. In such cases, Control Panel’s Security and Maintenance window shows a Finish Installing Device Software message, as shown in Figure 26.12. Click Install to proceed with the installation.

Image

Figure 26.12 In Control Panel’s Security and Maintenance window, if you see the Finish Installing Device Software notification, click Install to complete the driver installation.

Image Reinstall the driver—A driver might be malfunctioning because one or more of its files have become corrupted. You can usually solve this by reinstalling the driver. Just in case a disk fault caused the corruption, you should check the partition where the driver is installed for errors before reinstalling.

Image Upgrade to a signed driver—Unsigned drivers—that is, device drivers that don’t come with a signature from Microsoft that verifies the drivers are safe to install—are accidents waiting for a place to happen in Windows 10, so you should upgrade to a signed driver, if possible. How can you tell whether an installed driver is unsigned? Open the device’s properties sheet and then display the Driver tab. Signed driver files display a name beside the Digital Signer label, whereas unsigned drivers display “Not digitally signed” instead.

Image Disable an unsigned driver—If an unsigned driver is causing system instability and you can’t upgrade the driver, try disabling it. In the Driver tab of the device’s properties sheet, click Disable.

Image Use the Signature Verification tool—This program checks your entire system for unsigned drivers. To use it, click inside the taskbar’s Search box, type sigverif, and press Enter. In the File Signature Verification window, click Start. When the verification is complete, the program displays a list of the unsigned driver files (if any). The results for all the scanned files are written to the log file Sigverif.txt, which is copied to the %SystemRoot% folder when you close the window that shows the list of unsigned drivers. In the Status column of Sigverif.txt, look for files listed as “Not Signed.” If you find any, consider upgrading these drivers to signed versions.

Image Try the manufacturer’s driver supplied with the device—If the device came with its own driver, either try updating the driver to the manufacturer’s or try running the device’s setup program.

Image Download the latest driver from the manufacturer—Device manufacturers often update drivers to fix bugs, support new operating system versions, add new features, and tweak performance. Go to the manufacturer’s website to see whether an updated driver is available.

Image Roll back a driver—If the device stops working properly after you update the driver, try rolling it back to the old driver. (See the next section.)

Rolling Back a Device Driver

If an updated device driver is giving you problems, you have two ways to fix things:

Image If updating the driver was the last action you performed on the system, restore the system to the most recent restore point (see “Recovering Using System Restore,” later in this chapter).

Image If you’ve updated other things on the system in the meantime, a restore point might restore more than you need. In that case, you need to roll back just the device driver that’s causing problems.

Follow these steps to roll back a device driver:

1. Press Windows Logo+X and select Device Manager.

2. Right-click the device and click Properties to open its Properties dialog box.

3. Display the Driver tab.

4. Click Roll Back Driver, and then click OK.

Recovering from a Problem

Ideally, solving a problem will require a specific tweak to the system: a Registry setting change, a driver upgrade, a program uninstall. But sometimes you need to take more of a “big picture” approach to revert your system to some previous state in the hope that you’ll leap past the problem and get your system working again. Fortunately, Windows 10 comes with a boatload of tools that can help in both scenarios, and we use the rest of this chapter to tell you about these tools.

Accessing the Recovery Environment

Windows 10 offers a Recovery Environment (RE) that gives you a simple, easily navigated set of screens that offer a number of troubleshooting tools and utilities.

In versions of Windows prior to Windows 8, you could access the advanced startup options by pressing F8 during startup (after your PC completed its Power-On Self Test). That no longer works, but Windows 10 (like Windows 8 and 8.1) offers many other ways to get to the RE and its advanced startup options:

Image Use the Settings app from within Windows 10.

Image Use the SHUTDOWN command from within Windows 10.

Image Use the boot options screen if you dual-boot Windows 10 and another operating system.

Image Boot to a recovery drive.

Image Boot to a system repair disc.

Image Boot to your Windows 10 installation media.

The next few sections discuss each method in more detail.

Accessing the RE via Settings

If you’re having trouble with your PC but you can still start Windows 10, you can use the Settings app to access the RE. Follow these steps to boot to the RE using the Settings app within Windows 10:

1. Click Start, and then click Settings to open the Settings app.

2. Click Update & Security.

3. Click the Recovery tab.

4. In the Advanced Startup section, click Restart Now. The Choose an Option screen appears, as shown in Figure 26.13.

Image

Figure 26.13 When you boot to the Choose an Option screen, click Troubleshoot to see the Recovery Environment tools.

5. Click Troubleshoot.

Accessing the RE via the SHUTDOWN Command

Rather than access the RE via the convoluted Settings route, you can create a shortcut that runs the SHUTDOWN command-line utility with the /o switch, which restarts Windows 10 and automatically invokes the RE. Follow these steps to create the shortcut:

1. Right-click the desktop and then select New, Shortcut. The Create Shortcut dialog box appears.

2. Enter the following in the Type the Location of the Item text box and press Enter:

shutdown.exe /o /r /t 00

3. Type a name for the shortcut and click Finish.

4. Right-click the shortcut and click Properties.

5. Click Change Icon and then click OK when Windows 10 tells you the program contains no icons. Windows 10 displays the icons that come with the shell32.dll file.

6. Select an icon, click OK, and then click OK to close the Properties dialog box.

When you run this shortcut, Windows 10 reboots the system and you end up at the Choose an Option screen. Click Troubleshoot.

Accessing the RE via Boot Options

If you’re having trouble starting Windows 10 but you still have access to your hard drive, you might be able to access the RE if you have already configured your system to dual-boot Windows 10 with another operating system.

Image For information on setting up your system to dual-boot, seeDual-Booting Windows 10,” p. 43.

If you dual-boot Windows 10 and other operating systems, follow these steps to boot to the RE:

1. Restart your computer. The Choose an Operating System screen appears.

2. Click Change Defaults or Choose Other Options. The Options screen appears.

3. Click Choose Other Options. The Choose an Option screen appears.

4. Click Troubleshoot.

Accessing the RE via a Recovery Drive

If you’re having a problem with your system and are unable to start Windows 10 and can’t even access your hard drive, you can still access a version of the RE if you created a recovery drive.

Image To learn how to create a Windows 10 recovery drive, seeCreating a Recovery Drive,” p. 748.

Follow these steps to boot to the RE using the recovery drive:

1. Insert the recovery drive.

2. Restart your PC and boot to the USB flash drive:

Image If you have a newer PC that has a Unified Extensible Firmware Interface (UEFI), Windows 10 will recognize the flash drive automatically and display the Use a Device screen. Click your flash drive in the list that appears.

Image If you have an older PC that doesn’t support UEFI, you will need to access your PC’s BIOS settings and configure them to boot to the flash drive. Right after you turn on the PC, look for a message that says something like “Press Del to access BIOS/Start settings.” Press the key, and then use the BIOS interface’s boot options to configure your PC to boot to the USB flash drive and disable the Secure Boot feature, if it exists.

3. Click a keyboard layout. The Choose an Option screen appears.

4. Click Troubleshoot.

Accessing the RE via a System Repair Disc

If some problem is preventing you from accessing Windows 10 and your hard drive, but you didn’t create a recovery drive, you can still access the RE if you have a Windows 10 system repair disc.

Follow these steps to boot to the RE using a system repair disc:

1. Insert the system repair disc.

2. Restart your PC and boot to the system repair disc. In most cases, wait until you see a message similar to “Press any key to boot from CD or DVD...” and then press a key. If you don’t see this message, access the PC’s BIOS settings and configure them to boot to the optical drive first and to disable the Secure Boot feature.

3. Click a keyboard layout. The Choose an Option screen appears.

4. Click Troubleshoot.

Accessing the RE via Windows 10 Install Media

If you didn’t create a recovery drive or a system repair disc, but you have your Windows 10 installation media, follow these steps to boot to the RE using the install media:

1. Insert your Windows 10 install media.

2. Restart your PC and boot to the install drive.

3. When the Windows Setup dialog box appears, click Next.

4. Click Repair Your Computer. The Choose an Option screen appears.

5. Click Troubleshoot.


Image Tip

If your system won’t boot from the Windows 10 install media (or the system repair disc), you need to adjust the system’s BIOS settings to allow this. Restart the computer and look for a startup message that prompts you to press a key or key combination to modify the BIOS settings (which might be called Setup or something similar). Find the boot options and either enable a media drive–based boot or make sure that the option to boot from the media drive comes before the option to boot from the hard disk. If you use a USB keyboard, you may also need to enable an option that lets the BIOS recognize keystrokes after the POST but before the OS starts. You might also need to disable the Secure Boot feature, if it exists.


Navigating the Recovery Environment

In the previous few sections, each procedure dropped you off at the Troubleshoot screen, shown in Figure 26.14.

Image

Figure 26.14 The Trouble-shoot screen offers a few troubleshooting tools.

From here, you can reset your PC (we discuss this option later in this chapter; see “Resetting Your PC”). You can also click Advanced Options to display the Advanced Options screen, shown in Figure 26.15.

Image

Figure 26.15 The new Advanced Options screen offers even more troubleshooting tools.

From here, you can run System Restore (see “Recovering Using System Restore,” later in this chapter), recover a system image (see “Restoring a System Image”), run an automatic repair (see “Automatically Repairing Your PC”), access the Command Prompt to use its command-line tools, or revert to an earlier build of Windows 10.

In most cases, you can also click Startup Settings and then click Restart to access even more startup settings. (Note that you don’t see the Startup Settings option if you boot to a recovery drive, a system repair disc, or the Windows 10 install media.) Windows 10 restarts your PC and displays the Startup Settings screen, shown in Figure 26.16.

Image

Figure 26.16 The Startup Settings screen offers several startup options.

Press Enter to load Windows 10 in the usual fashion. You can use the other options to control the rest of the startup procedure:

Image Enable Debugging—This command enables remote debugging of the Windows 10 kernel.

Image Enable Boot Logging—This option is the same as the Boot Normally option, except that Windows 10 logs the boot process in a text file named ntbtlog.txt that resides in the system root.

Image Enable Low-Resolution Video—This option loads Windows 10 with the video display set to 640×480 and 256 colors. This is useful if your video output is garbled when you start Windows 10. For example, if your display settings are configured at a resolution that your video card can’t handle, boot in the low-resolution mode and then switch to a setting supported by your video card.

Image Enable Safe Mode—The three Safe Mode options enable you to run a barebones version of Windows 10 for troubleshooting. See “Booting Up in Safe Mode,” later in this chapter.

Image Disable Driver Signature Enforcement—This item prevents Windows 10 from checking whether device drivers have digital signatures. Choose this option to ensure that Windows 10 loads an unsigned driver, if failing to load that driver is causing system problems.

Image Disable Early Launch Anti-Malware Driver—This option prevents Windows 10 from scanning device drivers for malware during startup. If Windows 10 won’t start, it’s possible that the anti-malware scan is messing with a driver.

Image Disable Automatic Restart After Failure—This option prevents Windows 10 from restarting automatically when the system crashes. Choose this option if you want to prevent your system from restarting so that you can read an error message or deduce other information that can help you troubleshoot the problem.

You can also press F10 and then press 1 to launch the RE from here.

Booting Up in Safe Mode

You saw in the previous section that Windows 10’s Advanced Options menu has tons of startup choices. By far the most useful of these are the various Safe Mode options, which we discuss in more detail in the next few sections.

Safe Mode

If you’re having trouble with Windows 10—for example, if a corrupt or incorrect video driver is mangling your display, or if Windows 10 won’t start—you can use the Safe Mode option to run a stripped-down version of Windows 10 that includes only the minimal set of device drivers that Windows 10 requires to load. Using this mode you could, for example, reinstall or roll back the offending device driver and then load Windows 10 normally.

When you start in Safe mode, Windows 10 uses the all-powerful Administrator account, which is the account to use when troubleshooting problems. However, caution is required when doing so.

When Windows 10 finally loads, as shown in Figure 26.17, the desktop reminds you that you’re in Safe mode by displaying “Safe Mode” in each corner.

Image

Figure 26.17 Windows 10 in Safe mode.

You should use the Safe mode option if one of the following conditions occurs:

Image Windows 10 doesn’t start after the POST ends.

Image Windows 10 seems to stall for an extended period.

Image You can’t print to a local printer.

Image Your video display is distorted and possibly unreadable.

Image Your computer stalls repeatedly.

Image Your computer suddenly slows down and doesn’t return to normal without a reboot.

Image You need to test an intermittent error condition.


Image Note

If you’re curious to know which drivers are loaded during a Safe mode boot, see the subkeys in the following Registry key:

HKEY_LOCAL_MACHINESYSTEM
CurrentControlSetControl
SafeBootMinimal


Safe Mode with Networking

The Safe Mode with Networking option is identical to plain Safe mode, except that Windows 10’s networking drivers are also loaded at startup. This enables you to log on to your network, which is handy if you need to access the network to load a device driver, run a troubleshooting utility, or send a tech support request. This option also gives you Internet access if you connect via a gateway on your network. This is useful if you need to download drivers or contact online tech support.

You should use the Safe Mode with Networking option if one of the following situations occurs:

Image Windows 10 fails to start using any of the other Safe mode options.

Image The drivers or programs you need to repair a problem exist on a shared network resource.

Image You need access to email or other network-based communications for technical support.

Image You need to access the Internet via your network to download device drivers or visit an online tech support site.

Image Your computer is running a shared Windows 10 installation.

Safe Mode with Command Prompt

The Safe Mode with Command Prompt option is the same as plain Safe mode, except that it doesn’t load the Windows 10 GUI. Instead, it runs cmd.exe to load a Command Prompt session. You should use the Safe Mode with Command Prompt option if one of the following situations occurs:

Image Windows 10 fails to start using any of the other Safe mode options.

Image The programs you need to repair a problem must be run from the Command Prompt.

Image You can’t load the Windows 10 GUI.

Adding Safe Mode to the Boot Options Menu

If you find that you use Safe mode frequently, it can be a real hassle to drill down through the endless startup screens to get to the Advanced Options menu. To work around that problem, you can configure Windows 10 startup to display a boot menu that lets you choose between a regular startup and a Safe mode startup. Here are the steps to follow:

1. Press Windows Logo+X, click Command Prompt (Admin), and then enter your User Account Control credentials.

2. At the command line, type the following command and press Enter (this tells BCDEdit to write your PC’s boot info to a file named boot.txt on your desktop):

bcdedit /enum /v > %userprofile%desktopoot.txt

3. Leave Command Prompt open and double-click the boot.txt file on your desktop to open the file in Notepad.

4. In the Windows Boot Loader section, copy the identifier value (including the opening and closing braces).

5. Return to Command Prompt and type bcdedit /copy followed by a space.

6. Press Ctrl+V to paste the identifier value you copied in step 4.

7. Type a space followed by /d "Windows 10 (Safe Mode)" and then press Enter. BCDEdit copies the boot info to the new entry.

8. In the taskbar’s Search box, type msconfig and then press Enter to start the System Configuration tool.

9. In the Boot tab, click the Windows 10 (Safe Mode) boot item you just created.

10. Select the Safe Boot check box, as shown in Figure 26.18.

Image

Figure 26.18 In System Configuration’s Boot tab, select the new boot info and then choose the Safe Boot option.

11. Click OK.

Automatically Repairing Your PC

If Windows 10 won’t start normally, your first troubleshooting step is almost always to start the system in Safe mode. When you make it to Windows 10, you can investigate the problem and make the necessary changes (such as disabling or rolling back a device driver). But what if your system won’t even start in Safe mode?

Your next step should be the RE’s Startup Repair option, which attempts various repair strategies that are often useful for getting a PC back on its feet. Here’s how to use it:

1. Boot to the RE, as described earlier (see “Accessing the Recovery Environment”).

2. Click Advanced Options. The Advanced Options screen appears.

3. Click Startup Repair. (If you’re running the command from a recovery disk or your install media, you’re prompted to select the target operating system, which will be Windows 10.) Windows 10 reboots and Startup Repair prompts you for your user account.

4. Click your user account. Automatic Repair prompts you for your password.

5. Type your account password and then click Continue. Automatic Repair begins the repair process.

Recovering Using System Restore

If you make a change to your system—such as adding new hardware, updating a device driver, installing a program, or modifying some settings—and then find that the system won’t start or acts weirdly, it’s a good bet that the change is the culprit. In that case, you can tell Windows 10 to revert to an earlier configuration that worked (that is, a configuration that doesn’t include your most recent change). The theory is that by using the previous working configuration, you can make your problem go away because the system is bypassing the change that caused the problem.

You revert Windows 10 to an earlier configuration by using System Restore. We show you how to use System Restore to set restore points in Chapter 32, “Protecting Your Data from Loss and Theft.”

Image To learn how to create a restore point, seeSetting System Restore Points,” p. 746.

To revert your system to a restore point, follow these steps:

1. Launch System Restore:

Image If you can boot Windows 10—In the taskbar’s Search box, type restore, click Create a Restore Point in the search results, and then click System Restore.

Image If you can’t boot Windows 10—Boot to the RE, as described earlier (see “Accessing the Recovery Environment”), click Advanced Options, and then click System Restore.

2. In the initial System Restore dialog box, click Next. System Restore displays a list of restore points.


Image Tip

System Restore is available in Safe mode. Therefore, if Windows 10 won’t start properly, perform a Safe mode startup and run System Restore from there.


3. If you don’t see the restore point you want to use, click to activate the Show More Restore Points check box, which tells Windows 10 to display all the available restore points.


Image Note

By default, Windows 10 displays only the restore points from the previous five days. When you activate the Show More Restore Points check box, you tell Windows 10 to also show the restore points that are more than five days old.


4. Click the restore point you want to use. There are seven common types of restore points:

Image System—A restore point that Windows 10 creates automatically. For example, the System Checkpoint is the restore point that Windows 10 creates each day or when you boot your computer.

Image Critical Update—A restore point set prior to installing an important update.

Image Install—A restore point set prior to installing a program or optional update.

Image Uninstall—A restore point set prior to uninstalling a program or update.

Image Manual—A restore point you create yourself.

Image Undo—A restore point set prior to a previous use of System Restore to revert the system to an earlier state.

Image Unknown—Any restore point that doesn’t fit in the preceding categories.

5. Click Next. If other hard disks are available in the restore point, Windows 10 displays a list of the disks. Activate the check box beside each disk you want to include in the restore and then click Next.

6. Click Finish. Windows 10 asks you to confirm that you want your system restored.

7. Click Yes. System Restore begins reverting to the restore point. When it’s done, it restarts your computer and displays a message telling you the results of the restore.

8. Click Close.

Resetting Your PC

If the Automatic Repair and System Restore features didn’t solve your problem, the next recovery step to try is Reset This PC. This tool reinstalls a fresh copy of Windows 10 while optionally keeping your data (but not your settings or your Windows 10 apps). When you reset your PC, the computer boots to the RE, gathers up your personal files, copies them to another part of the hard drive, reinstalls Windows 10, and then restores your data.


Image Caution

Because the reset first makes a copy of your data, you must have enough free space on your hard drive to hold these copies. If you don’t have the space, you can’t reset your PC.


Here are the steps to follow to reset your PC:

1. Launch Refresh Your PC:

Image If you can boot Windows 10—Click Start, then Settings, and then Update & Security. Click the Recovery tab, and then click Get Started under Reset This PC.

Image If you can’t boot Windows 10—Boot to the RE’s Troubleshoot screen, as described earlier (see “Accessing the Recovery Environment”) and click Reset This PC. Windows 10 reboots the PC and asks you to choose your user account. Click your user account, type your account password, and then click Continue.

2. Click Keep My Files. Reset This PC displays a list of the desktop programs you’ll need to reinstall.

3. Make a note of the programs, and then click Next.

4. Click Reset. Refresh Your PC reboots the computer and runs the refresh.

Restoring a System Image

If you can’t reset your PC because you don’t have your Windows 10 install media or a recovery drive, you can still get your system back on its feet if you created a backup system image, as we describe in Chapter 32.

Image To learn how to create a system image, seeSetting System Restore Points,” p. 746.

Follow these steps to restore a system image:

1. If you saved the system image to an external hard drive, connect that hard drive. If you used DVDs, insert the last DVD in the set.

2. Boot to the RE, as described earlier (see “Accessing the Recovery Environment”).

3. Click Advanced Options. The Advanced Options screen appears.

4. Click System Image Recovery. Windows 10 prompts you to choose a user account.

5. Click your user account, type your password, and then click Continue. System Image Recovery prompts you to select a system image backup and offers two options:

Image Use the Latest Available System Image—Activate this option to restore Windows 10 using the most recently created system image. This is almost always the best way to go because it means you’ll restore the maximum percentage of your data and programs. If you choose this option, click Next and skip to step 8.

Image Select a System Image—Activate this option to select from a list of restore points. This is the way to go if you saved a system image to your network, or if the most recent system image includes some change to your system that you believe is the source of your system problems. Click Next and continue with step 6.

6. Click the location of the system image and then click Next.

7. Click the system image you want to use for the restore and then click Next. If you want to use a system image saved to a network share, click Advanced and then click Search for a System Image on the Network.

8. If you replaced your hard drive, activate the Format and Repartition Disks check box.

9. Click Next. System Image Recovery displays a summary of the restore process.

10. Click Finish. System Image Recovery asks you to confirm.

11. Click Yes. System Image Recovery begins restoring your computer and then reboots to Windows 10 when the restore is complete.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.203.124