Windows Server Cookbook
For Windows Server 2003 & Windows 2000
By
Robbie Allen
March 2005
Pages: 696
| Table of Contents
| Index
| Sample Chapter
| Colophon
Table of Contents
-
Chapter 1 Introduction
-
Approach to the Book
-
Where to Find the Tools
-
Running Tools with Alternate Credentials
-
A Brief Word on Windows Scripting
-
Getting the Most Out of Your Scripts
-
Where to Find More Information
-
Chapter 2 System Configuration
-
Introduction
-
Activating Windows Server 2003
-
Configuring Automatic Updates
-
Disabling Windows Update
-
Installing or Uninstalling a Windows Component
-
Installing an Application or Service Pack via Group
Policy
-
Viewing System Properties
-
Setting the System Time, Date, and Time Zone
-
Setting the Name of a Server
-
Joining a Server to a Domain
-
Testing and Resetting the Secure Channel
-
Viewing and Setting Environment Variables
-
Configuring Page Files
-
Putting System Information on the Desktop
-
Configuring System Startup Options
-
Configuring System Failure Options
-
Viewing System Uptime
-
Disabling the Manage/Configure Your Server Screen
-
Disabling Shutdown Tracker
-
Restarting or Shutting Down a Server
-
Chapter 3 Disks, Drives, and Volumes
-
Introduction
-
Viewing the Disk, Drive, and Volume Layout
-
Converting a Basic Disk to Dynamic
-
Enabling Disk Performance Statistics
-
Formatting a Volume
-
Setting the Drive Letter of a Volume
-
Setting the Label of a Volume
-
Cleaning Up a Volume
-
Defragmenting a Volume
-
Compressing a Volume
-
Checking a Volume for Errors
-
Making a Disk or Volume Read-Only
-
Mapping a Network Drive
-
Creating a Virtual Drive to Another Drive or Folder
-
Finding Large Files and Folders on a Volume
-
Enabling Disk Quotas
-
Configuring a Disk Quota for a User
-
Viewing Disk Quota Usage
-
Chapter 4 Files, Folders, and Shares
-
Introduction
-
Creating and Deleting a File
-
Creating and Deleting a Folder
-
Undeleting a File
-
Securely Deleting a File
-
Viewing the Properties of a File or Folder
-
Creating a Shortcut
-
Creating a Link or Junction Point
-
Creating a Program Alias
-
Searching for Files or Folders
-
Copying, Moving, or Renaming a File or Folder
-
Comparing Files or Folders
-
Hiding a File or Folder
-
Making a File or Folder Read-Only
-
Compressing a File or Folder
-
Encrypting a File or Folder
-
Replacing a File That Is in Use
-
Taking Ownership of a File or Folder
-
Finding Who Last Opened or Modified a File
-
Finding Open Files
-
Finding the Process That Has a File Open
-
Viewing File Activity
-
Performing an Action on Several Files at Once
-
Creating and Deleting Shares
-
Viewing Shares
-
Restricting Access to a Share
-
Enabling Web Sharing
-
Publishing a Share in Active Directory
-
Chapter 5 Running and Scheduling Tasks
-
Introduction
-
Running a Task with Alternate Credentials
-
Running a Task on a Remote Server
-
Running a Task When a User Logs On
-
Running a Task via a Login Script
-
Running a Task via Group Policy
-
Listing Automatic Tasks
-
Scheduling a Task
-
Deleting a Scheduled Task
-
Listing the Scheduled Tasks
-
Chapter 6 Processes
-
Introduction
-
Setting the Priority of a Process
-
Suspending a Process
-
Killing a Process
-
Viewing the Running Processes
-
Searching Processes
-
Finding the Services Run from a Process
-
Viewing the Properties of a Process
-
Viewing the Performance Statistics of a Process
-
Viewing the DLLs Being Used by a Process
-
Viewing the APIs Called by a Process
-
Viewing the Handles a Process Has Open
-
Viewing the Network Ports a Process Has Open
-
Script: Process Doctor
-
Script: Process Terminator
-
Chapter 7 Services
-
Introduction
-
Starting and Stopping a Service
-
Running Any Program or Script as a Service
-
Removing a Service
-
Setting the Service Startup Type
-
Setting the Service Account and Password
-
Performing an Action Automatically When a Service Fails
-
Viewing the List of Services
-
Searching Services
-
Finding the Process a Service Is Running From
-
Viewing the Antecedent and Dependent Services for a
Service
-
Viewing the Service Load Order
-
Viewing the Startup History of a Service
-
Granting the Permission to Manage One or More Services
-
Script: Robust Service Restart
-
Script: Service Monitor
-
Chapter 8 Event Logs
-
Introduction
-
Creating an Event
-
Viewing Events
-
Creating a New Event Log
-
Viewing the Size of an Event Log
-
Setting the Maximum Size of an Event Log
-
Setting the Event Log Retention Policy
-
Clearing the Events in an Event Log
-
Restricting Access to an Event Log
-
Searching an Event Log on a Server
-
Searching the Event Logs on Multiple Servers
-
Archiving an Event Log
-
Finding More Information About an Event
-
Triggering an Action When an Event Occurs
-
Script: Event Watcher
-
Chapter 9 Registry
-
Introduction
-
Creating and Deleting a Key
-
Setting a Value
-
Setting Keys or Values Using Group Policy
-
Exporting Registry Files
-
Importing Registry Files
-
Searching the Registry
-
Comparing the Registry
-
Restricting Access to the Registry
-
Backing Up and Restoring the Registry
-
Creating a Registry Link
-
Setting the Maximum Registry Size
-
Monitoring Registry Activity
-
Viewing Processes That Have a Registry Key Open
-
Chapter 10 Network Configuration
-
Introduction
-
Viewing the Network Configuration
-
Disabling a Connection
-
Configuring an IP Address
-
Renewing or Releasing a DHCP IP Address
-
Configuring DNS Settings
-
Registering DNS Records or Flushing the DNS Cache
-
Finding a Computer's Active Directory Site
-
Managing Routes
-
Viewing the Open Ports and Connections
-
Troubleshooting Network Connectivity Problems
-
Viewing Network Traffic
-
Configuring TCP/IP Filtering
-
Measuring Link Speed and Latency Between Two Hosts
-
Installing the IPv6 Stack
-
Chapter 11 Security Best Practices
-
Introduction
-
Analyzing Your Security Configuration
-
Enabling Auditing
-
Renaming the Administrator and Guest Accounts
-
Disabling or Removing Unused Accounts, Services, and
Software
-
Enabling Screensaver Locking
-
Disabling Storage of the LM Password Hash
-
Requiring Strong Passwords
-
Getting Notified of New Security Vulnerabilities
-
Script: Mass Admin Password Changer
-
Chapter 12 Internet Information Services 6.0
-
Introduction
-
Installing IIS
-
Stopping and Starting IIS
-
Creating Web Sites
-
Hosting Multiple Web Sites
-
Creating Virtual Directories
-
Configuring Web Permissions
-
Configuring IP Address and Domain Name Restrictions
-
Configuring Web Site Authentication
-
Obtaining and Installing SSL Certificates
-
Enabling SSL on a Web Site
-
Backing Up SSL Certificates
-
Configuring Web Site QoS Settings
-
Configuring Web Site Logging
-
Configuring Web Site Redirection
-
Enabling Direct Metabase Editing
-
Backing Up and Restoring the Metabase
-
Exporting and Importing the Metabase
-
Enabling Dynamic Content
-
Creating Application Pools
-
Configuring Application Pool Identities
-
Creating Applications
-
Isolating Applications into Pools
-
Configuring Application Pool Recycling
-
Creating FTP Sites
-
Configuring FTP Authentication
-
Configuring FTP User Isolation
-
Chapter 13 Domain Name System (DNS)
-
Introduction
-
Installing the DNS Server
-
Starting and Stopping the DNS Server
-
Modifying DNS Server Configuration
-
Creating a Zone
-
Viewing a DNS Server's Zones
-
Converting a Zone to an Active Directory-Integrated Zone
-
Moving Active Directory-Integrated Zones into an Application
Partition
-
Creating a Stub Zone
-
Configuring Conditional Forwarding
-
Configuring Zone Transfer
-
Creating and Deleting Resource Records
-
Querying Resource Records
-
Scavenging Old Resource Records
-
Clearing the DNS Cache
-
Enabling DNS Server Debug Logging
-
Viewing DNS Server Utilization Statistics
-
Preventing Cache Pollution on DNS Servers
-
Preventing Windows Clients from Attempting Dynamic
Updates
-
Script: DNS Server Configuration Checker
-
Chapter 14 DHCP Server
-
Introduction
-
Installing DHCP Server
-
Authorizing a DHCP Server
-
Configuring Server Options
-
Enabling Address Conflict Detection
-
Creating a Scope
-
Creating a Superscope
-
Activating or Deactivating a Scope
-
Configuring Scope Options
-
Enabling Dynamic DNS Updates from the DHCP Server
-
Managing the Leases for a Scope
-
Creating a Reservation
-
Enabling DHCP Audit Logging
-
Modifying the DHCP Database and Audit Log Paths
-
Backing Up the DHCP Database
-
Restoring the DHCP Database
-
Importing and Exporting DHCP Server Configuration
-
Viewing DHCP Utilization Statistics
-
Finding the DHCP Servers on a Subnet
-
Running DHCP Server on a Domain Controller
-
Chapter 15 Active Directory
-
Introduction
-
Creating a New Active Directory Forest
-
Promoting a Domain Controller from Media
-
Uninstalling Active Directory
-
Upgrading from Windows 2000 to Windows Server 2003
-
Raising the Functional Level
-
Backing Up Active Directory
-
Restoring Active Directory
-
Searching for Objects in a Domain
-
Creating an Object
-
Modifying an Object
-
Moving an Object
-
Moving an Object to a Different Domain
-
Renaming an Object
-
Deleting an Object
-
Exporting and Importing Objects Using LDIF or CSV
-
Finding the Closest Domain Controller
-
Enabling and Disabling the Global Catalog
-
Finding the FSMO Role Holders
-
Transferring or Seizing a FSMO Role
-
Creating and Removing a Trust
-
Viewing the Trusts for a Domain
-
Verifying and Resetting Trusts
-
Enabling Diagnostics Logging
-
Script: Displaying the Structure of a Forest
-
Chapter 16 Domain User, Group, and Computer Accounts
-
Introduction
-
Creating a User Account
-
Creating a Large Number of Users
-
Modifying an Attribute for Several Users at Once
-
Unlocking a User
-
Troubleshooting Account Lockout Problems
-
Viewing and Modifying the Account Lockout and Password
Policies
-
Enabling and Disabling a User Account
-
Setting a User's Password
-
Setting a User's Account Options
-
Setting a User's Profile Attributes
-
Finding a User's Last Logon Time
-
Creating a Group Account
-
Viewing the Members of a Group
-
Viewing a User's Group Membership
-
Adding and Removing Members of a Group
-
Changing the Scope or Type of a Group
-
Creating a Computer Account
-
Joining a Computer to a Domain
-
Renaming a Computer
-
Resetting a Computer Account
-
Chapter 17 Exchange Server 2003
-
Introduction
-
Preparing Active Directory for Exchange
-
Installing the First Exchange Server
-
Installing Additional Exchange Servers
-
Installing an Exchange Service Pack
-
Creating Unattended Installation Files for Exchange and Exchange
Service Pack
-
Installing Exchange Management Tools
-
Delegating Exchange for the First Time
-
Stopping and Starting Exchange Server
-
Mail-Enabling a User
-
Mail-Disabling a User
-
Mailbox-Enabling a User
-
Deleting a User's Mailbox
-
Purging a Deleted Mailbox
-
Reconnecting a Deleted Mailbox
-
Enumerating Disconnected Mailboxes
-
Moving a Mailbox
-
Viewing Mailbox Sizes and Message Counts
-
Mail-Enabling a Contact
-
Mail-Disabling a Contact
-
Creating a Mail-Enabled Distribution List
-
Creating a Query-Based Distribution List
-
Creating an Address List
-
Creating a Recipient Policy
-
Creating a Storage Group
-
Creating a Mailbox Store
-
Listing Domain Controllers and Global Catalog Servers Used by an
Exchange Server
-
Mounting and Dismounting Mailbox Stores
-
Appendix A Introduction to WSH
-
How to Write Scripts
-
WSH 2.0 Versus 5.6
-
Appendix B Introduction to WMI
-
Referencing an Object
-
Enumerating Objects of a Particular Class
-
Searching with WQL
-
Authentication with WMI
-
Appendix C Introduction to ADSI
-
Objects and Interfaces
-
Namespaces, ProgIDs, and ADsPaths
-
Retrieving Objects
-
Appendix D List of Default Environment Variables
-
Appendix E List of Default Processes
-
Appendix F List of Default Services
-
Colophon
Return to Windows Server Cookbook