15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

after you log on. From here you can run any of the commands you learned

about in Chapter 15, “Working with the Command-Line Interface,” plus a lot

of utilities as well. Error checking runs fine as chkdsk, for example. Disk

Defragmenter probably runs even faster when you type defrag followed by a

drive letter at the command prompt than it does from the graphical version of

the tool.

EXAM TIP Look for a question on the CompTIA A+ 1002 exam about

defragmenting a hard disk drive (HDD) as a common solution to Windows

OS problems. You can readily defrag an HDD from the command prompt in

Safe Mode.

Safe Mode with Command Prompt is a handy option to remember if the

Desktop does not display at all, which, after you have eliminated video

drivers, can be caused by corruption of the explorer.exe program. From the

command prompt, you can delete the corrupted version of explorer.exe and

copy in an undamaged version. This requires knowing the command-line

commands for navigating the directory structure, as well as knowing the

location of the file you are replacing. Although Explorer is not loaded, you

can load other GUI tools that don’t depend on Explorer. All you have to do is

enter the correct command. For instance, to load Event Viewer, type

eventvwr.msc at the command line and press enter.

Enable Boot Logging

Selecting the Enable boot logging option starts Windows normally and

creates a log file of the drivers as they load into memory. The file is named

Ntbtlog.txt and is saved in the %SystemRoot% folder. If the startup failed

because of a bad driver, the last entry in this file may be the driver the OS

was initializing when it failed.

Reboot and go into the WinRE. Use the tools there to read the boot log

and disable or enable problematic devices or services.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!