Microsoft Press Windows Vista Administrator's Pocket Consultant ebook

Home > Other > Microsoft Press Windows Vista Administrator's Pocket Consultant ebook > Page 4
Microsoft Press Windows Vista Administrator's Pocket Consultant ebook Page 4

by MS


  Microsoft distributes Windows Vista on media with Windows Imaging Format (WIM) disk images. WIM uses compression and single-instance storage to dramatically reduce the size of image files. Compression reduces the size of the image in much the same way that Zip compression reduces the size of files. Using single-instance storage reduces the size of the image because only one physical copy of a file is stored for each instance of that file in the disk image. Because WIM is hardware-independent, Microsoft can ship a single binary to all its customers around the world: one binary for 32-bit architectures and one binary for 64-bit architectures.

  Windows Vista can be installed using either automated or interactive setup. You can automate the installation of Windows Vista in several ways. You can:

  Create an unattended installation answer file Requires creating an unattended installation answer file. Windows Vista uses a standards-based single-format answer file. This file, called Unattend.xml, is written in the Extensible Markup Language (XML), making it easier to process using standard tools. By creating a custom answer file and then running Setup using this answer file, you can perform unattended installations of computers running Windows Vista. Setup can then install the operating system from a distribution share or from media.

  Use Sysprep Image-Based Installation Requires running the System Preparation command-line tool (Sysprep.exe) on a computer that you want to act as the master deployment computer, and then creating a disk image of this computer's configuration. Sysprep is stored in the %SystemRoot%System32Sysprep folder. The Windows Automated Installation Kit (Windows AIK) includes Windows System Image Manager and XImage to help you use Sysprep for deployments. You use Windows System Image Manager to create answer files for unattended installations. You use XImage to create and manage disk images.

  By using WIM as its disk imaging format and taking advantage of the modular design of Windows Vista, XImage significantly reduces the number of disk images that must be maintained. You no longer need to maintain multiple hardware-dependent disk images or multiple language-dependent disk images. Instead, you typically will need only a single disk image for each chip architecture used in your organization. You can then use different installation scripts to customize the operating system installation as necessary.

  WIM has other advantages over earlier disk image formats as well. WIM enables you to modify and maintain disk images offline, which means you can add or remove optional components and drivers or perform updates without having to create a new disk image. To do this, you mount the disk image as a folder and then use Windows Explorer or other tools to update, manage, or remove files as necessary.

  Windows System Image Manager, XImage, and Sysprep provide several different ways to automate deployment. The basic steps follow:

  Set up and configure Windows Vista on a computer not being used for normal operations, and then install and configure any necessary components and applications.

  Run Sysprep to prepare the computer for capture. Sysprep removes unique identifiers from the computer and designates it as a master deployment computer. At the end of this process, the computer no longer has identifying information that allows it to be logged onto and used within a domain or workgroup setting.

  Use the XImage/Capture option to capture a disk image and store this image on media or in a distribution share. The image can be maintained offline by using the XImage/Mountrw option to mount the image in read/write mode so you can make any necessary changes. Use the XImage/Unmount command to unmount the image when you are finished making changes.

  Use Windows System Image Manager to create your unattended installation answer files. You can then create deployment scripts that configure the computer, run Setup using the answer file, and apply the disk image you've previously created.

  Run your deployment script to configure the computer and install the operating system.

  Understanding the Windows Preinstallation Environment

  With Windows Vista, Windows Preinstallation Environment 2.0 (Windows PE 2.0) replaces MS-DOS as the preinstallation environment. Windows PE 2.0 is a bootable startup environment that provides operating system features for:

  Installation When you install Windows Vista, the graphical tools that collect system information during the setup phase are running within Windows PE.

  Deployment When a new computer performs a network boot, the built-in Pre-boot Execution Environment (PXE) client can connect to a Windows Deployment Service server, download a Windows PE image across the network, and then run deployment scripts from within this environment.

  Recovery Windows PE enables you to access and run the Startup Repair Tool if Windows Vista fails to start because of a corrupted system file.

  Troubleshooting You can manually start Windows PE to perform troubleshooting or diagnostics testing if Windows Vista is experiencing problems that can't otherwise be diagnosed.

  Windows PE is modular, extensible, and provides full access to partitions formatted using file allocation table (FAT) and NT file system (NTFS). Because Windows PE is built from Windows Vista components, you can run many Windows Vista applications, work with hardware devices, and communicate across Internet Protocol (IP) networks. Several command-line tools are available in Windows PE, including:

  DiskPart A management tool for creating and working with disks, partitions, and volumes

  Drvload A support tool for adding device drivers and dynamically loading a driver after Windows PE has started

  Net A set of support commands that enables you to manage local users, start and stop services, and connect to shared folders

  Netcfg A management tool that configures network access

  For deployment, you can execute these tools from within configuration scripts to perform key configuration tasks. You can:

  Use Netcfg to configure network access.

  Use Drvload to install a driver and use the hardware without restarting the computer.

  Run DiskPart to partition and format the computer's hard disk.

  Use NET SHARE to connect to a shared folder containing the Windows Vista Setup files.

  Run the Windows Vista Setup program to install the operating system.

  As with Windows Vista itself, Windows PE can be contained within a WIM disk image. When you store a Windows Vista image in a WIM disk image, the only way to start Windows Vista is to copy the full image to the computer's hard disk. When you store Windows PE in a disk image, however, you can start it directly from the image without having to copy it to the computer's hard disk. This enables you to store Windows PE disk images on bootable media, such as a DVD or USB flash drive, and then start Windows PE directly from that media. The Windows Vista distribution media uses this technique to load Windows PE into RAM during setup of the operating system.

  You can load Windows PE into RAM as well, which might be necessary for troubleshooting. When you do this, the Windows PE boot loader creates a virtual RAM disk in memory and then copies a compressed version of Windows PE to the RAM disk. Afterward, the boot loader mounts the RAM disk as if it were a disk drive and starts Windows PE. Running Windows PE from RAM enables you to write temporary files to the virtual RAM disk, which isn't possible when running from read-only media such as a CD. It also enables you to remove the Windows PE media after Windows PE has started, and then insert different media into the computer's CD-ROM or DVD-ROM drive.

  When working with Windows PE, keep the following in mind:

  Windows PE requires a computer with a VESA-compatible display and a minimum of 256 MB of RAM. During startup, if Windows PE can't detect the video settings, it uses a screen resolution of 640 × 480 pixels. Otherwise, it uses the highest resolution possible.

  Windows PE supports both IPv4 and IPv6. Although you can access shared folders on other computers from Windows PE, other computers cannot access files or folders on a computer running Windows PE.

  Windows PE always starts with the default drive letter assignments. This means drive letter assignments aren't persi
stent between sessions.

  Windows PE doesn't support the Microsoft .NET Framework or Windows On Windows (WOW). This means you cannot use .NET applications on any versions of Windows PE, 16-bit applications on 32-bit versions of Windows PE, or 32-bit applications on 64-bit versions of Windows PE.

  Windows PE automatically restarts after running for 24 hours. This is meant as a safeguard to prevent Windows PE from being used as a general-purpose operating system.

  Understanding the Windows Pre-Boot Environment

  Although earlier versions of the Windows operating system use Ntldr, http://www.Ntdetect.com, and Boot.ini to start up the operating system, Windows Vista has an extensible pre-operating system boot environment that can be customized to meet the needs of various firmware interfaces. This boot environment has two key components:

  Windows Boot Manager Controls the startup experience and enables you to choose which boot application to run

  Boot applications Load a specific operating system or operating system version

  At startup, computers running Windows Vista enter the pre-boot environment prior to the loading of the operating system. The pre-boot environment uses Windows Boot Manager to control the boot experience and determine which boot applications are run. The standard boot application for Windows Vista is the Windows Boot Loader. Windows Boot Loader is responsible for accessing entries in the Boot Configuration Data (BCD) store. Entries in the BCD store contain boot configuration parameters and control how the operating system is started.

  The BCD store is used to abstract the underlying firmware, thereby making it easier for Windows Vista to work with new firmware models such as the Extensible Firmware Interface (EFI). BCD also provides the foundation for a variety of new features in Windows Vista, including the Startup Repair Tool and Multi-User Install shortcuts, which can be launched in the pre-boot environment.

  The BCD store is contained in a file called the BCD registry file. The BCD registry file is located in the BootBcd directory of the active partition on BIOS-based computers and in the EFI system partition on EFI-based computers. The BCD store contains multiple entries on most computers. These entries include:

  One Windows Boot Manager entry. Because there is only one boot manager, there is only one boot manager entry in the BCD store.

  One Windows Boot Loader application entry for each Windows Vista operating system installed on the computer.

  One legacy operating system entry.

  The legacy operating system entry is not for a boot application. Instead, this entry uses Ntldr and Boot.ini to start up a Windows operating system earlier than Windows Vista. You will use this entry to start up Microsoft Windows Server 2003, Windows XP, and earlier operating systems if they are installed on a computer.

  Several administrator utilities are provided to help manage BCD entries, including:

  Startup And Recovery Used to configure basic startup options

  System Configuration Used to configure advanced startup options

  BCDEdit Used to display and manage BCD entries

  Startup And Recovery, shown in Figure 1-5, enables you to select the default operating system to start if you have multiple operating systems installed on your computer. You can also specify time-out values for operating system selection lists and recovery options. To access Startup And Recovery, follow these steps:

  Click Start and then click Control Panel.

  In Control Panel, click the System And Maintenance category heading link and then click System.

  In the System utility, click Advanced System Settings in the left pane.

  On the Advanced tab of the System Properties dialog box, click Settings under Startup And Recovery.

  Figure 1-5: The Startup And Recovery dialog box.

  The System Configuration utility, which is discussed in detail in Chapter 2 and shown in Figure 1-6, enables you to control boot options. You can use the boot options to:

  Set the default operating system and start the operating system in safe mode

  Boot to the Windows prompt without loading the graphical components of the operating system

  Force the computer to use standard video graphics adaptor (VGA) display settings

  Perform other advanced configuration options

  Figure 1-6: The System Configuration utility.

  To open the System Configuration utility, follow these steps:

  Click Start.

  Type msconfig.exe in the Search box.

  Press Enter.

  BCDEdit is an administrative command-line utility that enables you to display and manage BCD entries. You can use BCDEdit to display the contents of the BCD store by completing these steps:

  Click Start, point to All Programs, and then click Accessories.

  Right-click Command Prompt and then select Run As Administrator.

  Type bcdedit at the command prompt.

  Note

  Because of changes to the operating system due to User Account Controls, you must run the command prompt with administrator credentials to perform administrative tasks at the command line. If you don't start the command prompt as an administrator, you will be denied permission to run BCDEdit and perform tasks that require administrator credentials.

  Example output from BCDEdit is shown as Listing 1-1. This example output includes three entries: one for Windows Boot Manager, one for the Windows legacy operating system loader, and one for Windows Boot Loader. You can type bcdedit /? at a command prompt to display all the options for using this utility.

  Listing 1-1: BCD store entries displayed using BCDEdit

  Windows Boot Manager

  --------------------

  identifier {bootmgr}

  device partition=C:

  description Windows Boot Manager

  locale en-US

  inherit {globalsettings}

  bootdebug No

  default {current}

  resumeobject {0c848f2d-e023-123a-c23b-23435353de20}

  displayorder {ntldr}

  {current}

  toolsdisplayorder{memdiag}

  timeout 30

  Windows Legacy OS Loader

  ------------------------

  identifier {ntldr}

  device partition=C:

  path ntldr

  description Legacy (pre-Longhorn) Microsoft Windows Operating System

  bootdebug No

  Windows Boot Loader

  -------------------

  identifier {current}

  device partition=D:

  path Windowssystem32winload.exe

  description Microsoft Windows

  locale en-US

  inherit {bootloadersettings}

  bootdebug Yes

  osdevice partition=D:

  systemroot Windows

  resumeobject {0c32432d-d232-1def-d23a-2342a35432a0}

  nx OptIn

  debug No

  ems No

  Chapter 2: Managing Windows Vista Systems

  Overview

  One of your primary responsibilities as an administrator is to manage the operating system configuration. As you'll learn in this chapter, managing Microsoft Windows Vista is very different from managing earlier versions of the Windows operating system, and these differences all stem from the important architecture changes discussed in Chapter 1, "Introduction to Windows Vista Administration." The previous chapter discussed the following changes:

  Windows Vista has a modular architecture and its binaries are distributed using Windows Imaging Format (WIM) disk images. Because of this, you can update and maintain Windows Vista in different ways than you can its predecessors.

  Windows Vista doesn't use Ntldr and Boot.ini to load the operating system. Instead, Windows Vista has a pre-boot environment in which Windows Boot Manager is used to control startup and load the boot application that you've selected.

  Windows Vista provides User Account Control (UAC), a fundamental change in the way security is implemented and managed. Because of UAC, Windows Vis
ta handles user privileges and access controls differently than its predecessors do.

  As a system administrator, you need to know how these changes affect system management, and you need to know how to use Windows Vista's redesigned system management tools to configure the operating system.

  Getting Around Windows Vista

  Prior to performing administration of Windows Vista, you should take a few minutes to get to know its enhanced interface. In this section, I'll introduce some key interface enhancements of Windows Vista, including those for the taskbar, the Start menu, and Control Panel. For additional information on interface changes, see Chapter 4, "Customizing the Desktop and the Interface."

  Working with the Taskbar

  The taskbar and the menu system are the primary means of getting around in Windows Vista. You use the Start button on the taskbar to display the Start menu. The Start menu in turn enables you to run programs, open folders, get help, and search for items stored on the computer. The taskbar also features Quick Launch items, quick access buttons for running programs, and a notification area.

  By default, the taskbar is locked and appears as shown in Figure 2-1. Quick Launch items, displayed to the right of the Start button, enable you to quickly start commonly used programs, such as Microsoft Internet Explorer 7, to quickly switch to 3D flip view, and to quickly display the Desktop. You can add any program directly to the Quick Launch toolbar from the Start menu by clicking the Start button, navigating to the program that you want to be able to access quickly, right-clicking the program name, and then selecting Add To Quick Launch.

  Figure 2-1: The taskbar.

  Although the Quick Launch toolbar is displayed by default, it can be removed by right-clicking the task bar, pointing to Toolbars, and selecting Quick Launch. If the Quick Launch toolbar isn't displayed and you want to display it, right-click the taskbar, point to Toolbars, and then select Quick Launch.

 

‹ Prev