Windows Server Cookbook

Book description

This practical reference guide offers hundreds of useful tasks for managing Windows 2000 and Windows Server 2003, Microsoft's latest and greatest server. Through concise, on-the-job solutions to common problems, Windows Server Cookbook for Windows Server 2003 & Windows 2000 is certain to save you hours of time searching for answers.Now, instead of dredging reams of Microsoft documentation or browsing its unstructured knowledge base to figure out a particular issue--such as how to compare registry values between two hosts--you can simply reference the index of Windows Server Cookbook for Windows Server 2003 & Windows 2000. From there, you'll be directed to the exact trouble-shooting recipe they need.As the newest title in O'Reilly's popular Cookbook series, this book covers a wide range of issues that you are likely to face in your daily management of the Windows Server operating system. This includes how to deal with:

  • files
  • event logs
  • DNS
  • DHCP
  • security
  • the registry
  • backup/restore
One of the book's key benefits is the presentation of solutions in three different recipe formats. Depending on preference, you can solve most problems with the graphical user interface, the command line, or by using scripts. Where appropriate, all three solutions are presented for each recipe in this book. Each recipe also includes a detailed discussion that explains how and why it works.Windows Server Cookbook for Windows Server 2003 & Windows 2000 is written for all levels of system administrators on Windows servers. If you're a relatively new user with only a rudimentary understanding of the job, the book can open your eyes to the many possibilities that await. And if you're an advanced user, it can serve as a useful reference and memory-jogger.Download the code examples from this book. The complete set of examples isavailable at: http://www.rallenhome.com/books/​winsckbk/code.html.

Publisher resources

View/Submit Errata

Table of contents

  1. Windows Server Cookbook
  2. Dedication
  3. Foreword
  4. Preface
    1. Who Should Read This Book
    2. What’s in This Book
    3. Conventions Used in This Book
    4. Using Code Examples
    5. Safari Enabled
    6. We’d Like to Hear from You
    7. Acknowledgments
  5. 1. Introduction
    1. 1.1. Approach to the Book
    2. 1.2. Where to Find the Tools
    3. 1.3. Running Tools with Alternate Credentials
    4. 1.4. A Brief Word on Windows Scripting
    5. 1.5. Getting the Most Out of Your Scripts
    6. 1.6. Where to Find More Information
  6. 2. System Configuration
    1. Introduction
    2. 2.1. Activating Windows Server 2003
    3. 2.2. Configuring Automatic Updates
    4. 2.3. Disabling Windows Update
    5. 2.4. Installing or Uninstalling a Windows Component
    6. 2.5. Installing an Application or Service Pack via Group Policy
    7. 2.6. Viewing System Properties
    8. 2.7. Setting the System Time, Date, and Time Zone
    9. 2.8. Setting the Name of a Server
    10. 2.9. Joining a Server to a Domain
    11. 2.10. Testing and Resetting the Secure Channel
    12. 2.11. Viewing and Setting Environment Variables
    13. 2.12. Configuring Page Files
    14. 2.13. Putting System Information on the Desktop
    15. 2.14. Configuring System Startup Options
    16. 2.15. Configuring System Failure Options
    17. 2.16. Viewing System Uptime
    18. 2.17. Disabling the Manage/Configure Your Server Screen
    19. 2.18. Disabling Shutdown Tracker
    20. 2.19. Restarting or Shutting Down a Server
  7. 3. Disks, Drives, and Volumes
    1. Introduction
    2. 3.1. Viewing the Disk, Drive, and Volume Layout
    3. 3.2. Converting a Basic Disk to Dynamic
    4. 3.3. Enabling Disk Performance Statistics
    5. 3.4. Formatting a Volume
    6. 3.5. Setting the Drive Letter of a Volume
    7. 3.6. Setting the Label of a Volume
    8. 3.7. Cleaning Up a Volume
    9. 3.8. Defragmenting a Volume
    10. 3.9. Compressing a Volume
    11. 3.10. Checking a Volume for Errors
    12. 3.11. Making a Disk or Volume Read-Only
    13. 3.12. Mapping a Network Drive
    14. 3.13. Creating a Virtual Drive to Another Drive or Folder
    15. 3.14. Finding Large Files and Folders on a Volume
    16. 3.15. Enabling Disk Quotas
    17. 3.16. Configuring a Disk Quota for a User
    18. 3.17. Viewing Disk Quota Usage
  8. 4. Files, Folders, and Shares
    1. Introduction
    2. 4.1. Creating and Deleting a File
    3. 4.2. Creating and Deleting a Folder
    4. 4.3. Undeleting a File
    5. 4.4. Securely Deleting a File
    6. 4.5. Viewing the Properties of a File or Folder
    7. 4.6. Creating a Shortcut
    8. 4.7. Creating a Link or Junction Point
    9. 4.8. Creating a Program Alias
    10. 4.9. Searching for Files or Folders
    11. 4.10. Copying, Moving, or Renaming a File or Folder
    12. 4.11. Comparing Files or Folders
    13. 4.12. Hiding a File or Folder
    14. 4.13. Making a File or Folder Read-Only
    15. 4.14. Compressing a File or Folder
    16. 4.15. Encrypting a File or Folder
    17. 4.16. Replacing a File That Is in Use
    18. 4.17. Taking Ownership of a File or Folder
    19. 4.18. Finding Who Last Opened or Modified a File
    20. 4.19. Finding Open Files
    21. 4.20. Finding the Process That Has a File Open
    22. 4.21. Viewing File Activity
    23. 4.22. Performing an Action on Several Files at Once
    24. 4.23. Creating and Deleting Shares
    25. 4.24. Viewing Shares
    26. 4.25. Restricting Access to a Share
    27. 4.26. Enabling Web Sharing
    28. 4.27. Publishing a Share in Active Directory
  9. 5. Running and Scheduling Tasks
    1. Introduction
    2. 5.1. Running a Task with Alternate Credentials
    3. 5.2. Running a Task on a Remote Server
    4. 5.3. Running a Task When a User Logs On
    5. 5.4. Running a Task via a Login Script
    6. 5.5. Running a Task via Group Policy
    7. 5.6. Listing Automatic Tasks
    8. 5.7. Scheduling a Task
    9. 5.8. Deleting a Scheduled Task
    10. 5.9. Listing the Scheduled Tasks
  10. 6. Processes
    1. Introduction
    2. 6.1. Setting the Priority of a Process
    3. 6.2. Suspending a Process
    4. 6.3. Killing a Process
    5. 6.4. Viewing the Running Processes
    6. 6.5. Searching Processes
    7. 6.6. Finding the Services Run from a Process
    8. 6.7. Viewing the Properties of a Process
    9. 6.8. Viewing the Performance Statistics of a Process
    10. 6.9. Viewing the DLLs Being Used by a Process
    11. 6.10. Viewing the APIs Called by a Process
    12. 6.11. Viewing the Handles a Process Has Open
    13. 6.12. Viewing the Network Ports a Process Has Open
    14. 6.13. Script: Process Doctor
    15. 6.14. Script: Process Terminator
  11. 7. Services
    1. Introduction
    2. 7.1. Starting and Stopping a Service
    3. 7.2. Running Any Program or Script as a Service
    4. 7.3. Removing a Service
    5. 7.4. Setting the Service Startup Type
    6. 7.5. Setting the Service Account and Password
    7. 7.6. Performing an Action Automatically When a Service Fails
    8. 7.7. Viewing the List of Services
    9. 7.8. Searching Services
    10. 7.9. Finding the Process a Service Is Running From
    11. 7.10. Viewing the Antecedent and Dependent Services for a Service
    12. 7.11. Viewing the Service Load Order
    13. 7.12. Viewing the Startup History of a Service
    14. 7.13. Granting the Permission to Manage One or More Services
    15. 7.14. Script: Robust Service Restart
    16. 7.15. Script: Service Monitor
  12. 8. Event Logs
    1. Introduction
    2. 8.1. Creating an Event
    3. 8.2. Viewing Events
    4. 8.3. Creating a New Event Log
    5. 8.4. Viewing the Size of an Event Log
    6. 8.5. Setting the Maximum Size of an Event Log
    7. 8.6. Setting the Event Log Retention Policy
    8. 8.7. Clearing the Events in an Event Log
    9. 8.8. Restricting Access to an Event Log
    10. 8.9. Searching an Event Log on a Server
    11. 8.10. Searching the Event Logs on Multiple Servers
    12. 8.11. Archiving an Event Log
    13. 8.12. Finding More Information About an Event
    14. 8.13. Triggering an Action When an Event Occurs
    15. 8.14. Script: Event Watcher
  13. 9. Registry
    1. Introduction
    2. 9.1. Creating and Deleting a Key
    3. 9.2. Setting a Value
    4. 9.3. Setting Keys or Values Using Group Policy
    5. 9.4. Exporting Registry Files
    6. 9.5. Importing Registry Files
    7. 9.6. Searching the Registry
    8. 9.7. Comparing the Registry
    9. 9.8. Restricting Access to the Registry
    10. 9.9. Backing Up and Restoring the Registry
    11. 9.10. Creating a Registry Link
    12. 9.11. Setting the Maximum Registry Size
    13. 9.12. Monitoring Registry Activity
    14. 9.13. Viewing Processes That Have a Registry Key Open
  14. 10. Network Configuration
    1. Introduction
    2. 10.1. Viewing the Network Configuration
    3. 10.2. Disabling a Connection
    4. 10.3. Configuring an IP Address
    5. 10.4. Renewing or Releasing a DHCP IP Address
    6. 10.5. Configuring DNS Settings
    7. 10.6. Registering DNS Records or Flushing the DNS Cache
    8. 10.7. Finding a Computer’s Active Directory Site
    9. 10.8. Managing Routes
    10. 10.9. Viewing the Open Ports and Connections
    11. 10.10. Troubleshooting Network Connectivity Problems
    12. 10.11. Viewing Network Traffic
    13. 10.12. Configuring TCP/IP Filtering
    14. 10.13. Measuring Link Speed and Latency Between Two Hosts
    15. 10.14. Installing the IPv6 Stack
  15. 11. Security Best Practices
    1. Introduction
    2. 11.1. Analyzing Your Security Configuration
    3. 11.2. Enabling Auditing
    4. 11.3. Renaming the Administrator and Guest Accounts
    5. 11.4. Disabling or Removing Unused Accounts, Services, and Software
    6. 11.5. Enabling Screensaver Locking
    7. 11.6. Disabling Storage of the LM Password Hash
    8. 11.7. Requiring Strong Passwords
    9. 11.8. Getting Notified of New Security Vulnerabilities
    10. 11.9. Script: Mass Admin Password Changer
  16. 12. Internet Information Services 6.0
    1. Introduction
    2. 12.1. Installing IIS
    3. 12.2. Stopping and Starting IIS
    4. 12.3. Creating Web Sites
    5. 12.4. Hosting Multiple Web Sites
    6. 12.5. Creating Virtual Directories
    7. 12.6. Configuring Web Permissions
    8. 12.7. Configuring IP Address and Domain Name Restrictions
    9. 12.8. Configuring Web Site Authentication
    10. 12.9. Obtaining and Installing SSL Certificates
    11. 12.10. Enabling SSL on a Web Site
    12. 12.11. Backing Up SSL Certificates
    13. 12.12. Configuring Web Site QoS Settings
    14. 12.13. Configuring Web Site Logging
    15. 12.14. Configuring Web Site Redirection
    16. 12.15. Enabling Direct Metabase Editing
    17. 12.16. Backing Up and Restoring the Metabase
    18. 12.17. Exporting and Importing the Metabase
    19. 12.18. Enabling Dynamic Content
    20. 12.19. Creating Application Pools
    21. 12.20. Configuring Application Pool Identities
    22. 12.21. Creating Applications
    23. 12.22. Isolating Applications into Pools
    24. 12.23. Configuring Application Pool Recycling
    25. 12.24. Creating FTP Sites
    26. 12.25. Configuring FTP Authentication
    27. 12.26. Configuring FTP User Isolation
  17. 13. Domain Name System (DNS)
    1. Introduction
    2. 13.1. Installing the DNS Server
    3. 13.2. Starting and Stopping the DNS Server
    4. 13.3. Modifying DNS Server Configuration
    5. 13.4. Creating a Zone
    6. 13.5. Viewing a DNS Server’s Zones
    7. 13.6. Converting a Zone to an Active Directory-Integrated Zone
    8. 13.7. Moving Active Directory-Integrated Zones into an Application Partition
    9. 13.8. Creating a Stub Zone
    10. 13.9. Configuring Conditional Forwarding
    11. 13.10. Configuring Zone Transfer
    12. 13.11. Creating and Deleting Resource Records
    13. 13.12. Querying Resource Records
    14. 13.13. Scavenging Old Resource Records
    15. 13.14. Clearing the DNS Cache
    16. 13.15. Enabling DNS Server Debug Logging
    17. 13.16. Viewing DNS Server Utilization Statistics
    18. 13.17. Preventing Cache Pollution on DNS Servers
    19. 13.18. Preventing Windows Clients from Attempting Dynamic Updates
    20. 13.19. Script: DNS Server Configuration Checker
  18. 14. DHCP Server
    1. Introduction
    2. 14.1. Installing DHCP Server
    3. 14.2. Authorizing a DHCP Server
    4. 14.3. Configuring Server Options
    5. 14.4. Enabling Address Conflict Detection
    6. 14.5. Creating a Scope
    7. 14.6. Creating a Superscope
    8. 14.7. Activating or Deactivating a Scope
    9. 14.8. Configuring Scope Options
    10. 14.9. Enabling Dynamic DNS Updates from the DHCP Server
    11. 14.10. Managing the Leases for a Scope
    12. 14.11. Creating a Reservation
    13. 14.12. Enabling DHCP Audit Logging
    14. 14.13. Modifying the DHCP Database and Audit Log Paths
    15. 14.14. Backing Up the DHCP Database
    16. 14.15. Restoring the DHCP Database
    17. 14.16. Importing and Exporting DHCP Server Configuration
    18. 14.17. Viewing DHCP Utilization Statistics
    19. 14.18. Finding the DHCP Servers on a Subnet
    20. 14.19. Running DHCP Server on a Domain Controller
  19. 15. Active Directory
    1. Introduction
    2. 15.1. Creating a New Active Directory Forest
    3. 15.2. Promoting a Domain Controller from Media
    4. 15.3. Uninstalling Active Directory
    5. 15.4. Upgrading from Windows 2000 to Windows Server 2003
    6. 15.5. Raising the Functional Level
    7. 15.6. Backing Up Active Directory
    8. 15.7. Restoring Active Directory
    9. 15.8. Searching for Objects in a Domain
    10. 15.9. Creating an Object
    11. 15.10. Modifying an Object
    12. 15.11. Moving an Object
    13. 15.12. Moving an Object to a Different Domain
    14. 15.13. Renaming an Object
    15. 15.14. Deleting an Object
    16. 15.15. Exporting and Importing Objects Using LDIF or CSV
    17. 15.16. Finding the Closest Domain Controller
    18. 15.17. Enabling and Disabling the Global Catalog
    19. 15.18. Finding the FSMO Role Holders
    20. 15.19. Transferring or Seizing a FSMO Role
    21. 15.20. Creating and Removing a Trust
    22. 15.21. Viewing the Trusts for a Domain
    23. 15.22. Verifying and Resetting Trusts
    24. 15.23. Enabling Diagnostics Logging
    25. 15.24. Script: Displaying the Structure of a Forest
  20. 16. Domain User, Group, and Computer Accounts
    1. Introduction
    2. 16.1. Creating a User Account
    3. 16.2. Creating a Large Number of Users
    4. 16.3. Modifying an Attribute for Several Users at Once
    5. 16.4. Unlocking a User
    6. 16.5. Troubleshooting Account Lockout Problems
    7. 16.6. Viewing and Modifying the Account Lockout and Password Policies
    8. 16.7. Enabling and Disabling a User Account
    9. 16.8. Setting a User’s Password
    10. 16.9. Setting a User’s Account Options
    11. 16.10. Setting a User’s Profile Attributes
    12. 16.11. Finding a User’s Last Logon Time
    13. 16.12. Creating a Group Account
    14. 16.13. Viewing the Members of a Group
    15. 16.14. Viewing a User’s Group Membership
    16. 16.15. Adding and Removing Members of a Group
    17. 16.16. Changing the Scope or Type of a Group
    18. 16.17. Creating a Computer Account
    19. 16.18. Joining a Computer to a Domain
    20. 16.19. Renaming a Computer
    21. 16.20. Resetting a Computer Account
  21. 17. Exchange Server 2003
    1. Introduction
    2. 17.1. Preparing Active Directory for Exchange
    3. 17.2. Installing the First Exchange Server
    4. 17.3. Installing Additional Exchange Servers
    5. 17.4. Installing an Exchange Service Pack
    6. 17.5. Creating Unattended Installation Files for Exchange and Exchange Service Pack
    7. 17.6. Installing Exchange Management Tools
    8. 17.7. Delegating Exchange for the First Time
    9. 17.8. Stopping and Starting Exchange Server
    10. 17.9. Mail-Enabling a User
    11. 17.10. Mail-Disabling a User
    12. 17.11. Mailbox-Enabling a User
    13. 17.12. Deleting a User’s Mailbox
    14. 17.13. Purging a Deleted Mailbox
    15. 17.14. Reconnecting a Deleted Mailbox
    16. 17.15. Enumerating Disconnected Mailboxes
    17. 17.16. Moving a Mailbox
    18. 17.17. Viewing Mailbox Sizes and Message Counts
    19. 17.18. Mail-Enabling a Contact
    20. 17.19. Mail-Disabling a Contact
    21. 17.20. Creating a Mail-Enabled Distribution List
    22. 17.21. Creating a Query-Based Distribution List
    23. 17.22. Creating an Address List
    24. 17.23. Creating a Recipient Policy
    25. 17.24. Creating a Storage Group
    26. 17.25. Creating a Mailbox Store
    27. 17.26. Listing Domain Controllers and Global Catalog Servers Used by an Exchange Server
    28. 17.27. Mounting and Dismounting Mailbox Stores
  22. A. Introduction to WSH
    1. A.1. How to Write Scripts
    2. A.2. WSH 2.0 Versus 5.6
  23. B. Introduction to WMI
    1. B.1. Referencing an Object
    2. B.2. Enumerating Objects of a Particular Class
    3. B.3. Searching with WQL
    4. B.4. Authentication with WMI
  24. C. Introduction to ADSI
    1. C.1. Objects and Interfaces
    2. C.2. Namespaces, ProgIDs, and ADsPaths
    3. C.3. Retrieving Objects
  25. D. List of Default Environment Variables
  26. E. List of Default Processes
  27. F. List of Default Services
  28. Index
  29. About the Author
  30. Colophon
  31. Copyright

Product information

  • Title: Windows Server Cookbook
  • Author(s): Robbie Allen
  • Release date: March 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596552602