Chapter 13. Using and Managing Windows

This chapter covers a portion of the CompTIA A+ 220-701 objectives 3.2 and 3.3 and CompTIA A+ 220-702 objectives 2.2 and 2.3.

Until now, we have focused on hardware and sprinkled in little bits of software here and there. That’s about to change. This chapter goes into depth concerning the fundamentals of Windows Vista and Windows XP. When you are done with this chapter, you might even want to read it again because there is so much information packed in it. And if you can pass the “Do I Know This Already” quiz, then our hats are off to you.

There is a slight amount of Windows 2000 in this chapter as well (because it is covered on the CompTIA objectives); however most of the concepts and techniques used in Windows 2000 work the same way in Windows XP. Unless Windows 2000 is specifically mentioned, you can safely assume that any time XP is described, the concept is the same for Windows 2000.

You might ask why there is so much Windows XP content within this chapter, as well as on the CompTIA A+ objectives. Well, even though XP is currently eight years old, there are still a slew of companies using it. Consequently it is very important to know for the exam. Windows Vista is currently the newest operating system that CompTIA includes on the A+ exam.

Note that you will sometimes see references to Windows Vista’s “Computer” and Windows XP’s equivalent “My Computer” within the same sentence. Sometimes this will be written as Computer/My Computer, or My Computer/Computer. The same holds true for other Windows interfaces that have undergone name changes with the advent of Windows Vista.

There is a lot of content to cover in this chapter; So, without further ado, let’s demonstrate how to use and manage Windows!

“Do I Know This Already?” Quiz

The “Do I Know This Already?” quiz allows you to assess whether you should read this entire chapter or simply jump to the “Exam Preparation Tasks” section for review. If you are in doubt, read the entire chapter. Table 13-1 outlines the major headings in this chapter and the corresponding “Do I Know This Already?” quiz questions. You can find the answers in Appendix A, “Answers to the ‘Do I Know This Already?’ Quizzes and Troubleshooting Scenarios.”

Table 13-1 “Do I Know This Already?” Foundation Topics Section-to-Question Mapping

image

1. Which of the following technologies is the graphical user interface used by default in Windows Vista?

a. Windows PowerGUI

b. Windows Aero

c. Windows GUI version II

d. Windows Powershell

2. You are the PC technician for your company. You are upgrading your computers to Windows Vista. There are certain users who have older applications. What tool can you use to make the application run under the newer operating system?

a. XP Mode

b. You cannot do this

c. Program Compatibility Wizard

d. Install the application in a virtual machine

3. Which of the following is a central database for Windows, applications, and user settings that should be backed up on a regular basis?

a. The Hardware Layer

b. The Registry

c. Windows Machine Database

d. The Windows Hives

4. You are working on a computer. You receive a message about virtual memory being low on resources. What is virtual memory?

a. Physical memory sticks on the motherboard

b. Memory that only runs in a virtual environment

c. Your system memory and virtual memory are the same

d. Your system memory has borrowed some hard disk space

5. Which of the following is a file management utility that is used on Windows-based operating systems?

a. Windows Explorer

b. File Manager

c. Server Manager

d. Internet Explorer

6. You are working on your Windows XP desktop computer. You need to modify your network settings. Which of the following will you use to modify this?

a. My Computer

b. Network Spot

c. My Network Places

d. My Network Manager

7. Which of the following files are required to boot the Windows Vista operating system? (Choose all that apply.)

a. Bootmgr

b. BCD

c. Hall.dll

d. Ntoskrnl.exe

e. Boot.ini

8. Which of the following files is a specially formatted text file that configures the startup process for the Windows XP operating system?

a. NTDETECT.com

b. BOOT.ini

c. NTLDR

d. Ntoskrnl.exe

9. You have just been given a new hard drive to install in a client’s computer to be installed with a new Windows operating system. What processes must you go through while you install the operating system on the drive? (Choose two.)

a. Create a new partition

b. Nothing, the drive is ready to go

c. Format the drive

d. Install the drive utility

10. You are doing some phone support for your company. A user calls up and says he is not able to get out to network resources. You need him to run the ipconfig utility to check for a valid IP address. How would you tell the user to pull up the command prompt? (Choose all that apply.)

a. Start, Run and type command

b. Start, Run and type cmd

c. Start, Run and type com

d. Start > Programs > Accessories > Command Prompt icon

11. Which of the following parameters (switches) will copy all files, folders, and subfolders, including empty subfolders, to the TEST folder?

a. xcopy *.* c: est /T

b. xcopy *.* c: est /S

c. xcopy *.* c: est /E

d. xcopy *.* c: est T

12. You are providing some phone support for your clients. They are telling you that the video seems to be showing poorly. You need to see if there is a problem with the video card. Where would you instruct them to go to view this information?

a. Display Properties

b. The screensaver tab

c. Device Manager

d. MSCONFIG

13. You are contacted by a client that is having problems because her computer is running very slowly. You need to run a utility to see if the system needs to have more memory installed. Which of the following utilities should you use?

a. Performance Monitor

b. System Performance wizard

c. Memory Tasks wizard

d. System Configuration Utility

14. What is the minimum processor requirement for Windows Vista?

a. 133 MHz

b. 233 MHz

c. 800 MHz

d. 1 GHz

15. What is the minimum RAM requirement for Windows Vista?

a. 64 MB

b. 256 MB

c. 512 MB

d. 1024 MB

16. A user wants to modify his network connection from the Windows Vista Network window. Which of the following options will allow the user to do this?

a. Task Manager

b. Command Prompt

c. My Network Places

d. Network and Sharing Center

Foundation Topics

Differences in Windows Versions

The 2009 A+ Certification exams cover Windows Vista, XP, and 2000. It is important to know the differences between these three, and the minimum hardware requirements necessary to install each of the operating systems. We’ll start with Windows Vista and XP’s graphical user interface (GUI), which is what Windows employs to interact with the user. Normally, a keyboard and pointing device such as a mouse are used to input information to the operating system’s GUI, and whatever is input will be shown on the screen. Basically everything you see on the display, including windows, icons, menus, and other visual indicators, is part of the GUI.

GUI

The Windows Vista GUI, shown in Figure 13-1, is different in several ways from Windows XP:

Figure 13-1 Windows Vista’s Standard Desktop and Start Menu (a) and Classic Desktop and Start Menu (b).

image

Windows Aero— This is Microsoft’s new visual experience, which features translucent windows, window animations, three-dimensional viewing of windows, and a modified taskbar. You can make modifications to the look of Aero by right-clicking the desktop and selecting Personalize, and then clicking Windows Color and Appearance. From here you can modify things such as the transparency of windows. To disable Windows Aero, click the Theme link from within the Personalize window. Then, from the Theme drop down menu, select Windows Classic.

Welcome Center— This is the window that opens automatically when you first start Windows Vista. After installing the operating system, it a good starting point for running initial tasks such as connecting to the Internet, transferring files from another computer, adding users, and learning more about Windows Vista. The Welcome Center will continue to show up every time you start Windows unless you deselect the checkbox to the bottom left of the window. To open Welcome Center later, go to Control Panel, System and Maintenance.

Windows Sidebar and gadgets— The Windows Sidebar is a new window pane on the side of the desktop. It is primarily used to house gadgets. Gadgets are mini applications that provide a variety of services, such as connecting to the Web to access weather updates and traffic or Internet radio streams. They can also interact with other applications to streamline the Windows experience. Additional gadgets can be downloaded from Microsoft. You can modify the Sidebar by right-clicking on it and selecting Properties. From here you can select whether the Sidebar starts when Windows does, place it above other Windows, change its orientation, and remove gadgets. To add gadgets, click the + directly over the topmost gadget.

Modified Start menu— The new Start menu has a few changes compared to Windows XP. For example there is a useful search field directly above the Start button. However, the Run prompt has been removed by default, but can be added by accessing the Taskbar and Start Menu Properties window. The Start menu and desktop can also be configured to run in ““Classic mode”” similar to the one used by Windows 2000 and by XP, if it was configured that way (refer to the second screen capture in Figure 13-2). In Classic mode, the Start menu displays the name of the operating system along the left side in the same way that earlier versions of Windows display the name. This is usually done to optimize Windows performance.

Figure 13-2 Windows XP’s standard desktop and start menu (a) and classic desktop and start menu (b).

image

The Windows XP GUI has several differences compared to its predecessor Windows 2000:

• Personalized start menu for each user.

• Two-column start menu shown in Figure 13-2; the left column displays the most recently or frequently used programs and access to default applications for Internet and email, while the right column provides access to the user’s documents folders and Control Panel. To see all programs, hover your mouse over All Programs.

• Task bar adjusts in size according to the number of programs that are running and the number of quick launch icons in use.

• Start menu and desktop can also be configured to run in a Classic mode similar to the one used by Windows 2000 (Figure 13.2b). In Classic mode, the Start menu displays the name of the operating system along the left side in the same way that earlier versions of Windows display the name.

Note

To change only the start menu to the Classic mode, right-click the Start button, select Properties, and choose Classic Start menu. To change the start menu and the desktop to the Classic mode as in Figure 13-2b, open the Display properties sheet, select Themes, and select Windows Classic. You can open the Display properties sheet from Control Panel or by right-clicking an empty area of the desktop and selecting Properties.

System Requirements

System requirements for different versions of Windows vary widely. Table 13-2 compares the hardware requirements for Windows Vista, XP, and 2000.

Table 13-2 Minimum Hardware Requirements for Windows Vista, XP, and 2000

image

image

Note

The specs in Table 13-2 are the minimum requirements. Microsoft recommends a 1 GHz processor for all versions of Vista, and 1 GB of RAM plus a 40 GB HDD for Vista Home Premium/Business/Ultimate.

You may hear the terms x86 and x64. x86 refers to older CPU names that ended in an “86”. For example, the 80386 (shortened to just 386), 486, or 586 CPU and so on. Generally, when people use the term x86 they are referring to 32-bit CPUs that allow for 4 GB of address space. x64 (or x86-64) refers to newer 64-bit CPUs that are a superset of the x86 architecture. This technology can run 64-bit software as well as 32-bit software and can address a maximum of 1 TB.

Windows Vista and Windows XP come in 64- and 32-bit versions, so that users from both generations of computers can run the software efficiently. Windows 2000 Professional was designed for 32-bit CPUs only.

Application Compatibility

Most commercial business applications should run properly on Windows Vista/XP as well as on older versions of Windows. However, some commercial and custom applications designed for older versions of Windows might not run properly on Windows Vista/XP.

To enable applications written for older versions of Windows to run properly on Windows Vista/XP, you can use the Program Compatibility Wizard built into Windows, or the Compatibility tab located on the executable file’s properties sheet to run the program in a selected compatibility mode.

To start the wizard in Windows Vista, click Start, Control Panel and then click the Programs icon. Then, under Programs and Features click the link Use an Older Program with This Version of Windows. This program works essentially the same in Vista as it does in XP.

To start the wizard in Windows XP, click Start, All Programs, Accessories, Program Compatibility Wizard.

Once the wizard is started, you can select from programs already installed on your computer, select the current program in the CD-ROM drive, or browse to the program manually. After you select a program, you can select the version of Windows the program worked best under (see Figure 13-3).

Figure 13-3 Using the Program Compatibility Wizard to run an older Windows program under Windows XP as Windows 98/95 would run it.

image

On the next screen, you can select one or more of the following options to aid compatibility:

256 Colors— Many older Windows programs can’t run under 16-bit or higher color depths.

640×480 Screen Resolution— Many older Windows programs use a fixed screen size and can’t run properly on a high-resolution screen.

Disable Visual Themes— Many older Windows programs were created before visual themes were common.

After selecting the options, test the program (which applies the settings you selected and runs the program). After you close the program, Windows switches back to its normal screen settings if necessary, and you can decide whether to use these settings for your software or try others. You can choose whether to inform Microsoft of your settings, and the settings you chose for the program are used automatically every time you run the program.

Keep in mind that the Program Compatibility Wizard won’t work with all old Windows programs; in particular, the wizard should not be used with antivirus, disk, or system utilities that are not compatible with Windows Vista/XP. Instead, replace outdated applications with updated versions made for Windows Vista/XP.

Microsoft periodically offers Application Compatibility Updates through Windows Update. These updates improve Windows’s compatibility with older applications. If you can’t get an older program to work with Windows now, it might be able to work in the future. To see which programs are affected by a particular Application Compatibility Update, click the Details button on the listing in Windows Update.

As an alternative to the Program Compatibility Wizard, you can apply the same settings by using the Compatibility tab on an executable file’s properties sheet (see Figure 13-4). Use this method if you already know the appropriate settings to use.

Figure 13-4 Using the Compatibility tab to specify compatibility settings.

image

Primary Windows Components

You don’t need to know everything about Windows to master the A+ Certification exams, but you do need to understand the following essential Windows components:

• Registry

• Virtual Memory

• File Systems

Registry

The Windows Registry acts as a central database for Windows, applications, and user settings. When you install a program, update Windows, or even change the color of the desktop, a part of the Windows Registry changes. There are five different sections (known as hives) to the Windows Registry, whether it’s the Registry in Windows Vista, XP, or 2000:

HKEY_CLASSES_ROOT—Links file extensions to specific applications installed on the computer (also stored in HKEY_LOCAL_MACHINE)

HKEY_CURRENT_USER—Stores configurations specific to the current user, such as screensaver, desktop theme, and Microsoft Office user information (also stored in HKEY_USERS)

HKEY_LOCAL_MACHINE—Stores hardware and software setup information

HKEY_USERS—Stores user-specific information for all users of this computer

HKEY_CURRENT_CONFIG—Stores the settings for the current hardware profile (also stored in HKEY_LOCAL_MACHINE)

As you can see from this listing, any setting in Windows is stored in one of two top-level keys (HKEY_LOCAL_MACHINE and HKEY_USERS). The other three keys provide shortcuts to sections of these two keys. Figure 13-5 shows you a section of a typical Registry listing for Windows XP.

Figure 13-5 Viewing some of the Registry settings for Windows XP.

image

image

To learn more about the data files used to store the Registry and to learn how to edit the Registry, see “Registry Data Files,” later in this chapter

Windows Interfaces

Windows features a variety of user interfaces, from Windows Explorer to the Start menu. The following sections discuss the major features of each.

Windows Explorer

Windows Explorer is the file-management utility used by Windows (see Figure 13-6). Windows can use Explorer to view both local drive/network and Internet content. In Windows XP it integrates tightly with My Computer and Internet Explorer. However, in Windows Vista and Windows XP systems using Internet Explorer 7 or higher, Windows Explorer will launch a new process when connecting to Internet sites.

Figure 13-6 The Windows Explorer in Windows XP; the selected object’s name appears in the Address bar.

image

By default, Windows Explorer doesn’t display hidden and system files unless the View options are changed; see the section “Changing Viewing Options in Windows Explorer,” for details.

Windows Explorer can be started in any of the following ways in Windows:

• From the Start menu, click Start, All Programs, Accessories, Windows Explorer.

• Open the Run prompt, type Explorer and press Enter.

• Open My Computer to start Explorer automatically.

Common Tasks View

When you start My Computer in Windows XP, the Common Tasks view shown in Figure 13-7 is displayed by default. The Common Tasks view displays the properties of the selected object and displays a preview when available. However, the most significant feature is the changeable task pane in the upper-left side of the display. In Windows Vista, this has been replaced by “Favorite Links.”

Figure 13-7 The Common Tasks view of a folder in Windows XP. The Details pane at lower left displays a preview of the selected file as well as its properties. The File and Folder Tasks task pane at upper left changes its name and contents to provide task options suitable for the folder or selected object.

image

The contents and name of the task pane change according to the characteristics of the selected or displayed object. For example, display My Computer, and the task pane is titled System Tasks, with a choice of options such as View System Information, Add or Remove Programs, or Change a Setting. The contents of Other Places also changes to display related objects.

Tip

To switch between Common Tasks and Classic view, click the Folders icon on the toolbar.

Changing Viewing Options in Windows Explorer

By default, Windows Explorer prevents users from seeing information such as

• File extensions for registered file types; for example, a file called LETTER.DOC will be displayed as LETTER because WordPad (or Microsoft Word) is associated with .DOC files.

• The full path to the current folder.

• Files with hidden or system attributes, such as Bootlog.txt and Msdos.sys.

• Folders with hidden or system attributes, such as INF (used for hardware installation).

Concealing this information is intended to make it harder for users to “break” Windows, but it makes management and troubleshooting more difficult.

To change these and other viewing options, follow this procedure:

Step 1. Start Windows Explorer.

Step 2. Click Tools on the menu bar, Folder Options and select the View tab.

Note

In Windows Vista, the Menu Bar is hidden by default. To show it temporarily, press Alt+T (which in this case will bring up the Tools menu). To show it permanently, click on the Organize button, then Layout, then Menu Bar.

Step 3. Select the options you want (see Figure 13-8). I recommend the following changes for experienced end users:

• Enable the Display the Full Path in the Title Bar option. (In Vista, this only works if you are using the Classic theme.)

• Disable the Hide Extensions for Known File Types option.

Figure 13-8 The Windows Explorer Folder Options, View tab in Windows XP after selecting recommended options for use by technicians and experienced end users.

image

image

If you are maintaining or troubleshooting a system, I also recommend you change the following:

• Enable the Show Hidden Files and Folders setting.

• Disable the Hide Protected Operating System Files setting.

You should probably change these settings back to their defaults before you return the system to normal use.

Step 4. Click OK to close the Folder Options window.

Objects such as files and folders can be displayed in several ways within Windows Explorer:

Tiles— The default (refer to Figure 13-6) in Windows XP; similar to Large Icons view in earlier Windows versions.

Icons— Displays more objects onscreen without scrolling vertically; might require the user to scroll horizontally to view multiple columns; similar to Small Icons view in earlier Windows versions. Vista has options for small, medium, large, and extra large icons.

List— Displays more objects onscreen than large icons in a single column.

Details— The same size of icons used by Small or List, plus size and last-modified date details (refer to Figure 13-9a).

Figure 13-9 Comparing the Details and Filmstrip views of a folder containing digital photos. Note that the task pane lists Picture Tasks such as printing photos or copying items to a recordable/rewritable CD.

image

Thumbnails— Displays a thumbnail (small-sized graphic) sample of previewable files and folders (.BMP, .JPG, and some other graphics file formats and folders containing these files) in the selected folder and uses large tiled icons for non-previewable files. Thumbnail view can be used in any folder.

Filmstrip— Displays a larger preview of the selected graphic file at the top of the right window, and smaller thumbnails below it. Buttons below the large preview can be used to rotate the graphic or to move to another graphic. This view is available in the My Pictures folder or other folders that contain digital photos in formats recognized by Windows Preview, such as .TIF or .JPG (see Figure 13-9b).

To change the view for the current folder, use the Views button or the View pull-down menu.

Windows Vista Additions to Windows Explorer

The version of Windows Explorer in Windows Vista incorporates the “Stacks” view, which groups files according to what is specified by the user. You can click the stacks to filter the files shown in Windows Explorer. You also have the ability to save searches as virtual folders or Search Folders. Another new addition to Windows Explorer in Vista is the Details pane, which displays information relating to the currently selected file or folder.

My Computer

My Computer (known as Computer in Windows Vista) is integrated tightly with Windows Explorer. My Computer is still available on all versions of Windows but many users prefer to use Windows Explorer due to its two-pane style and additional functionality. My Computer provides access to the following features and utilities:

• Open My Computer to view the local drives on your system, available network drives, the Control Panel folder, and imaging devices (see Figure 13-10). In Windows XP, use the System Tasks left pane menu to open the System properties sheet (View system information), Add or remove programs (runs Add or Remove Programs applet from Control Panel), or Change a setting (opens Control Panel). In Windows Vista, these options are listed just below the menu bar.

Figure 13-10 My Computer Window and Available System Tasks.

image

• Right-click the My Computer icon or the My Computer option in the Start Menu to choose options such as Properties (which opens the System properties sheet), Manage (which opens the Computer Management Console), Windows Explorer, Search/Find, drive mapping, and creating shortcuts.

Control Panel

The Control Panel is the major starting point for adjusting the hardware and user interface settings in Windows. The Control Panel’s default view is known as Category view. When you click on an icon, it displays various available tasks. Figures 13-11 and 13-12 show the Windows Vista and Windows XP versions of the Control Panel configured for Category view.

Figure 13-11 The Windows Vista Control Panel in its default Category view.

image

Figure 13-12 The Windows XP Control Panel in its default Category view, and the submenus triggered by each icon.

image

If you’re a Windows newcomer, you might prefer the Category view’s task-oriented design. However, if you’re already familiar with Control Panel, you’ll probably prefer the Classic View option in the task pane. Figures 13-13 and 13-14 show Windows Vista and Windows XP versions of the Control Panel configured for Classic view.

Figure 13-13 The Windows Vista Control Panel in its alternative Classic View.

image

Figure 13-14 The Windows XP Control Panel in its alternative Classic View.

image

For the exam it is important to know how to open the Control Panel and how to access some of the Control Panel functions by way of Properties sheets, which are located in various areas of Windows.

Starting Control Panel

You can open the Control Panel from the Start button, My Computer, or the left window pane of Windows Explorer. (Note: If you’re using the Classic Start menu, you will have to click Start, Settings, Control Panel.)

Open any Control Panel icon or link to see current settings and make adjustments for the devices it controls. If the Classic view is used for the Control Panel folder, double-click an icon to open it. If Web view is used in Windows XP, a single click will open an icon. Single click is the default for Windows Vista.

Shortcuts to Control Panel Functions

Some Control Panel functions can be accessed through properties sheets. For example, the following list explains how to access the Control Panel by right-clicking:

Computer/My Computer and select Properties; it will open the System Window.

Taskbar and select Properties; it will open the Taskbar and Start Menu Properties window.

Desktop in Windows XP and select Properties; it will open the Display window. (In Windows Vista, there is no Properties option; it is known as Personalize, which opens the Personalization window.)

Network in Windows Vista and select Properties; it will open the Network and Sharing Center window.

My Network Places in Windows XP and select Properties; it will open the Network Connections window.

Command Prompt

While most computer users won’t use the command prompt very often, technicians use it frequently, as it enables you to

• Recover data from systems that can’t boot normally.

• Reinstall lost or corrupted system files.

• Print file listings (believe it or not, you can’t do this in Windows Explorer or My Computer!).

• Copy, move, or delete data.

• Display or configure certain operating system settings.

For more information on starting a command-prompt session and running command-prompt commands and functions, see the section “Command-Line Functions,” later in this chapter. For more information about running Windows Explorer from the command prompt, see “Windows Explorer Command-Line Options,” in this chapter. For more information on the command-line Attrib.exe command, see “Setting and Displaying File and Folder Attributes in Windows Explorer” in this chapter.

Network

Windows Vista uses the Network window to view connections to other computers, and their shares. This is the successor to My Network Places. The Network window can be accessed from the Start Menu, or from within the left window pane of the Computer window. To manage network connections while in the Network window, click the Network and Sharing Center button. After that window is displayed, click Manage Network Connections. From here you can make whatever changes you want to the network connection. You will notice that by default a network adapter is known as “Local Area Connection,” but you can change that name at any time. Many of the settings can be accessed by right-clicking the network connection and selecting Properties.

The properties sheet for a network connection displays the protocols (for example TCP/IP), services (such as File and Printer Sharing), and network clients installed (such as Client for Microsoft Networks), as shown in Figure 13-15. If you cannot connect to other computers on the network, keep in mind that your computer must

• Use the same protocol

• Use the same client

• Have a unique name and unique IP address on the network

Figure 13-15 Windows Vista Local Area Connection Properties window.

image

My Network Places

Windows XP uses My Network Places to manage dial-up and local area network connections. When you open My Network Places, you see a list of network locations, including those located on the local computer and on remote computers (see Figure 13-16).

Figure 13-16 Windows XP’s My Network Places shows all types of shared resources, including LAN and Internet. Clicking View Network Connections displays connection details. Select a connection for more details.

image

To view connection types (dial-up, wired network, wireless network), click View Network Connections in the Network Tasks pane. To configure a connection, right-click the connection and click Properties. To repair a connection, select it and click Repair This Connection from the Network Tasks pane.

The properties sheet for a network connection displays the protocol (TCP/IP), services (File and Printer Sharing), and network clients installed (see Figure 13-17). If you cannot connect to other computers on the network, keep in mind that your computer must

• Use the same protocol

• Use the same client

• Have a unique name and unique IP address on the network.

Figure 13-17 The General tab for a local area connection in Windows XP.

image

To learn more about configuring TCP/IP and other network settings, see Chapter 16, “Networking.”

TaskBar/Systray

It’s obvious that any open applications show up on the taskbar. However, some users don’t make use of another component of the taskbar: the Quick Launch. The Quick Launch is located directly to the right of the Start button. You can enable it by right-clicking on the taskbar and selecting Properties, and then clicking the Show Quick Launch checkbox. This is disabled in Windows XP by default, but is enabled in Windows Vista. It’s a nice tool because the shortcuts within the Quick Launch are the same size as shortcuts on the desktop; however you always have easy access to them.

Even before you click on the Start menu, most Windows installations already have several programs running in the System Tray (also known as the systray or SysTray), which is located in the lower-right corner of the screen, next to the clock. Microsoft also refers to this as the Notification area.

Although programs you launch manually can wind up in the System Tray, most programs you find there are started automatically from one of these locations:

• The Startup group in the Start menu

Load= or Run= statements in Win.ini

Shell=explorer.exe filename in System.ini

• Various Registry keys, such as

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunServices

Tip

These and other methods for autolaunching programs, including methods used by spyware, are discussed at http://antivirus.about.com/od/windowsbasics/tp/autostartkeys.htm.

Figure 13-18 shows the Run key in the Registry of a Windows XP system with more than 20 entries. Running so many programs can slow down the Windows startup process and use memory.

Figure 13-18 The contents of HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun indicates this computer starts more than 20 processes at startup. Other autostart methods such as the Startup group can start additional programs and processes.

image

Most systray programs wait for an event (such as a disk insertion or a mouse click) after they are started. To see what each icon in the systray does, right-click the icon.

Note

You can disable startup programs in the systray by using the Microsoft System Configuration utility (Msconfig); see Chapter 15, “Troubleshooting and Maintaining Windows,” for details.

The System Tray is part of the Taskbar, which displays running programs that do not insert themselves into the systray. By default, the Taskbar displays one row of program icons, reducing the amount of space given to each program as more and more programs are run. Figure 13-19 shows a typical Windows XP system’s System Tray and Task Bar and their properties sheet. To display the Taskbar’s properties sheet, right-click on an empty section of the Taskbar and select Properties.

Figure 13-19 The Taskbar and System Tray (Notification area), and their properties sheet, on a typical Windows XP system.

image

To make the Taskbar more useful if you have many programs running, you can resize it by dragging its top edge: Drag its top edge up to create additional rows or drag the top edge down to the edge of the screen to make it vanish. You can also drag the Taskbar to any side of the screen.

Tip

To prevent the Taskbar from being accidentally resized or dragged, enable the Lock the Taskbar option in the Taskbar properties sheet. You can also autohide the Taskbar to provide more display area with the Taskbar properties sheet. When the Taskbar is set to autohide, it is displayed only when you move the mouse to the edge of the screen where the Taskbar is hiding or if you press Ctrl+Esc to bring up the Start menu.

Start Menu

While the Start Menu has a default configuration and most programs add one or more shortcuts to it when they are installed, you can add items to the Start menu, remove items from it, create or remove folders, move an item from one folder to another, and switch between large icons (default) and small icons. You can also right-click on the menu and select Sort by Name. The default Start menu in Windows XP automatically adds the most frequently used programs to a special section of the Start menu.

Adding, Removing, and Sorting Start Menu Items and Folders

The Start menu is comprised of shortcuts to programs and other objects on your system. To add items to the default Windows Start menu, follow these steps:

Step 1. Right-click the Start button.

Step 2. To add a shortcut for the current user only, select Explore. To add a shortcut for all users, select Explore All Users.

Step 3. The Start menu folder opens in the left window (see Figure 13-20); shortcuts on the Start menu are shown in the right window. To see additional Start menu folders, click the plus sign (+) next to Programs in the left window.

Figure 13-20 Preparing to add items to the default Windows XP Start menu.

image

Step 4. To create a new folder for the shortcut, click the folder in the left window where you want to create the shortcut to open it in the right window. Right-click an empty area in the right window and select New, Folder. Name the folder as desired.

Step 5. To select a folder for the shortcut, click the folder in the left window. The folder’s contents appear in the right window.

Step 6. Click File, New, Shortcut to start the Shortcut Wizard. (This will only function if you have chosen Explore in Windows Vista. Explore All Users will not allow a new shortcut.)

Step 7. You can enter the path to the program (such as C:WindowsSystem32cmd.exe) or click the Browse button to locate the program for which you are making a shortcut. Click Next.

Step 8. The shortcut name created by Windows is displayed. To keep the name created by Windows, click Finish. You can also change the name as desired and click Finish.

Step 9. Click OK. The new shortcut (and new folder, if any) appear on your Start button menu.

Windows Vista/XP can also be configured to use the Classic Start menu (see the next section “Adjusting Start Menu Properties,” for details).

If you are using the Classic Start menu, follow these steps:

Step 1. Right-click an empty portion of the Taskbar and select Properties.

Step 2. Select the Start Menu tab and click the Customize button.

Step 3. Click Add.

Step 4. You can enter the path to the program (such as C:WindowsSystem32cmd.exe) or click the Browse button to locate the program for which you are making a shortcut. Click Next.

Step 5. Select the folder to place the shortcut in, or click New Folder to create a new folder for the shortcut. Enter a name for the new folder if desired. Click Next.

Step 6. The shortcut name created by Windows is displayed. To keep the name created by Windows, click Finish. You can also change the name as desired and click Finish.

Step 7. Click OK. The new shortcut (and new folder, if any) appears on your Start button menu.

Tip

It’s much easier to add shortcuts to the Windows Vista/XP Start menu if you switch to the Classic Start menu. Even if you prefer the normal Windows Vista/XP menu, I recommend you switch to the Classic Start menu, add the shortcuts you need to make, and switch back to the default menu.

To remove an item from the Start menu, follow the steps to add an item, but instead of adding a new item, click the Remove button and select the shortcut to remove. If you use the Windows Explorer view of the Start menu, press Del to send the shortcut to the Recycle Bin, or Shift+Del to discard the shortcut. To sort shortcuts, click Start, All Programs, right-click a folder or shortcut, and select Sort by Name.

Adjusting Start Menu Properties

You can adjust the appearance of the Start menu in various ways. To modify the Start menu, right-click the taskbar and select Properties. This will open the Taskbar and Start Menu Properties window. Then click on Start Menu tab and select the Customize button, Windows offers the following options and customizations:

• Clear shortcuts to recently opened documents

• Clear IE browser history (Classic Start menu only)

• Select objects to appear on Start menu and Taskbar from list

• Most frequently used programs are automatically added to Start menu (default Start menu only)

• Choice of icon size

Click the Advanced tab to select the following:

• Whether to automatically open submenus

• Whether to highlight newly installed programs

• Which standard items to include on the Start menu and whether to list them as links or menus

• Whether to list most recently used documents

Indexing

Windows Vista and Windows XP offer indexing services in an attempt to help you find files faster. However, indexing too much content can lead to poorer operating system performance.

To adjust the indexing settings in Windows Vista go to Start, Control Panel, System and Maintenance, and click Indexing Options. From here you can modify whether folders are indexed by clicking on the Modify button and selecting or deselecting the folders you wish. It is not recommended to select an entire volume (such as C:), because it will cause poor performance. Use indexing for specific folders where you store important data that you search for on a regular basis. If you don’t want indexing at all, you can either deselect all folders that are checked or disable the indexing in general. To disable indexing altogether, follow these steps:

Step 1. Click Start, then right-click Computer and select Manage. This brings up the Computer Management window.

Step 2. From here expand Services and Applications in the left window pane and click Services.

Step 3. In the right window pane, scroll down to Windows Search, right-click it and select Stop. You can restart the service at any time by right-clicking and selecting Start. Check the startup type by right-clicking the service and selecting Properties. If the startup type is set to Automatic, you should change it to manual or disabled; otherwise, the service will start back up again when you restart the computer.

You can also turn off indexing for individual drives, as follows:

Step 1. Open Windows Explorer.

Step 2. Right-click the volume you wish to stop indexing on; for example C:, and select Properties.

Step 3. At the bottom of the window, deselect Index This Drive for Faster Searching.

To turn off indexing in Windows XP, follow these steps:

Step 1. Click Start, right-click My Computer, and select Manage. This brings up the Computer Management window.

Step 2. From here expand Services and Applications in the left window pane and click Services.

Step 3. In the right window pane, scroll to Indexing Service, right-click it and select Stop. You can restart the service at any time by right-clicking and selecting Start. Check the startup type by right-clicking the service and selecting Properties. If the startup type is set to Automatic, you should change it to manual or disabled; otherwise the service will start back up again when you restart the computer.

You can also turn off indexing on any volume by right-clicking the volume, selecting Properties and deselecting Allow Indexing Service to Index This Disk for Fast File Searching.

Essential Operating System Files

The following sections cover essential operating system files, such as those used to boot Windows Vista and XP, Registry data files, and the hibernation file used to store system configuration settings on a system in hibernation.

Windows Vista Boot Sequence

After the BIOS starts up and the MBR and boot sector of the hard drive have been located and accessed, the Windows Boot Manager is started. This and the following files are required to start Windows Vista:

Bootmgr (Windows Boot Manager)— This is the Windows loader program. It takes the place of NTLDR in earlier versions of Windows, and determines which operating system to start.

BCD (Boot Configuration Data)— Located in ootcd. It furnishes the Windows Boot Manager with information about the operating system(s) to be booted. It is the successor to boot.ini and can be modified with MSCONFIG or with the bcdedit.exe program. BCD was developed to provide an improved mechanism for describing boot configuration data, and to work better with newer firmware models such as the Extensible Firmware Interface (EFI)

Ntoskrnl.exe— The Windows kernel, which completes the boot process after being initialized by the Windows Boot Manager.

Hal.dll— The Hardware Abstraction Layer, a software translator between Windows and system hardware.

SYSTEM key in the Registry— This is read to determine the system configuration.

Device drivers— These are loaded according to the information stored in the Registry.

Windows XP Boot Sequence

The following files are required to start Windows XP:

NTLDR— The Windows loader program.

Boot.ini— Options in this file affect how Windows starts up.

Ntdetect.com— This detects the hardware installed on your system.

Ntoskrnl.exe— The Windows kernel, which completes the boot process after being initialized by NTLDR.

Hal.dll— The Hardware Abstraction Layer, a software translator between Windows and system hardware.

SYSTEM key in the Registry— This is read to determine the system configuration.

Device drivers— These are loaded according to the information stored in the Registry.

The following files are optional:

Bootsect.dos— This contains the boot sectors for another operating system if you are multibooting.

Ntbootdd.sys— This device driver is used only if Windows is being started from a SCSI drive whose host adapter does not have an onboard SCSI BIOS enabled.

The following sections discuss some of these files in more detail.

BOOT.INI

The Boot.ini file is a specially formatted text file that configures the startup process for Windows XP. It resides in the default boot drive, even if Windows is installed on another drive.

Note

Windows XP also provides a command-line tool called Bootcfg, which can be used to insert the proper syntax for common commands. Bootcfg can also be used in the Windows XP Recovery Console.

Boot.ini indicates where the different versions of Windows are located. Here’s the Boot.ini from a system that boots Windows XP Professional:

image

The [boot loader] section is configured to start Windows XP by default. It also provides a maximum time of 30 seconds to pause a dual-boot menu (if one exists), and to enable the user to choose a different version of Windows if she was running a dual-boot configuration; for example, Windows XP and Windows 2000.

The [operating systems] section identifies the locations of any Windows versions on the computer. The next line states that Windows XP Professional is located in partition 1 of the first hard disk (disk 0).

Many additional options can be added to Boot.ini if necessary for troubleshooting. Boot.ini can be viewed with Notepad. However, if you need to configure Boot.ini to run your system in a troubleshooting mode, you should use MSConfig to view Boot.ini and configure it.

Caution

Boot.ini should not be modified unless you cannot start your computer. You should consult the Microsoft Knowledge Base for help in such cases. Fiddling with Boot.ini is not a good idea on a working system because unnecessary changes could stop your system from booting.

NTLDR and NTDETECT.COM

After the computer completes the POST and the system BIOS’s bootstrap loader locates the NTLDR file, NTLDR does the following:

• Enables the user to select an operating system to start (if more than one is installed). NTLDR examines the contents of Boot.ini to find out which operating systems are installed.

• Loads the Windows startup files.

• Uses the Ntdetect.com program to determine what hardware is installed and places a list of the detected hardware into the Windows Registry.

• Loads Ntoskrnl.exe (the Windows kernel) and the Hardware Abstraction Layer (Hal.dll) into memory and hands over control to Ntoskrnl.exe after loading device drivers appropriate for the system configuration.

The NTLDR and Boot.ini files are located in the root directory (folder) of the default Windows drive.

NTBOOTDD.SYS

This device driver is used only if Windows is being started from a SCSI drive whose host adapter does not have an onboard SCSI BIOS enabled. Most desktop computers no longer use SCSI hard disk drives, so the odds of encountering this on a Windows XP installation are slim to none.

Registry Data Files

The Windows Registry is stored in different files, roughly corresponding to different sections of the Registry. The following files are stored in the SYSTEM32CONFIG folder beneath the default Windows folder (typically Windows); the backup file for each is listed in parentheses:

default (default.LOG)—Stores .DEFAULT settings from the HKEY_USERS section of the Registry.

SAM (SAM.LOG)—Stores part of the Security Account Manager database from the HKEY_LOCAL_MACHINESAM section of the Registry.

SECURITY (SECURITY.LOG)—Stores part of the Security Account Manager database from the HKEY_LOCAL_MACHINESECURITY section of the Registry.

software (SOFTWARE.LOG)—Stores software settings from the HKEY_LOCAL_MACHINESOFTWARE section of the Registry.

system (system.LOG)—Stores settings from the HKEY_LOCAL_MACHINESYSTEM section of the Registry.

Windows also has two additional files for each user:

ntuser.dat (NTUSER.DAT.LOG)—Stores most user-preference settings in the Documents and Settingsusername folder for each user.

UsrClass.dat (UsrClass.dat.LOG)—Stores user-preference settings for file associations and applications in the Documents and SettingsusernameLocal SettingsApplication DataMicrosoftWindows folder for each user.

Caution

SAM and SECURITY sections of the Registry don’t contain user-editable keys, so they appear to be empty. Don’t be fooled—and don’t erase the matching Registry files either!

To view or edit the Registry, use the Windows application Regedit.exe.

For details, see the section “Regedit.exe,” later in this chapter.

Backing Up Registry Data Files

To back up the Windows 2000 Registry, use the Windows 2000 backup program. Click Start, Accessories, System Tools, Backup to start it. From the opening menu, select Emergency Repair Disk, and select the option to back up the Registry on the next screen; insert a blank, formatted disk when prompted to complete the process. Because the Windows 2000 Registry can occupy as much as 20MB of disk space on some systems, the Emergency Repair Disk (ERD) does not contain a copy of the Registry itself but includes other information necessary to help restore the system in case of a crash. The Registry is stored in a folder called RegBack, which is contained in the WinNTRepair folder. In the event of a serious system problem, both the Windows 2000 Emergency Repair Disk and the Registry backup in the RegBack folder would be used to restore the system. You should re-create the ERD and Registry backup whenever you install new hardware or software to keep a record of the latest system configuration.

Windows XP also uses the Windows Backup program to back up the Registry as part of backing up the System State (see Figure 13-21). In Windows XP Professional, the System State also includes boot files, COM+ Class Registration database, and files protected by Windows File Protection. This backup can be stored on tape, an external hard disk, or removable media.

Figure 13-21 Preparing to back up the Windows XP Registry as part of the System State backup using the Windows XP backup program, NTBackup.

image

image

For more information about NTBackup, see the “NTBackup” section later in this chapter.

In Windows Vista there are a few ways to backup Registry data files. First of all, Vista does not use NTbackup, instead it has a program called Backup Status and Configuration. From here you would have to do a complete PC backup because the Automatic backup option doesn’t backup the registry files. A simpler solution is to create a new restore point with the System Restore wizard. Or you could simply export the entire registry from the Registry Editor. Keep in mind that this could be a big file—upwards of 200 MB.

hiberfil.sys

When you select the option to hibernate your system from the Shut Down menu, Windows creates a file called hiberfil.sys to store information about open programs, program windows and data files. hiberfil.sys can range in size from 250MB to more than 1GB and can be safely removed after the system comes out of hibernation.

You should delete hiberfil.sys before using any defragmenting program, as the file is a system file that cannot be defragmented. To delete the file, follow this procedure to temporarily disable hibernation in Windows XP/2000:

Step 1. Open the Power Options dialog in Control Panel

Step 2. Click the Hibernate tab

Step 3. Clear the Enable Hibernation checkbox and click OK.

hiberfil.sys is removed automatically. To re-enable hibernation, follow Steps 1–3, but in Step 3, click the empty Enable Hibernation checkbox to re-enable this feature.

To disable hibernation in Windows Vista, press Windows+R to open the Run prompt. Then type CMD to bring up the command-line interface. From here type powercfg.exe/hibernate off. To turn it back on, follow the same steps but instead type powercfg.exe/hibernate on. (Remember that you will need to run the command-line in elevated mode.)

Disk Partition, File and Folder Management

Understanding how to manage hard disks, files on all types of disks, and folders is an essential part of most A+ Certification exams. The following sections explain these concepts and the command-line and GUI-based tools and methods needed to work with disk partitions, files, and folders.

Disk Partitions

An internal hard disk (PATA, SATA, or SCSI) cannot be used until it is prepared for use. There are two steps involved in preparing a hard disk:

• Creating partitions and logical drives

• Formatting partitions and logical drives (which assigns drive letters)

A disk partition is a logical structure on a hard disk drive which specifies the following:

• Whether the drive can be bootable

• How many drive letters (one, two, or more) the hard disk will contain

• Whether any of the hard disk’s capacity will be reserved for a future operating system or other use

Although the name “disk partition” suggests the drive will be divided into two or more logical sections, every PATA, SATA, and SCSI hard disk must go through a partitioning process, even if you want to use the entire hard disk as a single drive letter. All versions of Windows support two major types of disk partitions:

Primary— A primary partition can contain only a single drive letter and can be made active (bootable). Only one primary partition can be active. Although a single physical drive can hold up to four primary partitions, you need only one primary partition on a drive that contains a single operating system. If you install a new operating system in a dual-boot configuration with your current operating system, a new version of Windows can be installed in a different folder in the same drive, or can be installed in an additional primary partition. If you want to use a non-Windows operating system along with your current operating system, it might require its own primary partition, or even special third-party software such as Norton’s PartitionMagic.

Extended— An extended partition differs from a primary partition in two important ways:

• An extended partition doesn’t become a drive letter itself but can contain one or more logical drives, each of which is assigned a drive letter.

• Neither an extended partition nor any drive it contains can be bootable.

Only one extended partition can be stored on each physical drive.

If the drive will be used by a single operating system, one of these three ways of partitioning the drive will be used:

Primary partition occupies 100% of the physical drive’s capacity— This is typically the way the hard disk on a system sold at retail is used, and is also the default for disk preparation with Windows. This is suitable for the only drive in a system or an additional drive that can be used to boot a system, but should not be used for additional drives in a system that will be used for data storage.

Primary partition occupies a portion of the physical drive’s capacity, and the remainder of the drive is occupied by an extended partition— This enables the operating system to be stored on the primary partition, and the applications and data to be stored on one or more separate logical drives (drive letters created inside the extended partition). This is a common setup for laptops, but requires the partitioning process be performed with different settings than the defaults. This configuration is suitable for the only drive or first drive in a multiple-drive system.

Extended partition occupies 100% of the physical drive’s capacity— The drive letters on the extended partition can be used to store applications or data, but not for the operating system. An extended partition cannot be made active (bootable). This configuration is suitable for additional hard disk drives in a system (not the first drive); an extended partition can contain only one logical drive or multiple logical drives.

You can also leave some unpartitioned space on the hard disk for use later, either for another operating system or another drive letter.

Partitioning creates drive letters; formatting creates file systems on the drive letters created during partitioning. Figure 13-22 helps you visualize how these different partitioning schemes could be used on a typical hard disk.

Figure 13-22 Typical disk partitioning schemes used for the first hard disk (first four examples) or an additional drive (last two examples).

image

After a disk is partitioned, the drive letters must be formatted using a supported file system.

To learn more about preparing hard disks with Windows, see the following section “Using Disk Management.”

Using Disk Management

The Disk Management snap-in of the Computer Management console is the GUI-based application for analyzing and configuring hard drives. You can do a lot from here, as shown in Table 13-3. Try some of the configurations listed on a test computer. All you need is a drive with unpartitioned space.

Table 13-3 Configurations in Disk Management

image

image

image

image

In Figure 13-23 we also can see the disks at the top of the window and their status. For example, the C: partition is healthy. It also shows us the percent of the disk used, and other information such as whether the disk is currently formatting, if it’s dynamic, or if it has failed. In some cases you might see “foreign” status. This means that a dynamic disk has been moved from another computer (with another Windows operating system) to the local computer, and it cannot be accessed properly. To fix this, and be able to access the disk, add the disk to your computer’s system configuration. To add a disk to your computer’s system configuration, import the foreign disk (right-click the disk and then click Import Foreign Disks). Any existing volumes on the foreign disk become visible and accessible when you import the disk. For more information on the plethora of disk statuses, see the Microsoft TechNet article, “Disk Status Descriptions,” at http://technet.microsoft.com/en-us/library/cc738101(WS.10).aspx.

Figure 13-23 Creating a partition from Unallocated Disk Space.

image

Figure 13-24 Creating a logical drive from within an extended partition.

image

Mount Points and Mounting a Drive

You can also “mount” drives in Disk Management. A mounted drive is a drive that is mapped to an empty folder within a volume that has been formatted as NTFS. Instead of using drive letters, mounted drives use drive paths. This is a good solution for when you need more than 26 drives in your computer, since you are not limited to the letters in the alphabet. Mounted drives can also provide more space for temporary files and can allow you to move folders to different drives if space runs low on the current drive. To mount a drive, follow these steps:

Step 1. Right-click the partition or volume you want to mount and select Change Drive Letters and Paths.

Step 2. In the displayed window click Add.

Step 3. Then browse to the empty folder you wish to mount the volume to, and click OK for both windows.

As shown in Figure 13-25, the DVD-ROM drive has been mounted within a folder on the hard drive called Test. The figure is showing the Properties window for the folder Test. It shows that it is a mounted volume, shows the location of the folder (which is the mount point), and the target of the mount point, which is the DVD drive containing a Windows Vista DVD. To remove the mount point, just go back to Disk Management, right-click the mounted volume and select Change Drive Letters and Paths, and then select Remove. Remember that the folder you want to use as a mount point must be empty, and it must be within an NTFS volume.

Figure 13-25 Empty NTFS folder acting as a mount point.

image

Windows File Systems

What exactly is a file system, anyway? A file system describes how data and drives are organized. In Windows, the file system you choose for a hard disk affects the following:

• The rules for how large a logical drive (drive letter) can be, and whether the hard disk can be used as one big drive letter, several smaller drive letters, or must be multiple drive letters.

• How efficiently a system stores data; the less wasted space, the better.

• How secure a system is against tampering.

• Whether a drive can be accessed by more than one operating system.

The term file system is a general term for how an operating system stores various types of files. Windows supports two different file systems for hard disks, FAT32 and NTFS, and supports FAT for floppy disks.

FAT32

FAT32 was introduced in 1995 and is supported by Windows Vista, XP, and 2000, although NTFS is preferred. FAT32 has the following characteristics:

• The 32-bit file allocation table, which allows for 268,435,456 entries (232) per drive. Remember, an entry can be a folder or an allocation unit used by a file.

• The root directory can be located anywhere on the drive and can have an unlimited number of entries. Hooray!

• FAT32 uses an 8KB allocation unit size for drives as large as 16GB.

• The maximum logical partition size allowed is 2TB (more than 2 trillion bytes).

You can use FAT32 to format hard disks, flash memory, and removable media drives. However, FAT32 is recommended for hard disks only if the hard disk must also be accessed by dual-booting with an older version of Windows, for example Windows 95, 98, or Me, which do not support NTFS.

NTFS

The New Technology File System (NTFS) is the native file system of Windows Vista, XP, and 2000. As implemented in Windows Vista and XP, NTFS has many differences from FAT32, including

Access Control— Different levels of access control by group or user can be configured for both folders and individual files.

Built-in compression— Individual files, folders, or an entire drive can be compressed without the use of third-party software.

A practical limit for partition sizes of 2TB— The same as with FAT32, although partitions theoretically can reach a maximum size of 16 exabytes (16 billion billion bytes).

Individual Recycle Bins— Unlike FAT32, NTFS includes a separate recycle bin for each user.

Support for the Encrypting File System (EFS)—EFS enables data to be stored in an encrypted form. No password, no access to files!

Support for mounting a drive— Drive mounting enables you to address a removable-media drive’s contents, for example, as if its contents are stored on your hard disk. The hard disk’s drive letter is used to access data on both the hard disk and the removable media drive.

Disk quota support— The administrator of a system can enforce rules about how much disk space each user is allowed to use for storage.

Hot-swapping— Removable-media drives that have been formatted with NTFS (such as Jaz, Orb, and others) can be connected or removed while the operating system is running..

Indexing— The Indexing service helps users locate information more quickly when the Search tool is used.

Note

Windows Vista, XP, and 2000 can’t create a FAT32 partition larger than 32GB. However, if the partition already exists, they can use it.

Follow these steps to determine what file system was used to prepare a Windows hard drive:

Step 1. Open Windows Explorer.

Step 2. Right-click the drive letter in the Explorer Window and select Properties.

Step 3. The Properties sheet for the drive will list FAT32 for a drive prepared with FAT32, and NTFS for a drive prepared with NTFS (see Figure 13-26).

Figure 13-26 A hard disk formatted with FAT32 (left) and a hard disk formatted with NTFS version 5 (right).

image

Convert.exe

Windows includes the command-line Convert.exe program to enable users to change the current FAT32 file system on a drive to NTFS without reformatting the drive (which would wipe out all of the information on the drive).

To convert a drive’s file system using Convert.exe, follow these steps:

Step 1. Open a command-prompt window. (For Windows Vista, refer to the options that follow this list.)

Step 2. Type Convert x: /fs:ntfs and press Enter.

Note

The x: is a variable. Replace it with the drive you want to convert, for example c:, d:, f:, and so on.

To see advanced options for Convert, type convert /?.

In Windows Vista, you will need to run this command in elevated mode. There are several ways to open a command-line in elevated mode. Here are two options:

• Click Start, All Programs, Accessories, Command Prompt. Right-click Command Prompt and select Run as Administrator. Click Continue at the permission window.

• Click Start and type cmd. Then press Ctrl+Shift+Enter to execute cmd.exe in elevated mode. Click Continue at the permission window.

To learn more about preparing hard disks with Windows, see the section “Using Disk Management,” earlier in this chapter.

Note

Windows XP/2000 supports the older FAT16 file system, but FAT16 is not covered on the exam.

Working with Folders/Directories

Windows provides two ways to work with folders (also called directories): visually, through Windows Explorer or My Computer, and at the command line (MKDIR/MD, CHDIR/CD, RMDIR/RD). For more information on working with folders and directories on the command line, see “MD/CD/RD,” later in this chapter.

To navigate between folders in Windows Explorer, follow these procedures:

• To view the subfolders (subdirectories) in a folder (directory), click the plus (+) sign next to the folder name in the left pane of Windows Explorer.

• To view the contents of a folder (including files and other folders), click the folder in the left pane of Windows Explorer. The contents of the folder appear in the right pane.

• To navigate to the previous view, click the left-hand arrow above the address bar.

• To move to the next view, click the right-hand arrow.

• To navigate to the next higher folder in the folder hierarchy, click the up-arrow/folder button.

Figure 13-27 illustrates these concepts.

Figure 13-27 Working with folders (directories) in Windows Explorer.

image

To create a new folder in Windows Explorer, follow these steps:

Step 1. Open the folder in which you want to create a new folder. The folder’s contents are displayed in the right pane.

Step 2. Right-click an empty space in the right pane and select New, Folder (see Figure 13-28).

Figure 13-28 Creating a new folder in Windows Explorer.

image

Step 3. Enter the new folder name and press Enter.

To remove a folder from either Windows Explorer or My Computer views, follow these steps:

Step 1. Right-click the folder and select Delete.

Step 2. Click Yes on the Confirm Folder Delete dialog.

The folder and its contents are moved to the Recycle Bin. To bypass the Recycle Bin, hold down either Shift key and select Delete and then click Yes.

File Management

File management skills such as file creation, filenaming, file attributes, compression, encryption, file permissions, and file types are necessary for A+ Certification exams. The following sections discuss these skills.

Creating Files

Data files that can be accessed by registered applications can be created within the Windows Explorer/My Computer/Computer interface. To create a new file, follow these steps:

Step 1. Open the folder where you want to create the file.

Step 2. Right-click empty space in the right window pane and select New to display a list of registered file types (see Figure 13-29).

Figure 13-29 Creating a new text document on drive E:.

image

Step 3. Move the mouse pointer to the file type desired and click it. The new (empty) file is created in the open folder.

Step 4. Enter a new name if desired.

Step 5. To edit the file, double-click it.

File Types

Broadly speaking, there are two types of files used by Windows and other operating systems:

• Text

• Binary

Text files can be read with an ordinary text editor such as Notepad or Edit. However, most word processing and other types of document files, although they contain text, also contain formatting characters that a text editor cannot properly interpret.

Binary files look like gibberish when viewed in a text editor. Only the operating system (in the case of application binary files) or a compatible application (in the case of binary data files) can interpret their contents.

The following types of files can be started (executed) from a command prompt or from Windows Explorer/My Computer:

• .COM

• .EXE

• .BAT

Both .EXE and .COM files are binary executable files, whereas a .BAT file (also called a batch file) is a series of commands that are processed in sequence. Simple batch files contain the same commands that could be entered manually at a command prompt. However, it is also possible to create batch files that have conditional logic and display progress messages.

When an executable filename is entered at a command prompt, the current folder is searched first, followed by the folders in the path. If executable files in the current folder or a folder in the path have .COM, .EXE, and .BAT extensions with the same name preceding the extension, the .COM file is always launched first. For example, assume that the current folder contains DOIT.COM, DOIT.EXE, and DOIT.BAT. DOIT.COM is launched if you enter DOIT.

Naming Files

Windows XP supports long file and folder names (LFN). LFNs can have as many as 255 characters and can contain spaces and most other alphanumeric characters, but cannot contain any of the following characters (which are used by the operating system):

/ : * ? " < > |

A file can contain more than one period, but only the characters after the last period are considered the extension. In the following example, .doc is the extension:

mydocument.ltr.doc

By default, Windows Explorer doesn’t show file extensions for registered file types. You can adjust the settings in Windows Explorer to show all file extensions by clicking Tools, Folder Options, View, and then deselecting the Hide Extensions for Known File Types checkbox. To view an individual file’s extension, right-click the file and select Properties in Windows Explorer. File extensions can be seen normally within the Command Prompt when using the DIR command.

Long Filenames and DOS Alias Names

To enable files to be accessed by operating systems that don’t support long filenames (LFN), Windows stores a DOS alias (also known as the MS-DOS name) as well as the LFN when a file or folder is created.

The DOS alias name is created from the first six letters of the LFN, replacing illegal characters with an underscore, removing spaces, and ignoring additional periods in the LFN. To distinguish between different files with the same DOS alias names, the first DOS alias name in a folder is indicated with a tilde and the number 1 (~1); the second as ~2, and so on. If more than nine files with the same initial letters are saved to a given folder, the first five letters are used for files numbered ~10 and up, and so forth. The three-letter file extension is reused for the DOS alias. Table 13-4 shows the results of creating three files with the same initial files in the same folder. The underlined characters in the original LFN in Table 13-3 are used to create the DOS alias name.

Table 13-4 Examples of Creating DOS Aliases from LFNs

image

Caution

DOS alias names for existing files can change if the file is renamed or deleted and then re-created.

There is a limit of 255 characters for LFNs. However, the path to the file counts against this limit.

Windows Vista/XP/2000 use LFNs by default; DOS alias names are used only for backward compatibility with other operating systems. The command-prompt mode uses LFNs with no special options. For example, to change to My Documents from a normal command prompt, the command would be

cdMy Documents

The Recovery Console used by Windows for troubleshooting and system recovery supports LFNs. However, you must use double quote marks around the LFN: CHDIR “My Documents”.

File Extensions

By default, Windows hides file extensions such as .BAT, .DOC, and .EXE for registered file types. However, you can change this default in Windows Explorer/My Computer.

See “Changing Viewing Options in Windows Explorer,” earlier in this chapter.

Note

For a comprehensive list of file extensions and their meanings, I recommend the WhatIs? website’s “Every File Format in the World” section, which lists more than 3,100 file formats at http://whatis.techtarget.com.

Caution

Don’t remove or alter the file extension if you rename a file. If you do, Windows won’t be able to determine which program it should use to open the file.

Setting and Displaying File and Folder Attributes in Windows Explorer

You’ve probably heard of file attributes, but what are they used for? File and folder attributes are used to indicate which files/folders have been backed up, which files/folders need to be backed up, which files/folders should be hidden from normal display, and which files/folders are used by the system. Windows also supports additional attributes such as when a file/folder was created and last modified. When the NTFS file system is used on a drive and additional advanced attributes (encryption or compression) are also available.

The ATTRIB command can be used to set or display basic attributes for a file/folder from the Windows command line. However, to set or display advanced file attributes, you must use the Windows Explorer GUI interface.

Basic file attributes include

Archive— Files with the archive attribute have not yet been backed up. When you back up a file with XCOPY or any backup program, the archive bit is turned off. Change a file’s attribute to archive to force a backup program to back it up if “changed files only” are being backed up.

Read-only— Files with the read-only attribute cannot be deleted or overwritten at an MS-DOS prompt and cannot be overwritten within a 32-bit Windows application. A read-only file can be deleted within Windows Explorer, but only after the user elects to override the read-only attribute. Change a file’s attributes to read-only to provide protection against accidental deletion or changes.

System— Files with the system attribute are used by the operating system; these files often have the hidden attribute as well. Windows Explorer will caution users when they attempt to delete system files.

Hidden— Files with the hidden attribute cannot be copied with COPY or with XCOPY and cannot be viewed with the normal Windows Explorer settings. Some log files created by Windows (such as Bootlog.txt) are stored with the hidden attribute.

A file or folder can have multiple attributes; for example, the NTLDR file used by Windows XP/2000 has the archive, system, hidden, and read-only attributes. If you wanted to edit NTLDR, you would use ATTRIB to remove these attributes before changing the file, and reapply these attributes after changing the file.

Options for ATTRIB in Windows include

image

When the ATTRIB command is run from the Windows XP/2000 Recovery Console, the /S and /D options are not available, but +C can be used to compress a file and -C can be used to uncompress a file.

Here are some examples:

ATTRIB Displays all files in the current folder with attributes (A for archive; R for read-only; S for system; H for hidden).

ATTRIB +R Command.com Sets the file Command.com to have the read-only attribute.

ATTRIB -H -R -S C:MSDOS.SYS Removes the hidden, read-only, and system attributes from the Msdos.sys file in the root folder of drive C:.

ATTRIB +H +R +S C:MSDOS.SYS Restores the hidden, read-only, and system attributes to the Msdos.sys file in the root folder of drive C:.

ATTRIB +C *.doc Compresses all .doc files in the current folder (valid for Windows 2000/XP Recovery Console only).

The Windows file properties sheet’s General tab displays only two or three of the basic file attributes. On a drive formatted with NTFS, files display only the read-only and hidden attributes. On a drive formatted with FAT32 file system, the read-only, hidden, and archive attributes are displayed.

To view these attributes in Windows:

Step 1. Start Windows Explorer or My Computer/Computer.

Step 2. Right-click a file or folder and select Properties.

Step 3. The General tab indicates read-only or hidden attributes for the file or folder. In addition to the basic attributes listed previously, Windows can also display the creation date of the file, the date the file was last accessed, and the date the file was last changed.

To select or deselect the archive attribute, or to set encryption or compression options on a drive using the NTFS file system, click the Advanced button. Figure 13-30 shows the General and Advanced dialogs on a Windows XP system.

Figure 13-30 Compressing a file with Windows XP. You can select compression or encryption, but not both.

image

image

Encryption and compression are available only on Windows Vista, XP, and 2000 drives formatted with the NTFS file system. To set these options for a file or folder in Windows, you can use Windows Explorer or the command-line programs Compact (to compress a file) or Cipher (to encrypt a file). To encrypt or compress a file within the Windows GUI, follow these steps:

Step 1. Start Windows Explorer/My Computer/Computer.

Step 2. Right-click a file or folder and click Properties.

Step 3. Click the Advanced button.

Step 4. Select Compression to reduce the disk space used by the file, or Encryption to restrict access to only the system’s administrator or the user who encrypted the file.

Step 5. Click OK to apply either option (refer to Figure 13-30). Files can be compressed or encrypted, but not both.

Step 6. If you are encrypting the file, Windows recommends that you encrypt the folder containing the file (which will also encrypt the file).

Caution

Only the user who originally encrypted the file (or the system’s Administrator) can open an encrypted file and view its contents. Only the Administrator can apply compression to a file or folder.

Note

File folders’ properties sheets have additional tabs:

• The Sharing tab configures how a folder is shared (if file/print sharing is installed).

• The Customize tab configures how a folder is displayed in Windows Explorer/My Computer/Computer.

File Permissions

Windows Vista/XP/2000 systems that use the NTFS file system sometimes feature an additional tab on the file/folder properties sheet called the Security tab. It is used to control file permissions.

Note

If Windows XP is configured to use simple file sharing, the Security tab will not be visible. Simple file sharing is recommended for home and small-business networks, but reduces system security. Simple file sharing is enabled by default if the system is not connected to a domain, but is disabled automatically when the system is connected to a domain (the domain controller is used to control network security).

To disable simple file sharing on a system not connected to a domain, go to either Windows Explorer, My Computer/Computer, or Control Panel. Click Tools on the menu bar, select Folder Options, click the View tab, scroll to the bottom, and clear the check mark next to Use Simple File Sharing (Recommended).

The Security tab permits you to control access to the selected file or folder by granting or denying permissions shown to selected users or groups:

Full Control— Enables any and all changes to a file, including deletion.

Modify— File can be modified.

Read & Execute— File can be read and executed.

Read— File can be read.

Write— File can be overwritten.

List Folder Contents— When viewing the permissions of a folder, this additional permission is listed. It allows the user to view what is inside the folder.

The Security tab has two sections. The top section shows the users and groups that have access to the selected file or folder. You can add or remove groups or users. The bottom section lets you specify the permissions available for the selected user or group.

DEFRAG

Over time, a hard disk becomes fragmented as temporary and data files are created and deleted. When a file can no longer be stored in a contiguous group of allocation units, Windows stores the files in as many groups of allocation units as necessary and reassembles the file when it is next accessed. The extra time needed to save and read the file reduces system performance. Windows includes a disk defragmentation tool to help regain lost read/write performance.

Defragment can be run in the following ways:

• From the Accessories menu’s System Tools submenu (Disk Defragmenter)

• From a drive’s properties sheet’s Tools tab (Defragment Now)

• From the command line (a feature introduced in Windows XP): defrag (type defrag /? for options)

The Windows XP/2000 defragmenter features an Analyze button that determines whether defragmentation is necessary (see Figure 13-31). There is no Analyze button in Windows Vista; however, it will analyze the disk automatically before defragmenting.

Figure 13-31 Disk Defragmenter’s analysis indicates this drive needs to be defragmented.

image

image

Tip

The narrower the colored stripes visible in the Estimated Disk Usage Before Defragmentation display, the more fragmented the drive is.

NTBackup

Windows XP/2000 includes a backup program that can be run from the Windows GUI or from the command line, NTBackup.

Note

The Microsoft Backup utility for Windows XP Home Edition must be installed manually from the ValueAddMSFTNTBACKUP folder on the Windows XP Home Edition CD.

You can start NTBackup in the following ways:

• From the System Tools submenu of the Start menu’s Accessories submenu

• From the command line (ntbackup.exe; for command-line options, open Help and Support Center and type ntbackup into the Search box)

• From the Tools menu of the drive properties sheet; choose Backup Now

NTBackup supports backups to a wide variety of drive types, including tape drives, floppy disk drives, removable-media drives such as Zip, Jaz, and Rev drives, and external hard disks. A backup can be saved to a rewritable CD or DVD drive as long as the backup fits on a single disc, however, the backup file must be created first, it cannot be burned directly to the disc during the backup process.

During the backup process, you can specify the following:

• Which drive(s) to back up

• Which files to back up—whether to select all data files or new and changed files only

• Whether to back up the Windows Registry (part of system state data)

• Where to create the backup—to tape drive, floppy disk, another hard disk, or a removable-media drive

• Whether to replace an existing backup on the backup medium or to append the backup to existing backup files

• How to run the backup—whether to use data compression, protect the backup with a password, verify the backup, and use volume shadow copy (which enables open files to be backed up)

NTBackup can be run in interactive mode as shown in Figure 13-32 or in wizard mode as shown in Figure 13-33.

Figure 13-32 Preparing to create a backup to an external hard disk with NTBackup in interactive mode.

image

image

Figure 13-33 Running NTBackup in wizard mode.

image

NTBackup in Windows XP adds the ability to perform an Automated System Recovery (ASR) backup/restore to rebuild a Windows installation after a system failure, but does not support the Emergency Repair Disk (ERD) function found in Windows 2000.

To learn more about ASR, see “Using Automated System Recovery (ASR),” in Chapter 15, “Troubleshooting and Maintaining Windows.” To learn more about ERD, see “Using the Emergency Repair Disk (Windows 2000),” in Chapter 15.

Note

If you need to restore backup files created with NTBackup to a system running Windows Vista, download and install Windows NT Backup - Restore Utility from the Microsoft website. This utility also requires that you enable Removable Storage Management.

Using Windows Vista’s Backup Status and Configuration

Backup Status and Configuration is the successor to Windows XP’s NTBackup. It can back up individual files in the same manner as Windows XP’s NTBackup. It can also back up an entire image of your system (using Complete PC Backup) to the removable media of your choice, for example DVD. To create a complete backup of your PC with Vista’s Complete PC Backup:

Step 1. Start the Complete PC Backup by going to Start, All Programs, Accessories, System Tools, Backup Status and Configuration.

Step 2. Click the Complete PC Backup button.

Step 3. Select Create a Backup Now, and follow the directions. Have media ready that can hold an image of your operating system, for example DVD-R. Be ready, this will be a sizeable image!

Backup or Copy/Xcopy/Drag & Drop? Some Considerations

When considering whether to use a backup program or file copy to make copies of a file, consider the following:

• Backups are typically compressed; file copies performed with COPY or XCOPY or with drag and drop from the Windows GUI generally are not.

• Backups can span a large file onto two or more separate pieces of supported media; COPY, XCOPY, and drag and drop from the Windows GUI cannot subdivide a large file.

• Backups must be restored by the same or compatible program; files copied by COPY, XCOPY, or drag and drop can be retrieved by Windows Explorer and standard Windows programs.

• Backups created by NTBackup can be stored to tape, floppy disk, or other types of removable storage such as Zip drives (but not rewritable CD or DVD) as well as external hard disks; COPY and XCOPY can work only with drives that can be accessed through a drive letter or a UNC (Universal Naming Convention) network path. However, COPY, XCOPY, and drag and drop from the Windows GUI can be used with CD-RW and CD-R media that have been formatted for UDF (drag-and-drop) file copying. Note that third-party backup utilities can use rewriteable CD and DVD media as well as other types of media.

Essentially, if you want to retrieve the information at any time, use drag and drop from the Windows GUI or copy, xcopy.exe, or xcopy32.exe from the command prompt. However, if you need to back up very large files, an entire system image, want to save space, and don’t mind restoring the files with a specific program, use NTBackup (XP and 2000), Backup Status and Configuration (Vista), or a third-party backup program.

CHKDSK.EXE

Windows includes the chkdsk.exe program to check disk drives for errors. It can be run from the Windows GUI as shown in Figure 13-34 or from the command-line.

Figure 13-34 Windows C: Properties Sheet and Check Disk Window after the Check Now button has been clicked.

image

Tip

It’s no coincidence that Check Now is listed before Defragmentation and Backup in the Windows disk Tools menu. You should check the drive for errors first before you perform a defrag or backup operation.

As Figure 13-34 shows, you can also select whether to automatically fix file system errors and attempt the recovery of bad sectors with Chkdsk. If you select the option to automatically fix file system errors, Chkdsk will be scheduled to run at the next restart. This is necessary because Chkdsk requires exclusive access to the drive. Chkdsk performs a three-phase test of the drive after the system is rebooted but before the Windows desktop appears.

You can also run Chkdsk from the command prompt. For options, type Chkdsk /? from the command prompt.

In Windows Vista, you will need to run this command in elevated mode. It was mentioned how to do this previously. As a reminder, here are those two options again:

• Click Start, All Programs, Accessories, Command Prompt. Right-click Command Prompt and select Run as Administrator. Click Continue at the permission window.

• Click Start and type cmd. Then press Ctrl+Shift+Enter to execute cmd.exe in elevated mode. Click Continue at the permission window.

Note

By default, Chkdsk runs automatically at boot time if a drive is dirty (has errors); to adjust this behavior, run Chkdsk with appropriate options from the command prompt. Use chkdsk /? to see the options you can use.

Format

In Windows, the Format command is used primarily to re-create the specified file system on a floppy disk, removable-media disk, or a hard disk. In the process, the contents of the disk are overwritten.

Format works in very different ways, depending on whether it is used on a hard or floppy disk. When Format is used on a hard drive, it creates a master boot record, two file allocation tables, and a root directory (also referred to as the root folder). The rest of the drive is checked for disk surface errors—any defective areas are marked as bad to prevent their use by the operating system. Format appears to “destroy” the previous contents of a hard disk, but if you use Format on a hard disk by mistake, third-party data recovery programs can be used to retrieve data from the drive. This is possible because most of the disk surface is not changed by Format.

If a floppy disk, USB flash memory drive, or removable-media disk is prepared with Format and the unconditional /U option is used from the command line, or the Windows Explorer Full Format option is used, sector markings (a sector equals 512 bytes) are created across the surface of the floppy disk before other disk structures are created, destroying any previous data on the disk. If the Quick Format or Safe Format option is used, the contents of the disk are marked for deletion but can be retrieved with third-party data recovery software.

Note

The hard disk format process performed by the Format command (which creates the file system) is sometimes referred to as a high-level format to distinguish it from the low-level format used by hard drive manufacturers to set up magnetic structures on the hard drive. When floppy disks are formatted with the Full or Unconditional options, Format performs both a low-level and high-level format on the floppy disk surface.

Using Format with Floppy, USB Flash, and Removable-Media Drives

Although floppy disks, USB flash memory drives, and removable-media drives are preformatted at the factory, Format is still useful as a means to

• Erase the contents of a disk quickly, especially if it contains many files or folders.

• Place new sector markings across the disk.

• Create a bootable disk that can be used to run MS-DOS programs.

Formatting Floppy and Hard Disks with Windows Explorer

You can use Windows Explorer to format both hard drives and floppy disks. Right-click the drive you want to format, select Format, and the Format options for Windows are displayed, as shown in Figure 13-35 (Windows 2000’s options are almost identical, except for the lack of the MS-DOS startup disk option).

Figure 13.35 The Windows XP Explorer Format menu for a floppy disk (left) and hard disk (right).

image

Windows 2000 doesn’t offer the Make an MS-DOS Startup Disk option, but is otherwise similar. To learn how to use Format.exe command-line options, see “FORMAT.EXE,” later in this chapter.

Windows Explorer Command-Line Options

To adjust how Windows Explorer displays windows, run Explorer.exe from the command prompt with your choice of these options: /n, /e, /root (plus an object), and /select (plus an object). Table 13-5 describes each option.

Table 13-5 Windows Explorer Command-Line Options

image

As the following examples demonstrate, the command line options can be used with local or network files and folders:

Example 1: Explorer /select,C:TestDirTestProg.exe—Opens a window view with TestProg selected.

Example 2: Explorer /e,/root,C:TestDirTestProg.exe—Opens Explorer with drive C: expanded and TestProg selected.

Example 3: Explorer /root,\TestSvrTestShare—Opens a window view of the specified share.

Example 4: Explorer /root,\TestSvrTestShare,select,TestProg.exe—Opens a window view of the specified share with TestProg selected.

Command-Line Functions

Command-line functions are run from the command prompt, and are used primarily for diagnosis, repair, and troubleshooting. The following sections discuss the major command-line functions and utilities in more detail.

Starting a Command-Prompt Session with CMD.EXE

You can start a command-prompt session in Windows by clicking on the Command prompt option in the Start menu; it’s usually located in the Accessories menu on most versions of Windows. However, it’s faster to use the Run command:

• In Windows XP/2000—Click Start > Run. Then, type cmd and click OK.

• In Windows Vista—Click Start type cmd, and then press Enter, or press Ctrl+Shift+Enter to run in elevated mode (might be necessary for some commands).

Figure 13-36 shows a typical command prompt session in Windows XP.

Figure 13-36 Using the Help command to view a list of command prompt commands in Windows XP.

image

The following sections discuss the command-line functions that are covered on the A+ Certification exams. These functions fall into two categories:

• Those that are included in CMD.EXE (the command interpreter used to start a command-prompt session). These are known as internal commands.

• Those that are separate programs on disk. These are known as external commands.

Internal Commands Overview

Cmd.exe (Windows Vista/XP/2000) contains the internal commands listed in Table 13-6. Commands marked (RC) can also be used by the Windows XP/2000 Recovery Console.

Table 13-6 Major Internal Commands

image

image

image

Tip

To get help for any internal or external command-prompt function or program, type the program name followed by /?. For example, DIR /? displays help for the DIR command.

Using Wildcards to Specify a Range of Files

Command-prompt functions and utilities can be used to operate on a group of files with similar names by using one of the following wildcard symbols:

• ? replaces a single character.

* replaces a group of characters.

For example, DIR *.EXE displays files with the .EXE extension in the current folder (directory). DEL MYNOVEL??.BAK removes the following files: MYNOVEL00.BAK, MYNOVEL01.BAK, but not MYNOVEL.BAK.

HELP

To see a list of valid commands you can run from the command prompt, and to see a brief description of each command, type HELP from the command prompt (refer to Figure 13-36).

To get help with a specific command, type HELP commandname. For example, to get help with XCOPY.EXE, type HELP XCOPY. You can also type the command followed by /?, for example dir /?.

DIR

The DIR command, which lists files and folders in either the current or any other specified drive or folder, has many options. For example, Windows DIR options include the following:

image

image

The options listed for DIR can be combined with each other, enabling you to use DIR to learn many different types of information about files and folders. The following are some examples:

DIR/AH Displays files with the hidden attribute (see the discussion of ATTRIB later in this chapter) in the current folder.

DIR/S command.com Displays all instances of Command.com in the current folder and all folders beneath the current folder.

DIR/O-S C:WINDOWS Displays all files in the folder C:Windows in order by size, largest first.

EDIT

EDIT is a plain-text text editor that can be used to read and edit batch (.BAT), .INI, CONFIG.SYS, and other types of text files. To open a file with EDIT, type EDIT filename.

The options shown here apply to all versions of EDIT:

Here are some examples:

image

EDIT C:MSDOS.SYS Opens the Msdos.sys file in the root folder of drive C: for editing; user must change file attributes of Msdos.sys with ATTRIB first to allow changes to file.

EDIT Opens editor; user must open File menu within Edit to select file(s) to open.

EDIT has pull-down windows you can activate with a mouse or with the keyboard. If you are using EDIT after booting from an EBD and no mouse driver is loaded, hold down the Alt key and press the first letter of each menu to display that menu:

File— Opens, saves, prints, and closes a file; exits the program

Edit— Cuts, copies, pastes, and clears selected text

Search— Finds and replaces specified text

View— Adjusts options for dual-screen editing (two documents at once)

Options— Adjust tab stops, printer port (COM or LPT), and screen colors

Help— Displays EDIT help screen

Tip

EDIT uses the same keyboard cut, copy, and paste shortcuts as Windows:

Ctrl+X cuts text

Ctrl+C copies text

Ctrl+V pastes text

Del clears text

COPY

The COPY command copies files from one drive and folder to another folder and drive. The folder specified by COPY must already exist on the target drive. COPY will not work with files that have the system or hidden file attributes; to copy these files, use XCOPY32 instead.

image

The options for COPY in Windows Vista/XP include the following:

Here are some examples:

COPY *.* A: Copies all files in the current folder to the current folder on the A: drive.

COPY *.TXT C:Mydocu~1 Copies all .txt files in the current folder to the Mydocu~1 folder on the C: drive.

COPY C:WINDOWSTEMP*.BAK Copies all *.bak files in the WindowsTemp folder on drive C: to the current folder.

COPY C:WINDOWS*.BMP D: Copies all .bmp files in the Windows folder on drive C: to the current folder on drive D:.

XCOPY

The XCOPY command can be used in place of COPY in most cases and has the following advantages:

Faster operation on a group of files—XCOPY reads the specified files into conventional RAM before copying them to their destination.

Creates folders as needed— Specify the destination folder name in the XCOPY command line, and the destination folder will be created if needed.

Operates as backup utility— Can be used to change the archive bit from on to off on files if desired to allow XCOPY to be used in place of commercial backup programs.

Copies files changed or created on or after a specified date— Also useful when using XCOPY as a substitute for commercial backup programs.

The options for XCOPY.EXE in Windows Vista/XP include the following:

XCOPY can be used to “clone” an entire drive’s contents to another drive. For example, the following copies the entire contents of D: drive to H: drive:

image

image

image

FORMAT.EXE

The FORMAT.EXE command deletes all existing files and folders from a system. It overwrites the current contents of the target drive unless the /Q (Quick Format) option is used. When /Q is used, only the file allocation table and root folder are overwritten. To retrieve data from a drive that has been formatted, you must use third-party data-recovery software.

In Windows Vista/XP, FORMAT.EXE includes a variety of options for use with floppy disks, hard disks, removable-media drives, and USB flash memory drives. These include the following:

image

The following options apply to floppy disks only:

image

IPCONFIG

The ipconfig command-line utility is used by Windows to display the computer’s current IP address, subnet mask, and default gateway. The ipconfig /all command is used to show this and additional network related information (see Figure 13-37).

Figure 13-37 ipconfig /all displays complete information about your TCP/IP configuration.

image

image

To see other options, use the /? option after the command. If you’re having problems seeing other computers on the network or connecting to the Internet on a network that uses server-assigned IP addresses, type ipconfig /release and press Enter; then type ipconfig /renew and press Enter to obtain a new IP address from the DHCP server on your network.

PING

Windows can use the ping command to test TCP/IP and Internet connections for proper operation. ping is a more reliable way to check an Internet connection than opening your browser, because a misconfigured browser could cause you to think that your TCP/IP configuration is incorrect.

To use ping to check your connection, follow this procedure:

Step 1. Start your Internet connection. If you use a LAN to connect to the Internet, you might have an always-on connection.

Step 2. Open a command-prompt window.

Step 3. Type ping IPaddress or ping servername and press Enter. For example, to ping a web server called www.markesoper.com, type Pingwww.markesoper.com.

By default, ping sends four data packets from your computer to any IP address or servername you specify. If your TCP/IP connection is working properly, you should see a reply from each ping you sent out indicating how quickly the signals traveled back from the target and the IP address or URL of the target.

Note

As a security measure, some websites do not respond to ping.

The lower the time in milliseconds (ms), the faster your connection. Connection speeds vary a great deal due to various factors, such as Internet network congestion, server speed, and the number of relays needed to transfer your request from your computer to the specified server. To check relay information, use the tracert command.

MD/CD/RD

You can make, change to, or remove folders (directories) with the following commands as shown in Table 13-7.

Table 13-7 Folder Management Commands

image

Folders (directories) can be referred to in two ways:

• Absolute

• Relative

An absolute path provides the full path to the folder. For example, to change to the folder BackupsWord from the folder My Documents on the same drive, you would use the command CHDIR BackupsWord.

Note

You can’t use the CHDIR command to change to a different drive and folder. It only works on the current drive.

A relative path can be used to change to a folder one level below your location. For example, to change to the folder BackupsWord from the folder Backups, you would use the command CHDIR Word (or just CD Word). No backslash is necessary.

To change to the root folder from any folder, use CHDIR (or just CD ). To change to the folder one level higher than your current location, use CHDIR .. (or just CD..).

System Management Tools

The following sections discuss the major system management tools included in Windows, such as Device Manager, Task Manager, MSCONFIG.EXE, REGEDIT.EXE, Event Viewer, System Restore, and Remote Desktop.

Device Manager

Windows Device Manager is used to display installed device categories, specific installed devices, and to troubleshoot problems with devices.

To use Device Manager in Windows Vista, follow these steps:

Step 1. Click Start, right-click on Computer, and select Properties. This will display the System window.

Step 2. From there click the Device Manager link on the left side under Tasks.

To use the Device Manager in Windows XP/2000:

Step 1. Open the System Properties window in the Control Panel, or right-click My Computer and select Properties.

Step 2. Click the Hardware tab and select Device Manager.

Note

There are two other options for opening Device Manager. The first is by using the Search box within the Start menu. Just type device manager and then click the link for Device Manager that appears in the results box. The second is from the Computer Management console window. It opens the same way in Vista and XP. To open this, right-click on Computer (My Computer in XP), and select Manage. This displays the Computer Management window; from there click Device Manager in the left window pane. Get in the habit of using Computer Management. It has lots of common settings in one location. Another way to open Computer Management is by going to the Run prompt and typing compmgmt.msc.

To view the devices in a specific category, click the plus (+) sign next to the category name, as in Figure 13-38.

Figure 13-38 Device Manager with selected categories expanded.

image

Note

Different systems will have different categories listed in Device Manager, as Device Manager only lists categories for installed hardware. For example, the system shown in Figure 13-38 has a battery backup, so it has a Batteries category. Note also that the IDE ATA/ATAPI Controllers category also lists SATA controllers.

To see more information about a specific device, double-click the device to open its properties sheet. Device properties sheets have a General tab and some combination of other tabs:

General— Displays device type, manufacturer, location, status, troubleshoot button, and usage. All devices.

Properties— Device-specific settings. Applies to multimedia devices.

Driver— Driver details and version information. All devices.

Details— Technical details about the device (added in Windows XP SP2). All devices.

Policies— Optimizes external drives for quick removal or performance. USB, FireWire, and eSATA drives.

Resources— Hardware resources such as IRQ, DMA, Memory, and I/O port address. Applies to I/O devices.

Volumes— Drive information such as status, type, capacity, and so on. Click Populate to retrieve information. Applies to hard disk drives.

Power— Power available per port. Applies to USB root hubs and generic hubs.

Power Management— Specifies device-specific power management settings. Applies to USB, network, keyboard, and mouse devices.

Figure 13-39 illustrates some of these tabs.

Figure 13-39 Selected Device Manager tabs: the Power tab for a USB hub (a); the Driver tab for an IEEE-1394 port (b); the General tab for an network controller (c).

image

Virtually all recent systems support Plug and Play (PnP) hardware with automatic resource allocation by a combination of the PnP BIOS and Windows. However, if you need to determine the hardware resources in use in a particular system, click View and select Resources by type (see Figure 13-40).

Figure 13-40 IRQ and DMA usage on a typical Windows XP system. ACPI power management enables IRQs above 15, and sharing of PCI IRQs 17, 20, 22, and 23 by multiple devices.

image

Troubleshooting problem devices with Device Manager is covered in Chapter 15.

Computer Management and the MMC

We’ve mentioned this component of Windows Vista/XP a few times already but it’s worth mentioning again. Instead of hunting around for different utilities in different places in Windows, it’s simpler to use the Computer Management console window because it has most of the tools you need in one organized two-pane window system. Here are the ways to open Computer Management:

• Click Start, then right-click Computer/My Computer and select Manage

• Navigate to Start, All Programs, Administrative Tools, Computer Management

• Open the Run prompt (Windows+R) and type compmgmt.msc (a personal favorite)

In Computer Management, you find the Event Viewer, the Device Manager, Local Users and Groups, Services, and disk tools such as Disk Management. Consider using it often.

Now, to make it better Windows Vista and XP offer you the Microsoft Management Console (MMC). This is the “master” console so to speak, and you can snap-in as many other console windows as you wish. Add to that the fact that it saves all the consoles you snapped in and remembers the last place you were working, and this becomes a very valuable and time saving tool.

To open it, open the Run prompt and type MMC. This will open a new blank MMC. Then, to add console windows, go to File and then Add/Remove Snap-in (or press Ctrl+M). From there click the Add button to select the consoles you want such as Computer Management, Performance Logs and Alerts, or ActiveX Controls. You can also change the “mode” that the user works in when accessing the MMC—for example Author mode, which has access to everything, and User mode, which has various levels of limitation. When you are finished, save the MMC, and consider adding it as a shortcut within the desktop or in the Quick Launch area, and maybe add a keyboard shortcut to open it. The next time you open it, it will remember all of the console windows you added, and will start you at the location you were in when you closed the program. By default, Windows Vista comes with version 3.0 of the MMC, and Windows XP comes with Version 2.0. However, you can download version 3.0 for Windows XP from www.microsoft.com. Just search for “Microsoft Management Console 3.0 for Windows XP.”

Task Manager

The Task Manager utility provides a useful real-time look into the inner workings of Windows and the programs that are running. There are several ways to display the Task Manager including

• Right-click the taskbar and select Task Manager

• Press Ctrl+Shift+Esc

• Open the Run prompt and type taskmgr

• Press Ctrl+Alt+Del and select Task Manager from the Windows Security dialog box. (Note This only works in Windows XP if you have turned off the Welcome Screen option.)

The Task Manager tabs include Applications (shows running applications); Processes (program components in memory); Performance (CPU, memory, pagefile, and caching stats). Windows XP adds a Networking tab (lists network utilization by adapter in use) and a Users tab (lists current users). Windows Vista adds a Services tab (displays the services on the computer and their status).

Use the Applications tab to determine if a program has stopped responding; you can shut down these programs by using the End Task button. Use the Processes tab to see which processes are consuming the most memory. Use this dialog along with the System Configuration Utility (MSConfig) to help determine if you are loading unnecessary startup applications; MSConfig can disable them to free up memory. If you are unable to shut down a program with the Applications tab, you can also shut down its processes with the Processes tab, but this is not recommended unless the program cannot be shut down in any other way.

Use the Performance tab to determine whether you need to install more RAM memory or need to increase your paging file size. Use the Networking tab to monitor the performance of your network.

The top-level menu can be used to adjust the properties of the currently selected tab and to shut down the system. Figure 13-41 illustrates these tabs. Figure 13-42 shows the newer Services tab in Windows Vista’s Task Manager.

Figure 13-41 The Windows XP version of the Windows Task Manager’s Applications (top left), Processes (top right), Performance (bottom left), and Networking (bottom right) tabs.

image

Figure 13-42 The Windows Vista version of the Windows Task Manager’s Services Tab.

image

MSCONFIG.EXE

The Microsoft System Configuration Utility, Msconfig (available in Windows Vista/XP), enables you to selectively disable programs and services that run at startup. If your computer is unstable, runs more slowly than usual, or has problems starting up or shutting down, using Msconfig can help you determine if a program or service run when the system starts is at fault. To start Msconfig

Step 1. Click Start, Run.

Step 2. Type msconfig and click OK.

All versions of Msconfig have a multitabbed interface used to control startup options (see Figure 13-43). The General tab lets you select from Normal, Diagnostic (clean boot), or Selective Startup (you choose which items and services to load). You can also expand or extract files or launch System Restore from the Windows XP version of Msconfig.

Figure 13-43 Msconfig’s General tab (Windows XP).

image

Other tabs control settings in Msconfig, System.ini (legacy hardware), Win.ini (legacy software and configuration), Boot.ini and services (Windows XP), startup programs, and other version-specific startup options. The Windows Vista version of Msconfig does away with the System.ini and Win.ini tabs.

Note

Although Msconfig wasn’t part of Windows 2000 by default, you can download it from the Internet, or copy it from Windows XP, and it will function in the same manner.

REGEDIT.EXE

To start Regedit, open the Run prompt, type regedit, and press Enter.

Changes made in Regedit are automatically saved when you exit; however, you might have to log off and lock back on, or restart the system, for those changes to take effect. Under most normal circumstances, the Registry will not need to be edited or viewed. However, Registry editing might be necessary under the following circumstances:

• To view a system setting that cannot be viewed through normal interfaces.

• To add, modify (by changing values or data), or remove a Registry key that cannot be changed through normal Windows menus or application settings. This might be necessary to remove traces of a program or hardware device that was not uninstalled properly, or to allow a new device or program to be installed.

• To back up the Registry to a file.

Caution

The Registry should never be edited unless a backup copy has been made first, because there is no Undo option for individual edits and no way to discard all changes when exiting Regedit.

Editing the Windows Registry is even more difficult because registry keys can be expressed in decimal, hexadecimal, or text. When editing the Registry, be sure to carefully follow the instructions provided by a vendor.

Figure 13-44 shows the Registry in Windows Vista, with a modification being made to the MenuBar color, which isn’t accessible within normal Windows display menus. Figure 13-45 shows the Registry in Windows XP, viewing the uninstall folder for Mozilla Firefox.

Figure 13-44 Using Regedit (Windows Vista).

image

Figure 13-45 Using Regedit (Windows XP).

image

Follow these steps to back up part or all of the Registry to a text file:

Step 1. Start Regedit (open the Run prompt and type regedit, and then click OK).

Step 2. Click File.

Step 3. Click Export.

Step 4. Select a folder for the Registry backup. (To back up the entire Registry, highlight My Computer/Computer at the top of the left window pane, or follow the method in Step 6.)

Step 5. Enter a name for the backup.

Step 6. Select All to back up the entire Registry.

Step 7. Click Save.

Note

For a short time (including during Windows 2000) there was another registry editor known as regedt32, which had a different look then regedit. This command can still be used in the Run prompt within Vista/XP but it simply brings up the standard registry editor known as regedit. It is not covered in the 2009 version of the A+ exams.

Event Viewer

If your customer is using Windows Vista/XP/2000, these versions of Windows generate several log files during routine use that can be useful for determining what went wrong. Many of these can be viewed through the Event Viewer. To view the contents of the Event Viewer in Windows Vista/XP/2000, right-click Computer/My Computer, click Manage and click Event Viewer. The Event Viewer captures various types of information, the three most important logs to know for the exam are: Application, Security, and System. In Windows Vista they are inside Event ViewerWindows Logs; however, in Windows XP these are listed directly inside of the Event Viewer.

To view details about an entry in the Event Viewer, click on a log in the left window pane and entries will appear in the right window pane. To open the event and view more information, double click the event, or right-click it and select Event Properties/Properties. Figure 13-46 shows the Application event viewer on a Windows XP system being used to view the details of an application error.

Figure 13-46 Viewing the details about an application error using the Application Event Viewer. The left window displays other major components of Windows XP’s Computer Management Console.

image

image

System Restore

Ever wish you had a “time machine” so you could go back before you installed a bad driver or troublesome piece of software? Windows Vista and XP feature a “time machine” called System Restore.

System Restore enables you to fix problems caused by a defective hardware or software installation by resetting your computer’s configuration to the way it was at a specified earlier time. The driver or software files installed stay on the system, and so does the data you created, but Registry changes made by the hardware or software are reversed so your system works the way it did before the installation. Restore points can be created by the user with System Restore and are also created automatically by the system before new hardware or software is installed.

To create a restore point in Windows Vista, follow these steps:

Step 1. Right-click Computer and select Properties. This opens the System Properties window.

Step 2. Click the System Protection tab.

Step 3. Click the Create button. This opens the System Protection window.

Step 4. Enter a name for the restore point and click Create.

To create a restore point in Windows XP, follow these steps:

Step 1. Navigate to Start, All Programs, Accessories, System Tools, System Restore. This opens the System Restore window (see Figure 13-47).

Figure 13-47 The main menu of the System Restore program in Windows XP.

image

Step 2. Click Create a Restore Point and click Next.

Step 3. Enter a descriptive name for the restore point, such as Before I installed DuzItAll Version 1.0 and click Create.

Step 4. The computer’s current hardware and software configuration is stored as a new restore point.

Follow these steps to restore your system to an earlier condition in Windows Vista:

Step 1. Access the System Protection tab again, and this time click the System Restore button. This opens the System Restore window.

Step 2. Select either Recommended Restore or Choose a Different Restore Point.

Step 3. The Recommended Restore point will ask you to confirm. If you are choosing a different restore point, you will need to select the appropriate one and confirm.

Step 4. The system will initiate the restore and will automatically restart.

Windows Vista also allows you to undo a system restore if it did not repair the problem.

To restore your system to an earlier condition in Windows XP, follow these steps:

Step 1. Go to the same location you did when creating a restore point.

Step 2. Click Restore My Computer to an Earlier Time and click Next.

Step 3. Select a date from the calendar (dates that have restore points are in bold text).

Step 4. Select a restore point and click Next (see Figure 13-48).

Figure 13-48 Choosing a restore point with Windows XP’s System Restore.

image

image

Step 5. Close any open programs and save your work before you click Next to start the process; Windows will shut down and restart.

Step 6. The system will initiate the restore and will automatically restart.

If System Restore is not available, it might be turned off. Within Windows Vista you can enable or disable System Restore on any volume from the System Properties window/System Protection tab. Simply check or uncheck any volume that you wish to enable or disable. Within Windows XP, the state of System Restore affects all drives, you can only turn the utility on and off. This is done from the System Properties window/System Restore tab. You can also change the amount of disk space it uses here.

Be aware that System Restore is not necessarily the first step you should try when troubleshooting a computer. Simply restarting the computer has been known to “fix” all kinds of issues. It’s also a good idea to try the Last Known Good Configuration. You can access this within the Windows Advanced Boot Options menu by pressing F8 when the computer first boots. Also, if System Restore doesn’t seem to work in normal mode, attempt to use it in Safe Mode. Safe Mode is another option in the Windows Advanced Boot Options menu.

Be wary of using System Restore if you’re fighting a computer virus or malware infection. If you (or the system) create a restore point while the system is infected, you could re-infect the system if you revert the system to that restore point. To prevent re-infection, most anti-virus vendors recommend that you disable System Restore (which eliminates stored restore points) before removing computer viruses.

Remote Desktop

Windows Vista and XP Professional include Remote Desktop, a feature that enables a user on that system to access the system remotely and use its desktop, programs, drives, printers, and other resources.

Windows Vista and XP Professional include the Remote Desktop server program (a subset of Terminal Services) to accept remote logins, but you can also use other Windows versions as well for the Remote Desktop client. You can download the Remote Desktop client software from Microsoft’s website (www.microsoft.com); search for Remote Desktop Connection Software. It works with Windows Vista, XP (Home and Professional), Windows 2000, and older versions of Windows. The Microsoft Remote Desktop Connection Client for Mac 2, also available from the Microsoft website, enables MacOS-based systems to connect remotely to a Windows Vista or XP Professional system.

Windows Vista and XP Professional can handle only one remote connection at a time; if another user is currently logged on locally, he or she must log off to permit the remote connection.

Configuring Your Windows System to Accept Remote Client Connections

Windows Vista and XP Professional automatically runs the Terminal Services service, which is required for Remote Desktop incoming connections. To accept remote connections, you must also:

Step 1. Make sure the remote user has been added as a user for this computer and has a password. Use the User Accounts applet in Control Panel (Classic mode) to check this information.

image

Step 2. Configure your firewall to permit connections via TCP port 3389. If you use Windows Firewall, selecting Remote Desktop on the Exceptions menu automatically opens this port (see Figure 13-49). However, if you use a third-party firewall program or device, you might need to configure this setting manually. See your firewall documentation for details.

Figure 13-49 Configuring Windows Firewall to accept Remote Desktop connections.

image

Step 3. Open the System properties sheet, click the Remote tab, and select the Allow Users to Connect Remotely to This Computer option in the Remote Desktop portion of the dialog (Figure 13-50).

Figure 13-50 Enabling the system to accept Remote Desktop connections from a specified user.

image

Step 4. Click the Select Remote Users button to view the list of Remote Desktop Users. If the user you want to grant remote access to isn’t on the list, click Add. On the Select Users dialog, enter the name of the user, and click Check Names. If the name is on the list of users, the server name is added.

Step 5. Repeat Step 4 until all remote user names are added. Click OK when finished.

Connecting Remotely

To start the connection process, click Start, All Programs, Accessories, Remote Desktop Connection. The dialog shown in Figure 13-51 appears. Enter the name or IP address of the remote computer, and click Connect.

Figure 13-51 Starting a Remote Desktop session.

image

Provide a username and password from the list of authorized remote users and click OK when prompted. The remote desktop appears.

Note

If you need additional connection options, click the Options button shown in Figure 13-51. This opens a multi-tabbed connection dialog with options for saving connection settings (General tab); adjusting the size and color depth of the remote desktop (Display tab); configuring options for remote computer sound, keyboard, and devices (Local Resources tab); what program to start on connection (Programs); connection speed, screen handling, and reconnect options (Experience); security and advanced connection settings (Advanced).

A tab at the top of the remote dialog displays the name or IP address of the remote PC, and provides options for minimizing, maximizing/windowing, and closing the session (see Figure 13-52).

Figure 13-52 Ending a Remote Desktop session.

image

Ending the Remote Session

You have three options for quitting the remote session:

• To end the remote session but stay logged in, click the X in the remote dialog tab and click OK on the Disconnect Terminal Services Session dialog (refer to Figure 13-52).

• To log out of the remote session, click Start Log Off, and click Log Off when prompted.

• To disconnect, click Start, Disconnect, and click Disconnect when prompted.

Optimizing Windows

Understanding how to optimize Windows performance is also part of the A+ certification objectives. The following sections cover issues you might encounter on the exam and are likely to encounter in your work life.

Virtual Memory, Performance Monitor, and System Monitor

If you run short of money, you can borrow some from the bank (assuming your credit’s in decent shape). However, there’s a penalty: interest. Similarly, if your system runs short of memory, it can borrow hard disk space and use it as virtual memory. The penalty for this type of borrowing is performance: Virtual memory is much slower than real RAM memory. However, you can adjust how your system uses virtual memory to achieve better performance.

Tip

To minimize the need to use virtual memory, increase the physical memory (RAM) in a Windows system to at least 1GB (1.5GB on a system with integrated graphics).

When additional RAM is added to a computer running Windows, it is automatically used first before the paging file.

The Windows Vista Performance Monitor and Windows XP System Monitor can be used to determine whether more RAM should be added to a computer.

• To access the Windows Vista Performance Monitor, open the Run prompt, type perfmon.exe and press Enter. This opens the Reliability and Performance Monitor window, click the Performance Monitor node.

• To access the Windows XP System monitor, open the Run prompt, type perfmon.exe and press enter. This opens the Performance console window. Click on the System Monitor node.

Many different types of performance factors can be measured with these programs. This is done by measuring objects. Objects include physical devices such as the processor and memory, and software such as protocols and services. The objects are measured with counters. For example, a common counter for the processor is % Processor Time.

To see if additional RAM is needed in a system, select the object called Paging File, then select the counters % Usage and Pages/Sec as shown in the following steps:

Step 1. Click the + sign or right-click in the table beneath the graph and select Add Counters.

Step 2. Choose Paging File as the Performance Object and then choose % Usage. In Windows Vista, simply add pagefile.sys.

Step 3. Choose Memory as the Performance Object and then choose Pages/Sec. In Vista, this is shown as a drop-down menu within the object. In XP it might be added already.

Step 4. Click Add.

Step 5. Click Close and then run normal applications for this computer.

If the Performance Monitor/System Monitor indicates that the Paging File % Usage is consistently near 100% or the Memory Pages/Sec counter is consistently higher than 5, add RAM to improve performance. Figure 13-53 shows an example of adequate memory within Windows XP’s System monitor.

Figure 13-53 This Windows XP system has adequate memory at this time, as indicated by the low levels of usage of the Paging File % Usage and Memory Pages/Sec counters.

image

The performance of the paging file can be improved by

• Setting its minimum and maximum sizes to the same amount.

• Moving the paging file to a physical disk (or disk partition) that is not used as much as others.

• Using a striped volume for the paging file. A striped volume is identical areas of disk space stored on two or more dynamic disks that are referred to as a single drive letter. Create a striped volume with the Windows XP Disk Management tool.

• Creating multiple paging files on multiple physical disks in the system.

• Moving the paging file away from the boot drive.

To adjust the location and size of the paging file in Windows, follow these steps:

Step 1. Open the System Properties window.

• For XP: Click Start, right-click My Computer, and select Properties or open the Control Panel and click the System icon.

• For Vista: Click Start, right-click Computer, and select Properties. Then click Advanced System Settings under Tasks.

Step 2. Click the Advanced tab (not necessary in Vista).

Step 3. Click the Settings button in the Performance Options box.

Step 4. Click the Advanced tab and then the Change button.

Step 5. Choose the initial and maximum sizes you want to use for the paging file and its location (see Figure 13-54). Click Set and then click OK to finish. (In Vista, you will have to deselect the Automatically Manage Paging File Size checkbox first.)

Figure 13-54 The Virtual Memory dialog box of Windows XP enables you to set the size and location of virtual memory.

image

image

Step 6. If you make any changes to size or location, you must restart the computer for the changes to take effect.

Note

For the longest time the default settings for the paging file were Initial size = 1.5 × RAM, and Maximum size = 3 × RAM. This was a good rule of thumb for a while. However the rule might not work so well with the increasing need for fast memory, and the resulting increase of RAM in today’s computers. For example, a Windows XP computer with 4 GB of RAM might be set this way: Initial size = 1/2; RAM, and Maximum size = RAM. It will all depend on the system you are running and the applications being utilized.

Hard Disk

To optimize the performance of the hard disk, you can use the following methods:

Upgrade to a hard disk with a faster spin rate and larger cache buffer— Typically, newer SATA hard disks have faster spin rates and larger cache buffer sizes than older SATA or most PATA hard disks. To determine the spin rate and cache size for an installed drive, check the manufacturer’s specifications for the drive.

Set up a RAID 0 drive array— A RAID 0 drive array is similar to a striped array, but uses a RAID-compatible host adapter on the motherboard or a host adapter card. A software-based version of RAID 0 can also be set up within Windows through the use of the Disk Management snap-in. Keep in mind that there is no fault tolerance involved with RAID 0, this technology is developed solely for speed. If one of the drives fails, you will lose all of the data in the array. Remember to back up your data!

If the system uses PATA drives, don’t use a single PATA host adapter for two drives— Although PATA host adapters support two drives (primary/secondary, also called master/slave), data transfer between two drives on the same host adapter is slower than between drives on different host adapters.

Defrag drives regularly, and maintain at least 20% free disk space to enable easy defragmentation— The Windows disk defragmenter cannot run if there is less than 15% free disk space.

Temporary Files

The default location for temporary files in Windows versions prior to Windows Vista/XP is the TEMP folder beneath the default Windows folder (Windows or WinNT). Windows Vista and XP use Windows for system temporary files, and XP uses Documents and SettingsUsernameLocal SettingsTemp for user-specific temporary files. Vista uses UsersUsernameAppDataLocalTemp for user-specific temporary files.

The location can be adjusted with a pair of SET statements.

Note

Some applications use SET TEMP=location; others use SET TMP=location (replace location with the actual drive and folder path). Be sure to change both variables if you need to change the setting for temporary files.

Temporary File Settings in Windows Vista/XP/2000

Use the Advanced tab on the System properties sheet to set environmental variables such as SET TEMP and many others. Here’s how to make the change (you must be logged on as an administrator):

Step 1. Create a folder called TEMP in the root folder of the drive you want to use for your temporary files. You can use Windows Explorer/My Computer/Computer or the MKDIR (MD) command.

Step 2. Open the System properties sheet. You can right-click on My Computer and select Properties or open the System icon in Control Panel.

Step 3. Click the Advanced tab.

Step 4. Click Environmental Variables. A new window opens.

Step 5. Click TEMP in the System variables window and click Edit.

Step 6. The Edit System Variable window opens (see Figure 13-55). Clear the variable value (%SystemRoot%TEMP) and enter the drive and folder you used in Step 1 (for example, E:TEMP). Click OK.

Figure 13-55 Adjusting the location used for temporary files in Windows XP.

image

image

Step 7. Repeat steps 5–6, selecting TMP instead of TEMP.

Step 8. Click OK in the Environment Variables window.

Step 9. Click OK on the System properties sheet.

Note

Use this same method to add, delete, or change other system variables. To change the location for individual users’ temporary files, change the settings in the User variables window (top window).

Services

Many of Windows Vista/XP/2000’s core functions are implemented as services, including features such as the print spooler, wireless network zero configuration, DHCP client service, and many more. Services can be run automatically or manually and are controlled through the Services node of the Computer Management Console. To open the Computer Management Console, right-click My Computer/Computer and select Manage. Then expand the Services and Applications node and click Services. You can also access the Services dialog from the Services applet in Control Panel’s Administrative Tools folder (Classic mode); opening Services this way displays the dialog shown in Figure 13-56. The Services dialog lists each service by name, provides a description, status message, startup type, and whether the service is for a local system or network service.

Figure 13-56 The Services dialog.

image

To view the properties for a particular service, double-click the service listing. The General tab of the properties sheet shown in Figure 13-57 displays the service name, description, path to executable file, startup type, and status. You can also stop, pause, or resume a service from this dialog, as well as from the Services dialog (refer to Figure 13-56).

Figure 13-57 Viewing the General tab for the Print Spooler service.

image

Use the Log On tab if you need to configure the service to run for a specific user, the Recovery tab to specify what to do if the service fails, and the Dependencies tab to see what other services work with the specified service.

If a system cannot perform a task that uses a service, go to the Services dialog and restart the service. If a service prevents another task from running (for example, a third-party wireless network client might not run if the Wireless Zero Configuration service is running), go to the Services dialog and stop the service.

Note

For more information about specific Windows services, I recommend The Elder Geek’s Windows Services for Windows XP guide at www.theeldergeek.com/services_guide.htm.

Startup

Most systems are configured to run programs at startup as well as services. In addition to starting some services at startup, Windows can also start programs automatically from these locations:

The Startup folder in the Start menu for all users— To view the contents of this folder, open the Run prompt, type %allusersprofile%Start MenuProgramsStartup, and click OK.

The Startup folder in the Start menu for the current user— To view the contents of this folder, click Start, Run, type %userprofile%Start MenuProgramsStartup, and click OK.

• Registry keys, such as

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunOnce

Startup programs might wind up in the Task Bar or the systray, or they might be displayed in a window or full-screen. If you don’t want a program loading at startup, you might be able to configure the program not to run at startup. If the program lacks an option for this, however, you can use the Microsoft System Configuration Utility, MSConfig.exe, to block the program from running at startup. For details, see “MSCONFIG.EXE,” earlier in this chapter.

Applications

Windows offers several ways to fine-tune application performance. These include

• Adjusting the balance between background services and application response

• Adjusting the priority of a process belonging to an application

• Stopping unresponsive applications

Adjusting the Balance Between Background Services and Application Response

Windows Vista/XP/2000 can be configured to use more memory for background services (non-active windows, printing, and so on) instead of the default (Programs—improves performance for the foreground application). You might want to do this if your Windows Vista or XP computer was acting as a file or print server for a small network. To make this change, use the following steps:

Step 1. Open the System Properties window and click the Advanced tab.

Step 2. Click the Settings button in the Performance box. This opens the Performance Options window.

Step 3. Click the Advanced tab.

Step 4. From here you can adjust for best performance of either: Programs or Background services by clicking the appropriate radio button.

Note

A foreground application is the application you have clicked on and are actively using. For example, to write this text, I clicked on Microsoft Word; it becomes the foreground application. When I add a screen capture, I click on Adobe Photoshop, making it the foreground application. Other running programs such as email, web browsers, and Microsoft Word become background applications.

Adjusting the Priority of a Process

The Windows Task Manager’s Processes tab lists processes currently taking place by the name of the executable file. To adjust the priority for a particular process from the default (Normal) to a higher or lower priority, right-click the process, select Set Priority, and choose a priority from the listing (Figure 13-58).

Figure 13-58 Adjusting the priority of a running application.

image

image

Caution

Be careful when setting custom priorities for processes. If you want to tweak application priority, make the change just one step at a time. Going to a high priority for one application could make other applications less responsive or could cause the operating system to freeze up. Also, changing the priority of SYSTEM processes isn’t recommended. Doing so could make your system unresponsive.

If you don’t like the changes, reboot the system. Priority changes last only for the current computing session.

Stopping Unresponsive Applications

You can also shut down an unresponsive application, preferably through the Applications tab of the Task Manager. A program listed as Not Responsive might start working again in a few moments. However, if it does not, select the program, click End Task, and Windows will (eventually) shut down the program.

If you are unable to shut down the program using the Applications tab, you can use the Processes tab’s End Process button to stop the application’s underlying process. For example Microsoft Word is an application, but its underlying process is winword.exe. However, you should use this method only as a last resort. Be careful when ending processes; make sure that you know the correct process name for the application you wish to terminate.

Tip

If you have a lot of problems with unresponsive applications, consider a memory upgrade and check for updates to the application, other applications that are running at the same time, and to Windows itself.

Exam Preparation Tasks

Review All the Key Topics

Review the most important topics in the chapter, noted with the key topics icon in the outer margin of the page. Table 13-8 lists a reference of these key topics and the page numbers on which each is found.

Table 13-8 Key Topics for Chapter 13

image

image

Complete the Tables and Lists from Memory

Print a copy of Appendix B, “Memory Tables,” (found on the CD), or at least the section for this chapter, and complete the tables and lists from memory. Appendix C, “Memory Tables Answer Key,” also on the CD, includes completed tables and lists to check your work.

Definitions of Key Terms

Define the following key terms from this chapter, and check your answers in the glossary.

Virtual memory,

Paging file,

Registry,

NTLDR,

Partition,

Primary Partition,

Extended Partition,

Logical drive,

Control Panel,

EFS,

Executable,

File system,

FAT32,

NTFS

Troubleshooting Scenario

You have a client that is having problems with network connectivity. She is complaining that things work fine for a while, and then there is no connectivity at all. What steps could you take to verify that there is a problem?

Refer to Appendix A, “Answers to the ‘Do I Know This Already?’ Quizzes and Troubleshooting Scenarios,” for the answer.

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

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