Microsoft

Tech Tip: Repair an installation/Reduce IIS logging

Windows 2000 Professional: Repair an installation

In addition to performing new installations and updating an existing operating system, Windows 2000 Setup also provides the capability to repair an existing installation. The repair process can perform a handful of tasks, depending on the repair option you select.

To start the repair process, boot from the Windows 2000 Professional CD, press R to select Repair, and press R again to start the Emergency Repair process. Setup offers two repair options: Manual Repair and Fast Repair.

The Manual Repair option provides three choices. The first choice, Inspect Startup Environment, uses the Setup.log file to check and, if necessary, fix the path to the Windows boot partition and system folder. The second choice, Verify Windows System Files, checks the Windows boot files against the CRC information for the files in the Setup.log file. Setup gives you the option of replacing the files from the CD or OEM driver disk if the files are missing or corrupted. The third choice, Inspect Boot Sector, repairs the boot sector.

A Fast Repair performs the same tasks as a Manual Repair, but it doesn't allow you to choose which tasks to perform. Fast Repair checks the registry files and copies the backup file from the %systemroot%\Repair folder if a registry file is missing or corrupted. Unless you've updated these backup files, using Fast Repair essentially resets any replaced registry files to the post-installation state. After using Fast Repair, you must restore the system state data from a recent backup.

Windows 2000 Server: Reduce IIS logging

You can enable or disable logging on a global basis for each Web site in Internet Information Services (IIS) through the site's Properties. Open the IIS console, right-click the site, and choose Properties. Select the Enable Logging option on the Web Site tab. By default, IIS logs access in all site folders, but in some situations, you might prefer to turn off logging for one or more folders.

For example, assume you keep all of the graphics files for buttons, banners, and other minor site elements in a particular folder. You don't really need to log access to these files, but IIS will faithfully log each one unless you turn off logging for that folder.

To configure logging for a particular folder, expand the site in the IIS console, right-click the folder, and choose Properties. On the Directory tab for a physical directory, or on the Virtual Directory tab for a virtual directory, deselect the Log Visits option, and click OK. Turn off logging for other folders using the same method.

You might need to adjust your site's structure to some degree to control logging effectively. For example, if you don't currently consolidate all of your small graphics files into a single folder or small group of folders, consider restructuring the site and its links to do so.

Editor's Picks