Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Books
Contents
Chapter 1 Windows Server 2003 Whats New . . . . . . . . . . . . . . . . . . .
Introduction ....................................................
A Chapter-by-Chapter Roadmap to the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1
1
2
3 4 4 4 4 4 5 5 6 9 10 10 10 10 11 12 13 13 15 16 16 18 18 20
IIS Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
.....................................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
iii
Books
Contents
Chapter 2 Whats New in Windows Server 2003 Active Directory . . . . . . 23
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
.. . .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 24 28 29 30 30 30 32 34 35 38 39 40 42
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
iv
Books
Contents
Chapter 3 Whats New in Windows 2003 Active Directory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
New Administration Console Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Drag-and-Drop Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multiple Select Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Saved Queries Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation and Initial Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GPMC Basic Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the GPMCs New Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining the Problem . . . . . . . . . . . . . . . . . . Win2Ks Solution . . . . . . . . . . . . . . . . . . . . . Windows 2003s Solution . . . . . . . . . . . . . . . What a Federation Does and Doesnt Offer Creating Cross-Forest Trusts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 45 46 49 50 50 51 54 54 55 56
Books
Contents
Chapter 4 Inside Windows Server 2003 Forests and DNS . . . . . . . . . . . . . 63
Securing Forest Trusts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Cross-Forest Trust Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Authentication Firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SID Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DNS Health Checks . . . . . . . . . . . . . . Windows 2003 DNSLINT . . . . . . . . Conditional Forwarding . . . . . . . . . . . Setting Up Conditional Forwarding . Stub Zones . . . . . . . . . . . . . . . . . . . . Creating Stub Zones . . . . . . . . . . . Conditional Forwarding vs. Stub-Zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 64 69 70 71 72 75 76 79 80
vi
Books
Contents
Chapter 5 Windows Server 2003 Security Enhancements . . . . . . . . . . . . . 81
Securing the Wire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Shoring Up with SMB Signing . . . . . . . . . . . . . . . . . . . Win98 Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . NT 4.0 Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . Win95 Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . Manipulating the Servers to Not Require SMB Signing Shoring Up with Secure Channel Signing . . . . . . . . . . . Shoring Up with LDAP Signing . . . . . . . . . . . . . . . . . . Shoring Up by Eliminating NTLM and LM . . . . . . . . . . . Enabling NTLMv2 Authentication at the Client . . . . . . . . NTLMv2 for NT 4.0 Clients . . . . . . . . . . . . . . . . . . NTLMv2 for Win9x Clients . . . . . . . . . . . . . . . . . . . Disabling NTLM and LM at the Domain Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 82 83 83 85 86 87 88 89 89 89 90 93
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
vii
Books
Contents
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Using the RC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Deploying EMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 107 111 112 112 113 113 114 115 116 118 Understanding Out-of-Band Management Configuring the SAC . . . . . . . . . . . . . . Understanding !SAC . . . . . . . . . . . . . . . Additional EMS Thoughts . . . . . . . . Performing an AD Backup and Restore . AD Backup Essentials . . . . . . . . . . . . . . Performing a System State Backup . . Creating an AD Map . . . . . . . . . . . . AD Nonauthritative Restore . . . . . . . . . . AD Authoritative Restore . . . . . . . . . . . The New Windows 2003 Backup API . .
Enabling ASR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Replicating DCs from Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Next: New Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
viii
Books
Contents
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools . . . . . . . . . . . . . . . . . 123
Windows 2003 Built-In Command-Line Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Built-In Command-Line Event-Log Tools Eventcreate . . . . . . . . . . . . . . . . . Eventquery . . . . . . . . . . . . . . . . . Eventtriggers . . . . . . . . . . . . . . . . Built-In AD Management Tools . . . . . . Dsadd . . . . . . . . . . . . . . . . . . . . . Dsadd User . . . . . . . . . . . . . . . Dsquery . . . . . . . . . . . . . . . . . . . Dsquery User . . . . . . . . . . . . . Support Tools Installation . . . . AD Tools . . . . . . . . . . . . . . . Dcdiag . . . . . . . . . . . . . . Dcdiag with Replication Dcdiag with Dcpromo . Replmon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 125 127 128 129 130 130 131 131 132 135 135 135 136 137 139 139 141 142 142 144
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Active Directory Users and Computers Enancement Tools Acctinfo.dll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rcontrolad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Event Manipulation Tools . . . . . . . . . . . . . . . . . . . . . . . Custreasonedit . . . . . . . . . . . . . . . . . . . . . . . . . . . . EventCombMT . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ix
Books
Contents
Chapter 8 Special Domain Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
FSMO Role Review and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Knowing Role Holders . . . . . . . . . . . . . . . . . Dumpfsmos . . . . . . . . . . . . . . . . . . . . . . Replmon . . . . . . . . . . . . . . . . . . . . . . . . Transferring Roles . . . . . . . . . . . . . . . . . . . . Role Transfer Through the GUI . . . . . . . . Role Transfer Through the Command Line Seizing Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 149 149 150 150 151 153
Final Thoughts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Thank You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Dedication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Contact Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Chapter 1
n Note
This book differs from several currently available Windows 2003 books in that its based on experience with the actual product not with beta code and outdated screens. The advantage to you is that you wont be missing any late-breaking information.
also review how to use ADs advanced management features to tie together your Windows 2003, Win2K, and NT domains. Chapter 4: Inside Windows Server 2003 Forests and DNS Chapter 4 explores Windows 2003s new cross-forest trusts demonstrating precisely how to control resources via the new Authentication Firewall and SIDFiltering techniques. Additionally, I cover whats new with Windows 2003 DNS: Conditional Forwarding, DNS Stub zones, and the new DNSLint tool. Chapter 5: Windows Server 2003 Security Enhancements Chapter 5 covers client side security with Windows 2003s new required server rules. I'll discuss the new ACL editor and explain how Windows 2003 deals with schema changes and revisions, along with other security enhancements. Chapter 6: Backup, Restore, and Recovery for Windows Server 2003 and Active Directory Chapter 6 discusses Windows 2003 AD backup and restore features, including the ins and outs of resurrecting objects after theyve been deleted. Youll want to know how Windows 2003 addresses this situation. Chapter 7: Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools Chapter 7 introduces Windows 2003s extensive set of tools. I cover the plethora of commandline tools, support tools, and the Microsoft Windows Server 2003 Resource Kit tools. Chapter 8: Windows Server 2003 Special Domain Operations Chapter 8 reviews a new Windows 2003 domain renaming feature. You can now rename both domain controllers (DCs) and complete domains. Should your organization name change from smallcollege.edu to huge-u.edu, for example, you wont be plagued by the old name remaining in the domain. Windows 2003 offers much thats new and even more thats improved. Over the next several months, Ill cover the key features in bite-sized chunks. So, welcome to Windows 2003 and AD. It wont be long until youre ready to go forth and deploy! Jeremy Moskowitz jeremym@moskowitz-inc.com If you want to contact me with specific Windows 2003 questions, Ill take a shot at answering them or directing you to a solid specific resource. However, I might not be able to research every question in depth.
to influence a purchasing decision between the two. Knowing which features each edition offers can help you and your company make the best business decision.
n Note
Windows 2003, Standard Edition might be just the ticket for most businesses day-to-day needs. However, to weigh which server edition might be right for your business, examine the features listed in the following text.
Table 1.1
Win2K and Windows 2003 servers and clients
Windows 2000
Departmental server General use server Mission-critical server One-stop-shop server for all business needs Web server Preferred client Win2K Server Win2K Advanced Server Win2K Datacenter Server Win2K Small Business Server None Win2K and Windows XP work equally well
Windows 2003
Windows 2003, Standard Edition Windows 2003, Enterprise Edition Windows 2003, Datacenter Edition Windows 2003, Small Business Server Edition Windows 2003, Web Edition Windows XP supports extra features and optimization.
I explore the different Windows 2003 server editions to give you an overview of each servers capabilities, beginning with Windows 2003, Standard Edition to establish a baseline. I then list the features common to Windows 2003, Standard Edition, Windows 2003, Enterprise Edition, and Windows 2003, Datacenter Server, before I continue with individual edition overviews.
Tip
Windows 2003 introduces a new feature that if you have enough RAM to support it lets you eliminate your Windows swap file completely. Consider using this feature only if you have enough RAM to do without your swap file completely. In Task Manager, view the Performance tab. Inspect the Commit Charge entry to see if the peak commit is less than the physical memory. If it is, you should be able to eliminate the swap file.
Windows 2003, Standard Edition is the follow-on to Win2K Server. In theory, you can simply pop the Windows 2003, Standard Edition CD-ROM into existing Win2K servers and upgrade them in place. However, note the caution below.
Caution
Only upgrade your Win2K servers to Windows 2003 with a change-management plan.
n Note
I mention the features that Microsoft introduced in the various Win2K Server editions for comparison only.
Remote Access
Microsoft has improved Windows remote access. Specifically, remote access includes a useful new feature the Network Access Quarantine Control feature that lets you quarantine users. Briefly, heres how the feature works: If client systems dont run software that you specify, such as a service pack or a virus scanner, those client systems are quarantined and cant access your network.
Figure 1.1
The Internet Connection Firewall
Tip
The remote access quarantine is a bit difficult to work with. You can download the complete details at the following URL: http://www.microsoft.com/windowsserver2003/docs/quarantine.doc
Figure 1.2
Enabling Remote Desktop
intends to prove to everyone including your management that the servers will stay up until administrators take them down. To that end, Microsoft has included a small reporting window into which administrators can type precisely why they choose to shut down a server. The EventcombMT tool from the Windows Server 2003 Resource Kit can parse the logs from all servers and highlight why administrators reboot servers.
n Note
I discuss more Resource Kit tools in Chapter 7: Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools.
Figure 1.3 shows a Windows 2003 Event tracking Shut Down Windows screen. In the Shutdown Event Tracker Option segment of the dialog box, you can specify by category why youre shutting the server down.
Figure 1.3
Windows 2003 event-tracking Shut Down Windows screen
Figure 1.4 shows the option selected in Figure 1.3, including the comment field that lets you enter more detailed information about why you shut down the server. The record of server shutdowns might be valuable both to you and to Microsoft.
Figure 1.4
Shutdown Event Tracker comment field
You might not want to use the Shutdown Event Tracker. Figure 1.5 shows the policy you use to disable the mechanism. You can enable and disable Shutdown Event Tracker through the Group Policy Object Editor.
Tip
You might find the mechanism for disabling the shutdown event annoying, especially in a testing environment in which machines are rebooted all the time. You might want to turn this feature off for some servers, but certainly not for all. With that in mind, you can use these steps to turn off the Server Event Tracking on a particular server. 1. 2. 3. Click Start, Run, and type in GPEDIT.MSC. Traverse to Computer Settings, System, Display Shutdown Event Tracker. Disable the policy.
Figure 1.5
The Display Shutdown Event Tracker policy
10
Figure 1.6
The Manage Your Server Wizard
Help File
Figure 1.7 shows the Windows 2003 Help file, which youll find highly useful. Microsoft and the entire Online Help team have outdone themselves in the level of detail provided at each turn of the virtual page. I usually click the Index button (circled in the screen shot), then track down what I need instead of relying on the (somewhat slow) Search facility.
11
or know much about the .NET Framework. Because the framework is already deployed inside the OS, its one less thing you need to address today.
Figure 1.7
The Windows 2003 Help file
Windows 2003, Standard Edition might offer all the server firepower you need to run your business. However, as I explore Windows 2003, Enterprise Edition, youll see that it offers considerably more.
Tip
If you think you might not use all the Windows 2003, Enterprise Edition features immediately but might use them in the future, its best to invest the dollars up front and get Enterprise Edition today, rather than deploying Windows 2003, Standard Edition. Why? Because you cant upgrade from Windows 2003, Standard Edition to Windows 2003, Enterprise Edition. Choosing wisely at this stage is paramount.
12
Windows 2003, Enterprise Edition offers more scalability features than either Windows 2003, Standard Edition or Win2K AS. Clustering has been increased from the four nodes available in Win2K AS to eight nodes. NLB has increased from the four nodes available in Win2K AS to eight nodes. Terminal Services offers a new load-balancing feature in the new Terminal Services Session Directory. The feature provides a front-end NLB that lets clients easily find an available Terminal Server in a Terminal Server farm. Microsoft will support the Microsoft Metadirectory Services (MMS) add-on, a centralized service meant to bridge the gap between disparate directories such as AD and iPlanet. Apparently, Microsoft is designing the Windows 2003 version of MMS for deployment upon Enterprise Edition servers only. Still other Windows 2003, Enterprise Edition features are available only if your hardware can leverage those features. The features listed below require high-end servers. Hot-add memory lets you add memory to a server while its running and allocate that memory to the rest of the server. Non-Uniform Memory Access (NUMA) is a hardware-specific feature that returns low-level information from the hardware to NUMA-compliant applications. This returned data can fine-tune NUMA-aware applications in real time based on the systems total stress level.
n Note
For more information about the Windows 2003, Datacenter Edition server program, visit the URL below. http://www.microsoft.com/windowsserver2003/evaluation/overview/datacenter.mspx
13
Windows 2003, Web Edition is both the least costly and the least flexible of the server family. Its single purpose is to serve Web pages.
Tip
You can find more information about Windows 2003 at the following URL: http://www.microsoft.com/windowsserver2003/evaluation/overview/web.mspx
14
Table 1.2
Windows 2003 64-bit capabilities
Product Windows 2003, Standard Edition Windows 2003, 64-Bit Enterprise Edition Windows 2003, 64-Bit Datacenter Edition Windows 2003, Web Edition Windows XP Pro, 64-Bit Edition Processors Wont be available in a 64-bit edition. 18 8 64 12 2 (Itanium 1 or Itanium 2) RAM 64GB Maximum 512GB Maximum 2GB Maximum 16 GB
Tip
You can find more information about XP Professional 64-bit edition at the following URL: http://www.microsoft.com/windowsxp/64bit/techinfo/planning/techoverview/default.asp
Table 1.3
Minimum hardware requirements for Windows 2003 installations
Standard CPU Type Speed RAM Disk Pentium II 133MHz 128MB 1.5GB Enterprise Pentium II 133MHz 128MB 1.5GB Enterprise 64-Bit Itanium 1 733MHz 128MB 2.0GB Web Pentium II 133MHz 128MB 1.5GB Datacenter Contact a Datacenter vendor for details.
n Note
Although processor speed and processor type arent strictly enforced when you attempt to install, the amount of RAM is. For example, if you dont have 128MB of RAM, you cant load Windows 2003 on a Pentium-class system.
15
Table 1.4
Real-world minimum hardware requirements for Windows 2003 installations
Standard CPU type Speed RAM Disk Pentium 4 2GHz 256MB 1GB 9GB + Storage for data Enterprise Pentium 4 2GHz 256MB 1GB 9GB + Storage for data Enterprise 64-Bit Itanium 1 or Itanium 2 733MHz 256MB 1GB 9GB + Storage for data Web Pentium 4 2GHz 256MB 512MB 9GB + Storage for data Contact a Datacenter vendor for details. Datacenter
16
Figure 1.8
Enabling or disabling error reporting in System Properties
Driver Signing
Driver signing isnt new with Windows 2003, but its a highly useful feature. This feature lets you block drivers that havent undergone Windows Hardware Quality Labs (WHQL) testing and signing. The default sets up Driver Signing to warn you when youre about to load an unsigned driver, as Figure 1.9 shows. I recommend that you consider raising the level on all your servers to Block Never install unsigned driver software .
Driver Rollback
Even if a driver that shouldnt have been loaded is loaded, you have another chance to excise it from your system. You can use the Driver Rollback feature that Figure 1.10 shows to roll back the current driver to the most recent previously installed driver.
n Note
The Driver Rollback feature isnt designed to keep histories of all the drivers for a device that youve ever loaded. It remembers only your most recent previously installed driver.
17
Figure 1.9
Selecting the Driver Signing level in System Properties
Figure 1.10
Driver Rollback feature in Device Manager
18
Automatic Updates
Windows 2003 now allows automatic updating when patches become available between service packs. You can choose between different modes that can help you keep your Windows 2003 servers updated, as Figure 1.11 shows.
Figure 1.11
Configuring Automatic Updates in System Properties
Tip
You can leverage the power of Microsofts free SUS to specify which patches you want to send to your systems. Its a simple task for an Administrator to test the proposed patch offline in the test lab, then select which patches will go to servers and clients. SUS is available for download from Microsoft at http://www.microsoft.com/windowsxp/64bit/techinfo/planning/techoverview/default.asp
Brought to you by NetIQ and Windows & .NET Magazine eBooks
19
Figure 1.12
Microsoft SUS
IIS Improvements
Microsoft Internet Information (IIS) Services 6.0 is a wholesale IIS overhaul. In a nutshell, IIS 6.0 is faster more secure easier to administer Did I mention that its faster? IIS 6.0 is so much faster than previous IIS versions that its speed is hard to describe. Why is it faster? Microsoft has moved the HTTP processor from user mode to kernel mode, a move that makes IIS 6.0 dramatically faster. Space constraints keep me from delving into and describing all the IIS 6.0 architecture and security changes. For an in-depth look at the changes, be sure to read Brett Hills Windows & .NET Magazine article IIS Overhauled in Version 6.0, which youll find at the following URL: http://www.winnetmag.com/windowsserver2003/index.cfm?articleid=38285
20
Figure 1.13
Setting Up Remote Administration
When youre ready to use Remote Administration Mode, go to http://<servername >:8089. Youll be prompted for credentials. After youre in, poke around to see what you can do from a Web browser. Figure 1.14 indicates some of what you can accomplish after you set up Remote Administration Mode.
21
Figure 1.14
Remote Administration Mode
Tip
You cant load Remote Administration if the target server is a DC.
22
What will deployment cost? Do you have a Microsoft licensing agreement that lets you upgrade to Windows 2003? If so, youll pay only the labor costs of performing the application tests and the upgrade not the software costs. If you dont have a licensing agreement that lets you upgrade to Windows 2003, try to figure out how many licenses youll need. Be especially careful after you introduce your first Windows 2003 DC. Im not an expert on Microsoft licensing, but my understanding is that after you introduce your first Windows 2003 DC, youll need to get current on all your Client Access Licenses (CALs). Definitely check with your Microsoft licensing representative to get the full scoop on the upgrade costs.
Tip
The article at the following URL provides some information about Microsoft licensing: http://www.winnetmag.com/Articles/Index.cfm?ArticleID=24033
23
Chapter 2:
Figure 2.1
Windows 2003 CD-ROM initial screen
24
In my opinion, the real magic of Windows 2003 lies in the new Active Directory (AD)-specific features you gain after you complete your upgrade. This chapter explores what capabilities those features provide and discusses how to prepare to use them.
n Note
Although it makes sense to list the scenario of having all NT 4.0 DCs first (as I did above), I discuss that scenario last. Moving from all NT 4.0 DCs to Windows 2003 has some unique considerations. Nevertheless, those of you who have all NT 4.0 DCs will benefit from reading through the material that precedes the discussion of that particular upgrade.
25
Figure 2.2
Active Directory Domains and Trusts
In the list of domains that appears, select the name of the domain whose mode you want to check and right-click Properties. The domain mode should appear. If you have any NT 4.0 BDCs, youre probably in Mixed Mode, as is the case with Domain B, which Figure 2.3 shows.
26
Figure 2.3
Ascertaining a domains mode
Mixed Mode supports both Win2K and pre-Win2K DCs, which means that you can still add and remove NT 4.0 BDCs as needed. This capability is a good thing. You might have legacy applications that require you to keep NT 4.0 BDCs around until you find a Win2K or Windows 2003 solution. Of course, much of the capability that you have with all Win2K DCs is missing in Win2K and NT Mixed Mode. (The next section details which capabilities you add if you make the switch to all Win2K DCs.) However, with the first Win2K DC, you get Group Policy support for Win2K and XP Professional clients IntelliMirror support for Win2K and XP Professional clients domain management capability through either Active Directory Users and Computers (Win2K) or User Manager for Domains (NT 4.0)
27
Tip
For an in-depth discussion of Group Policy and IntelliMirror, see my book Windows 2000: Group Policy, Profiles, and IntelliMirror. You can find information about the book at the URL below. http://www.sybex.com/sybexbooks.nsf/2604971535a28b098825693d0053081b /d15f21a26eaeed8588256bca0062a12f!OpenDocument&Highlight=0,moskowitz
The promised land, as far as Win2K is concerned, is to get rid of all your NT 4.0 BDCs and have homogeneous Win2K DCs. Interestingly, new Windows 2003 domains are born into Win2K Mixed Mode. You can see Domain As initial mode Win2Ks Mixed Mode in the Windows 2003 domains Active Directory Domains and Trusts screen, which Figure 2.4 shows.
Figure 2.4
A new Windows 2003 domains initial mode
Therefore, if you build a new Windows 2003 domain from scratch, you could still, if you wanted to, introduce additional NT 4.0 BDCs. This capability might be helpful should you have legacy applications, such as a specialized account lookup program or a specialized piece of remote access equipment, that must reside on a BDC.
28
Figure 2.5
Changing the domains operation mode to Native Mode
29
Your Win2K domain is now in Win2K Native Mode, which lets you add Windows 2003 as well as Win2K DCs. Keep in mind, however, that Windows 2003 in Win2K Native Mode doesnt allow NT 4.0 BDCs.
Caution
When you make the switch to Win2K Native Mode, you effectively abandon any remaining NT 4.0 BDCs. They wont receive updates from your Win2K domain. If you dont disconnect the NT BDCs, they might introduce network errors (e.g., they might validate deleted users access to your network).
n Note
A third-party tool, such as Algin Technologys U-Promote, can in most cases help you promote or remove an NT 4.0 BDCs DC status, leaving it a plain server. As with any tool, use U-Promote only if you have current backups on hand.
Tip
You can upgrade an NT 4.0 Server to either Windows 2003, Standard Edition or Windows 2003, Enterprise Edition. However, you can upgrade NT 4.0 Server, Enterprise Edition only to Windows 2003, Enterprise Edition.
30
Decision Point At this point, if youre running all NT 4.0 DCs, youre ready to decide whether to bypass the Win2K DC step completely. You know that you can jump from NT 4.0 straight into Windows 2003 but what else should you consider? If you know that Win2K DCs wont ever and I mean ever be involved in your journey to Windows 2003 AD, you can take advantage of a special domain mode, Interim Mode. Interim Mode is useful in the unique scenario comprised of NT 4.0 BDCs and Windows 2003 DCs no Win2K DCs allowed.
Caution
Interim Mode works only with NT 4.0 BDCs and Windows 2003 DCs.
Getting to Interim Mode If you currently have 100 percent NT DCs and want to introduce your first Windows 2003 DC, how do you move into Interim Mode? You select it when you use the Active Directory Installation Wizard to upgrade an NT 4.0 domains PDC. You choose the forest functional level for forests that wont contain Win2K DCs, as Figure 2.6 shows.
31
Figure 2.6
Choosing Interim Mode
n Note
The Active Directory Installation Wizard dialog box is titled Forest Functional Level. I discuss Forest Functional Levels later in this chapter. If you select Windows Server 2003 interim here, youre also changing the domain level to Windows 2003 Interim domain level.
When you upgrade an NT 4.0 PDC (to upgrade your NT 4.0 domain), Dcpromo will run automatically. As you can see above, the text lets you know that the setting is right for you only if youll never have Win2K DCs. Also, notice the statement in the lower left-hand corner of the dialog box: Note: both options allow the forest to have Windows NT 4.0 domain controllers. In fact, you can include NT 4.0 BDCs until you make the switch to Win2K Native Mode or the Windows 2003 equivalent (described below). After the upgrade is complete, you can see Interim Mode again, in Windows 2003s Active Directory Users and Trusts, which Figure 2.7 shows.
32
Figure 2.7
DOMAINC upgraded to Interim Mode
33
Figure 2.8
Raising a domains functional level
Next, you can select the functional level you want to support, as Figure 2.9 shows. Your choices are to support a domain with Win2K DCs and Windows 2003 DCs or a domain with 100 percent Windows 2003 DCs.
Figure 2.9
Selecting an available domain functional level
34
Select the domain functional level you want, then click Raise. You can bump one level to Windows 2000 native or two levels to Windows Server 2003.
Caution
Raising the level is irreversible. That is, if you select Windows 2000 native, you cant go back to Windows 2000 mixed. If you select Windows Server 2003, you cant go back to either Windows 2000 native or Windows 2000 mixed.
After a domain is at Windows 2003s domain functional level, you get the following major additional features. InetOrgPerson becomes a user principal (I discuss this feature in Chapter 5: Windows Server 2003 Security Enhancements). Update logon timestamp: This feature lets administrators easily determine when a specific user logged on and to which DC. Youll find this information helpful for auditing purposes. I discuss this feature and a tool that helps you examine the attribute involved in Chapter 7: Command Line, Support Tools, and Resource Kit Tools. Domain rename feature (I discuss this feature in Chapter 8: Special Domain Operations).
35
Table 2.1
Win2K and Windows 2003 domain levels
Mode or Functional Level Win2K Mixed Mode Machines Allowed Win2K DCs, Windows 2003 DCs, and NT 4.0 BDCs
When useful When you have an application on an NT BDC on which your business depends
Features Group Policy and IntelliMirror for Win2K Professional and XP Professional clients
Notes Both Win2K and Windows 2003 domains are created in Mixed Mode. NT 4.0 BDCs can participate in Win2K Mixed Mode. NT 4.0 BDCs are excluded from this mode.
When you have a new Win2K domain, a new Windows 2003 domain, or a Win2K domain with new Windows 2003 DCs When youre upgrading an NT 4.0 domain and have NT 4.0 BDCs
Universal Group Support, SidHistory, SAM limit gone replaced by 100 percent Win2K-style replication Group size of 5000+ users, enhanced Windows 2003 replication to other Windows 2003 DCs
You can choose this mode only if youre upgrading an NT 4.0 PDC with a Windows 2003 CD-ROM. Win2K DCs are excluded from this mode. Win2K DCs and NT 4.0 BDCs are excluded from this mode.
When youre creating 100 percent new Windows 2003 domains without any older DC types
36
Figure 2.10
Upgrading from NT 4.0 or Win2K to Windows 2003
Windows 2000 to Windows 2003 domain upgrade Upgraded Windows NT 4.0 to Windows 2003 domain New (option 2) Windows 2003 domain Upgraded Windows NT 4.0 to Windows 2003 domain (option 1)
Caution
Let me remind you once more that domain upgrades arent reversible. If you select Win2Ks Native Mode, you cant go back to Win2Ks Mixed Mode. If you select Windows 2003s Interim Level or Windows 2003s Functional Level, you cant go back to either Win2Ks Native Mode or Win2Ks Mixed Mode.
Brought to you by NetIQ and Windows & .NET Magazine eBooks
37
Tip
Interestingly, a Win2K forest just is no distinction is made between particular modes. Only Windows 2003 forests make a distinction between Win2Ks forest functional level and Windows 2003s forest functional level.
However, to get to the best features that Windows 2003 AD offers, you must first reach Windows 2003s forest functional level. To do so, you must ensure that all DCs are Windows 2003 all domains are switched to Windows 2003s domain functional level After youve completed that preparation, you can take it one step further. That is, you can throw the switch to bring the entire forest to Windows 2003s forest functional level the Holy Grail of Windows 2003 AD. To raise the forest level, right-click the Active Directory Domains and Trusts root and select Raise Forest Functional Level, which Figure 2.11 shows.
Figure 2.11
Raising the forest functional level
After youve selected Raise Forest Functional Level, youll see the current functional level of the forest, which Figure 2.12 shows. That level should be Windows 2000. If you run Win2K, Windows Server 2003 will be the only functional level available.
38
Figure 2.12
Selecting Windows 2003s forest functional level
If you chose to perform an NT 4.0 upgrade into an Interim level domain and forest, you have two options: Windows 2000 Server and Windows Server 2003. Note, however, that youll need to throw Windows 2003s domain functional level switch in each domain before Windows 2003s forest functional level is valid. Simply click Raise on the domain functional level you want, and youre done.
Caution
As is true in raising a domains level, after you raise a forests level, you cant reverse the move. That is, if you start with Win2Ks forest functional level and you select Windows 2003s forest functional level, you cant go back to Win2Ks forest functional level.
39
Global Catalog (GC) indexing improvements Under Win2K, if you wanted to manually add a value to be contained inside the GC server (e.g., social security number), you could do so. , each GC would essentially dump its index and start re-indexing, which could cause massive network traffic among the DCs. Global Catalog servers now retain their indexes when a new attribute is added; the index adds only the change. Intersite Topology Generator (ISTG) improvements Under Win2K, you faced a practical limit. At some point between 200 and 250 AD sites, you had to perform some special magic to add more sites. Oftentimes, adding more sites involved consultants and was expensive. Now, you can have literally thousands of AD sites without the system even breaking a sweat. Here are some additional major features that Windows 2003s forest functional level offers: Domain rename feature This feature sounds straightforward and self-explanatory; however, using the feature requires some background, as I explore in Chapter 8: Special Domain Operations. Cross-Forest Trust If your forest is at Windows 2003s forest functional level and another company (or an unrelated organizational segment of your company) also has a Windows 2003s forest functional level forest, you can minimize the potential number of trusts by creating one cross-forest trust. I explore cross-forest trusts in Chapter 3: Whats New in Windows Server 2003 Active Directory Management. Defunct Schema Object In Win2K, if you had a schema addition and wanted to make a change, you had exactly zero options to fix the problem. Windows 2003s forest functional level changes the score a bit. I explore this feature in the next chapter as well.
Using Adprep
Adpreps purpose is to upgrade the schema to Windows 2003 levels and give it a new revision number. Youll need to run Adprep multiple times: Run Adprep /forestprep one time on the schema master of the root domain of the Win2K forest Run Adprep /domainprep one time for each domain on the infrastucture master of each domain For example, if you have four domains, youll run Adprep five times: once for the forest and once for each domain, as Figure 2.13 shows.
Brought to you by NetIQ and Windows & .NET Magazine eBooks
40
Figure 2.13
Running Adprep
corp.com
europe.corp.com KEY Run ADPREP /Domainprep on infrastructure master of each domain Run ADPREP /Forestprep on the schema master of the forest buffalo.na.corp.com
na.corp.com
Caution
You should have at least Win2K Service Pack 2 (SP2) loaded on all DCs before you continue. Win2K SP3 is preferred. You can proceed, however, with even SP1 (plus hotfixes).
Pop the Windows 2003 CD-ROM into the schema master, and run Adprep /forestprep. When you do, youll see Adprep update the schema incrementally from Version 13 of Win2K to Version 30 of Windows 2003, as the output in Listing 2.1 shows.
Tip
If your schema starts at a number greater than 14, someone might have already performed this step with a Windows 2003 beta or release candidate (RC).
41
Listing 2.1
Output from Adprep schema update
X:\I386>adprep /forestprep ADPREP WARNING: Before running adprep, all Windows 2000 domain controllers in the forest should be upgraded to Windows 2000 Service Pack 1 (SP1) with QFE 265089, or to Windows 2000 SP2 (or later). [User Action] If ALL your existing Windows 2000 domain controllers meet this requirement, type C and then press ENTER to continue. Otherwise, type any other key and press ENTER to quit. Opened Connection to SERVERB SSPI Bind succeeded Current Schema Version is 13 Upgrading schema to version 30 Connecting to SERVERB Logging in as current user using SSPI Importing directory from file C:\WINNT\System32\sch14.ldf Loading entries................................. 111 entries modified successfully. [some output removed for readability] The command has completed successfully Connecting to SERVERB Logging in as current user using SSPI Importing directory from file C:\WINNT\System32\sch29.ldf Loading entries................................. 6 entries modified successfully. The command has completed successfully Connecting to SERVERB Logging in as current user using SSPI Importing directory from file C:\WINNT\System32\sch30.ldf Loading entries................ 15 entries modified successfully. The command has completed successfully ........................................... Adprep successfully updated the forest-wide information. X:\I386>
42
Figure 2.14
Adprep /domainprep output
Youre now ready to upgrade your Win2K domain to Windows 2003. You can start with the recommended upgrade method: that is, begin with the PDC of the root domain, then upgrade each PDC in each domain. On the other hand, you could actually choose a Win2K DC and start your upgrade there.
43
Chapter 3:
Figure 3.1
Checking the Active Directory Users and Computers version
44
Drag-and-Drop Function
One of the most requested features for this version of Windows was a drag-and-drop function within Active Directory Users and Computers. In Win2Ks version of the Active Directory Users and Computers tool, you could move objects around the AD only by right-clicking them, selecting Move, and selecting the destination. This option is still available in Windows 2003, as Figure 3.2 shows.
Figure 3.2
Moving objects through Active Directory Users and Computers
However, with Windows 2003, you now have the requested additional option. You can simply drag a user account or multiple user accounts from one folder or organizational unit (OU) to another folder or OU.
n Note
In Windows 2003s Active Directory Users and Computers, you can still move items by rightclicking and selecting Move rather than by using the new drag-and-drop feature.
Tip
I continue to use the Win2K-style method of right-clicking and moving the objects rather than dragging them. I fear moving an entire group of users or an OU from one corner of AD to another inadvertently. Continuing to right-click and move my items is a bit slower, but doing so reassures me that Ive made a deliberate move.
45
Figure 3.3
Selecting multiple users in Active Directory Users and Computers
46
As Figure 3.3 shows, the Properties On Multiple Objects dialog box reminds you that you have multiple users selected. You click the tab that contains the information you want to change, then select the check box for the information youre modifying (e.g., address, account expiration date). Figure 3.4 shows the available tabs and the Logon Hours dialog box that appears if you select to change users logon hours.
Figure 3.4
Changing properties for multiple objects at once
When you click OK, you leave intact all the current information each account contains but replace the information you entered after selecting the appropriate check box. The new multipleselect capability of Active Directory Users and Computers is a great time-saver.
47
Locate and select the category of AD object category for your search, such as Users or Printers. Figure 3.5 shows how you create a custom search.
Figure 3.5
Search options for locating objects in AD
When you find the category you want to search, select it, and fill in the matching criteria. Figure 3.6 displays the query to find all users with the word user in the name field.
48
Figure 3.6
Query to find users with the word user in the name
When the search has completed, you can immediately access the results. Figure 3.7 shows the list of users with the word user in the name field.
Figure 3.7
Displayed results of a saved query
Youll find the ability to create and save new queries useful. With this feature, Windows 2003s Active Directory Users and Computers has taken a practical step forward.
49
n Note
You can download the GPMC from Microsoft at http://www.microsoft.com/downloads/details.aspx?familyid=f39e9d60-7e41-4947-82f53330f37adfeb&displaylang=en
In Win2K (and in Windows 2003 without the GPMC loaded), you need to know where each Group Policy is maintained in relation to each domain and OU and sometimes in relation to each AD site. The complexity of what you need to know can make managing Group Policy confusing. The GPMC strives to provide a Group Policy-centric view of the environment a birds-eye view of Group Policy Objects (GPOs).
Figure 3.8
Manipulating GPOs after the GPMC is loaded
Alternatively, you can use an icon to launch the GPMC. An icon titled Group Policy Management appears automatically when you select Start, Programs, Administrative Tools.
50
Figure 3.9
The GPMCs Group Policy-centric view
You create new GPOs through the GPMC. After you create a GPO, you can edit it by rightclicking it and selecting Edit. Doing so launches the Group Policy Editor, which you can then use to set the policies you want to implement.
51
n Note
Ill fully explore the GPMC in the upcoming revision of Windows 2000: Group Policy, Profiles and IntelliMirror titled Windows Server: Group Policy, Profiles and IntelliMirror. For information about the current edition and about the revision as soon as its available, go to http://www.sybex.com/sybexbooks.nsf/2604971535a28b098825693d0053081b /d15f21a26eaeed8588256bca0062a12f!OpenDocument&Highlight=0,moskowitz
Figure 3.10
An NT 4.0 domain not yet in an existing Win2K domain
corp.com SALES
europe.corp.com
You can upgrade the Sales PDC, instruct it to join an existing forest, and simply choose which domain you want to be the parent. Figure 3.11 and Figure 3.12 show possible upgrade options. Figure 3.11 shows the Sales domain becoming Sales.corp.com, a child of Corp.com.
52
Figure 3.11
Option 1 Sales becomes Sales.corp.com, a child of Corp.com
corp.com
europe.corp.com
Figure 3.12 shows another upgrade option for the NT 4.0 Sales domain. The Sales domain becomes Sales.europe.corp.com, a child of the Europe.corp.com domain.
53
Figure 3.12
Option 2 Sales becomes Sales.europe.corp.com, a child of Europe.corp.com
corp.com
europe.corp.com
These two NT 4.0 domain upgrade options are useful, but they go only so far. Specifically, what happens if you already have two Win2K domain trees and no longer have any NT 4.0 domains? Such a scenario is quite prevalent in many corporations (e.g., when a merger has occurred). Someone has already performed the NT 4.0-to-Win2K upgrade in a domain without choosing a Win2K parent. Later, an administrator wants to place that upgraded (now Win2K) domain (or domain tree) in an existing forest. In Win2K, you cant just join two existing Win2K domains or domain trees together. Lets look again at the diagram in Figure 3.10. Imagine that the NT 4.0 Sales domain has been upgraded to Win2K without a parent domain having been chosen. The resulting situation would resemble the scenario that Figure 3.13 represents.
54
Figure 3.13
Two Win2K domains that cant simply be joined
corp.com
europe.corp.com
Forest corp.com
Win2Ks Solution
The Win2K method for working around the inability to prune and graft isnt pretty. You set up external trust relationships between the unrelated domains. The external trusts work exactly like NT 4.0 trusts. However, like NT 4.0 trusts, the mechanism uses NT LAN Manager (NTLM) authentication, which means the connection isnt very secure. Additionally, every time you want a new domain in either forest to be able to share information with other domains, you must create another trust relationship manually. An external trust lets you share basic account information through the trust in the same way that NT 4.0 domains let you share such information. For example, after an external trust is put in place, you can apply NTFS permissions in one domain that also restrict users from another domain.
55
n Note
In Windows 2003, forests have names just as domains have names. The forest has the same name as the root of the domain of that forest, as Figure 3.14 shows.
Figure 3.14
Cross-forest trusts
Cross Forest Trust #1 Cross Forest Trust #2
corp.com
bigu.edu
europe.corp.com
Forest corp.com
registrar.bigu.edu
When you tie multiple forests together with cross-forest trusts, the resulting set of relationships has a special name. Its called a federation of forests.
56
However, if a user in Registrar.bigu.edu traveled to Europe and wanted to log in at a machine in Europe.corp.com, he would have to use his UPN logon name, joe@registrar.bigu.edu, to log on successfully. He couldnt use his usual method of picking his home domain from the Ctrl+Alt+Del drop-down box when he logged on. It simply doesnt appear. Therefore, I recommend that users become familiar with their UPN logon names so they can log on from wherever they are.
Caution
Training your users to use the UPN-style logon could be an uphill battle if theyre used to the ease of a drop-down box.
Administrators face a similar situation. That is, if administrators want to set ACL permissions on users across the cross-forest trust, the administrators must know the full UPN name of any accounts they want to manipulate. This shortcoming could make cross-forest trusts a bit annoying.
n Note
To learn more about UPN logon names, go to http://support.microsoft.com/default.aspx?scid=kb;EN-US;243280 or to http://www.winnetmag.com/WindowsServer2003/Index.cfm?ArticleID=38280.
57
Tip
You can perform the work from whichever domain you choose, as long as its from the root of one of the forests.
Begin by running Active Directory Domains and Trusts. Then, for the domain from which youre working, select the domains Properties, click the Trusts tab, and select New Trust. Selecting New Trust launches the New Trust Wizard, as Figure 3.15 shows. You use the New Trust Wizard to create all sorts of trusts, including cross-forest trusts.
Figure 3.15
The New Trust Wizard
You can now design your cross-forest trust, which you can set up as a one-way or two-way trust. Be prepared for multiple wizard pages. Although I wont explore all of the pages here, Ill review highlights and examine the results of some choices you make.
58
After the splash screen, the wizard displays the Trust Type page, which Figure 3.16 shows. You can select to set up a traditional NTLM External trust or a Kerberos Forest trust (i.e., a cross-forest trust). If you choose the NTLM External trust, the work you do here will be between just two specific domains and wont span the entirety of forests. It will be precisely the same as an NT-style trust, and you wont have any trust transitivity. (Kerberos supports transitive trusts. That is, if Domain A trusts Domain B and Domain B trusts Domain C, Domain A trusts Domain C.)
Figure 3.16
Selecting trust type
Next, the wizard displays the Direction of Trust screen, which Figure 3.17 shows. As its title indicates, on this screen you select the direction of the trust. The trust can be inbound to your forest or inbound to the other forest or the trust can work both ways. You might choose to make the trust one way to share resources in one direction only. For example, you might have file servers in Forest A that Forest B must be able to access. However, Forest B might not need access to file servers in Forest A. In those circumstances, a one-way cross-forest trust might be just the ticket. Typically, however, youll be setting up two-way cross-forest trusts.
59
Figure 3.17
Selecting trust direction
I omit the next screen, Sides of Trust, which lets you create both sides of the trust in one step. That is, instead of creating one half of the trust, then having the administrator of the other forest create the other side of the trust, you can simply give the system the other forests credentials (if you have them) and create both sides of the trust at once. This creation option is a handy timesaver, as long as you have the administrative information you need. The wizard then displays the Outgoing Trust Authentication Level Specified Forest screen, which lets you determine which user accounts can go through the trust. I discuss this selection option, called the Authentication Firewall, in Chapter 4: Inside Windows Server 2003 Forests and DNS. Finally, the wizard displays a summary of your selections on the Trust Selections Complete screen, which Figure 3.18 shows. On this example screen, you can see that Im setting up a cross-forest trust between two root domains: Domaina.com and Corp.com.
60
Figure 3.18
Trust Selections Complete summary screen
After the trust has been set up, Windows 2003 can automatically validate it. You choose the validation step on the screen that appears after you click Next on the screen that Figure 3.18 shows. The validation takes only a minute, and it ensures that after the initial trust is set up, its valid and working properly from both forests.( Occasionally, one side of the trust can be built without the other side being built properly. This step ensures that the trust works correctly both ways.) After youve finished setting up your trust, you can see the fruits of your labor inside Active Directory Domains and Trusts on the Properties screen, which Figure 3.19 shows.
Figure 3.19
The new cross-forest trusts properties
61
Because youre looking at Domaina.coms properties, you can see an inbound and outbound cross-forest trust to Corp.com. Administrators in either forest can now choose accounts in the other forest and set permissions granting or restricting access to resources on the servers each owns. Additionally, users can log on to any forest. Again, users can use the drop-down menu when they log on to any root domain, as Figure 3.20 shows. (You can see the other root domains from your domain and vice versa.)
Figure 3.20
Drop-down logon menu
n Note
You can see both root domains listed in the drop-down menu. However, what you see isnt the Fully Qualified Domain Name (FQDN), such as Corp.com. Youll see only Domaina.coms and Corp.coms NetBIOS names that is, DOMAINA and DOMAINC respectively. This can be tricky if users are expecting to find the FQDN name for logon purposes.
Caution
If users want to log on to computers in domains below any of the root domains (outside of their own forest), theyll have to know their UPN name, such as john@child-domainl.com.
I want to add a brief caveat regarding Windows 2003 and cross-forest trusts. The cross-forest trust goes a long way to tie together existing Windows 2003 forests. However, forest trusts dont tie together the GCs of disparate forests. Today, you simply have no way to magically tie the GCs together and this limitation is bad news for those of you who use Exchange 2000 or who plan to use the upcoming Exchange 2003. Because the GCs arent tied together, Exchange has no unified Global Account List. Essentially, you must still manage each forests Exchange independently.
Brought to you by NetIQ and Windows & .NET Magazine eBooks
62
n Note
Microsoft Identity Integration Server 2003 (formerly Metadirectory Services) is an up-andcoming way to put some magic back into managing Exchange across different forests. Microsoft Identity Integration Server 2003 looks promising.
Forests, then, are basically still separate, but cross-forest trusts between their roots make them federations that can share data and other resources.
63
Chapter 4:
Figure 4.1
An organizations cross-forest trusts
Cross Forest Trust #1 Cross Forest Trust #2
corp.com
bigu.edu
Forest corp.com
europe.corp.com
As I noted in Chapter 3, tying the forests together doesnt magically join the Microsoft Exchange 2000 Server or Exchange Server 2003 account lists. Rather, the cross-forest trust accomplishes one thing: It gives forest trust member domains easy access to each others domain resources. However, how secure is a cross-forest trust?
Brought to you by NetIQ and Windows & .NET Magazine eBooks
64
Authentication Firewall
To protect your resources from attacks that users in other trusted domains might launch, you can set up selective authentication through what Microsoft calls an authentication firewall. Setting up an authentication firewall lets you block certain SIDs from authenticating across the cross-forest trust. The users whose SIDs you block wont be able to authenticate on your network resources. In the example in Figure 4.1, you could block all Bigu.edu student SIDs from traversing the cross-forest trust, but still let the Bigu.edu faculty member SIDs do so. This approach would prevent students from taking a whack at Corp.com resources, but let the faculty members authenticate to Corp.com servers and access Corp.com resources. Selective authentication isnt turned on by default. That is, if you accept the defaults when you set up a cross-forest trust, youll need to enable selective authentication to establish the authentication firewall. When you use the New Trust Wizard to create your cross-forest trust, you choose the scope of authentication through the Outgoing Trust Authentication Level Local Forest dialog box options, which Figure 4.2 shows.
65
Figure 4.2
Outgoing Trust Authentication Level Local Forest option
The terminology in the dialog box that Figure 4.2 shows is a bit confusing. The dialog box text doesnt state that your choice here indicates whether youll be deploying an authentication firewall to block certain SIDs from other domains from getting inside your forest. If you select Forest-wide authentication, the default, you let all users in the cross-forest trust traverse all the forests. If you select Selective authentication, thereby creating an authentication firewall, you can then manually add access for specific users. If you accept the default (Forest-wide authentication) when you use the New Trust Wizard, which Figure 4.2 shows, a user who logs on to a domain in another forest that trusts your forest through a cross-forest trust can see the resources you have. Figure 4.3 shows that by using the Net View command, that user can see the shares on a specific machine.
Figure 4.3
The Forest-wide authentication option
66
If, after your forest trust is built, you decide to further lock down resources and enable an authentication firewall, you must then use Active Directory Domains and Trusts to change the mode. After you open Active Directory Domains and Trusts, right-click the domain. Select the Trusts tab, the name of the trust, and Properties. Then click the Authentication tab and select Selective authentication as Figure 4.4 shows.
Figure 4.4
Choosing Selective authentication through Active Directory Domains and Trusts
As soon as you choose selective authentication, you can see the immediate consequences for users who try to gain access through the trust, which Figure 4.5 shows. Access is denied.
Figure 4.5
User access after you choose the Selective authentication option
67
After your authentication firewall is in place, no one in domains outside your forest (i.e., in foreign domains and forests) can get access to any resources through the trust. To then open up the authentication firewall, you need to selectively poke holes in its security. That way, you can dictate precisely wholl be given access to the resources in your forest. You set up selective access through the Active Directory Users and Computers console. First, you must enable Advanced Features, which Figure 4.6 shows.
Figure 4.6
Advanced Features in the Active Directory Users and Computers console
Tip
Turn on the Advanced Features in Active Directory Users and Computers to manipulate who can pass through the authentication firewall.
After you enable Advanced Features, you can specify security for specific objects. Youll set the filtering directly upon the computer resource to which a foreign user needs access. In Figure 4.7, you can see that Ive enabled the Administrator account from a foreign domain DOMAINC to access resources on server VMSERVER2.
68
Figure 4.7
Selecting the cross-forest trust users who can access this server
After you assign the Allowed to Authenticate right to a selected user, that user can see the resources to which access was denied previously. As Figure 4.8 shows, the user can see resources across the forest trust.
69
Figure 4.8
A server available to specific users through the authentication firewall
SID Filtering
Another technique to prevent neer-do-wells from accessing your resources is SID filtering. SID filtering can help prevent potential attacks. Imagine this scenario: A domain administrator in another domain that your domain trusts wants to attack you. The attacker might be a domain administrator within the same forest. Although that possibility sounds frightening and might be unlikely, its theoretically possible. If you wonder how such an attack might occur, recall that Win2Ks Native Mode domains and Windows 2003 Functional Level domains support the SID history feature. The idea behind SID history is that a user account can be populated with more than one SID the SID of the user account plus other SIDs. The user account is usually populated with additional SIDs when someone migrates accounts with the SID history feature turned on. SID history is often useful for example, when you migrate user accounts from many domains and consolidate them into a few domains. SID history lets a user present an alternate set of credentials to gain access to network resources. Users might need to present their old credentials to access resources (e.g., Exchange or Microsoft SQL Server) in their former domains. An unscrupulous domain administrator could take an account in his or her domain and use the account to attack your domain. The administrator would accomplish the attack by hijacking the SIDs from the trusting domain (the NT domain) and putting them in the SID history attribute of his or her user object. The administrator then becomes the user with the hijacked SID thereby impersonating (i.e., spoofing) a user in your domain. If the administrator spoofs the account of a domain administrator in your domain, he or she could do a lot of damage.
70
Win2K Service Pack 2 (SP2) introduced SID filtering to protect against this potential attack. Enabling SID filtering wont stop an administrator bent on being destructive from trying this attack; he or she can still hijack the SID. But your domain will ignore any SIDHistory attributes, which renders such an attack ineffective. Windows 2003 has the same functionality enabled by default. To disable or re-enable SID filtering in Windows 2003, you use the Netdom command. For more information, read the Microsoft Knowledge Base article Forged SID Could Result in Elevated Privileges in Windows 2000, available at the following URL: http://support.microsoft.com/default.aspx?kbid=289243
n Note
SID filtering is sometimes complex. To learn more about it, in particular how to use SID filtering to prevent elevation-of-privilege attacks, go to http://www.microsoft.com/windows2000/techinfo/administration/security/sidfilter.asp
Tip
In addition to selective authentication and SID filtering, you can place another level of security upon a forest trust by using top-level name (TLN) restrictions. Windows 2003 uses domain name suffix routing to provide name resolution between forests connected by trust relationships. TLN restrictions let you enable, disable, or exclude suffixes to control cross-forest routing. For in-depth information about TLN restrictions, read the article Windows 2003 Forest Trusts at http://www.winnetmag.com/windowsserver2003/index.cfm?articleid=38436.
71
Figure 4.9
A domains four automatically generated subzones
Verifying that all four automatically generated subzones ( _msdcs, _sites, _tcp, and _udp) are present ensures that your domain has the records necessary to locate DCs, which clients must be able to do.
Figure 4.10
Run DNSLint from the command line with the /ad switch
72
When you run DNSLint with the /ad switch, you instruct DNSLint to produce an HTML report about the state of DNS affairs. This file will reveal any trouble spots in your DNS. Figure 4.11 shows a DNSLint report with a clean bill of health (the report would list any errors that DNSLint found).
Figure 4.11
DNSLint report
Conditional Forwarding
Before I discuss the new Windows 2003 conditional forwarding feature, let me briefly review standard forwarding. You enable Win2Ks standard forwarding on a server-by-server basis in the DNS applet. You simply right-click the computer name, select Properties, then select the Forwarders tab, as Figure 4.12 shows.
73
Figure 4.12
Win2Ks Forwarders tab
n Note
Other non-Microsoft implementations of DNS, such as Internet Software Consortiums (ISCs) BIND 9.0, support conditional forwarding.
The forwarders address lets one DNS server ask other (possibly nonrelated) servers for the answer to a DNS question. For example, lets imagine that a client in a domain wants to discover Microsoft.coms address to get to its Web servers. A local AD domain (e.g., Corp.com) probably wouldnt know the answer. However, by leveraging the power of forwarders, this server can ask other servers that might know the answer and retrieve the answer for the client. The standard forwarding approach works well for a limited set of circumstances. However, standard forwarding doesnt address some situations. For example, imagine the company structure that the diagram in Figure 4.13 represents: two separate domains that have little to do with each other.
74
Figure 4.13
An example companys DNS configuration
CORPNS1
RESEARCHDNS1
CORPSQL1
RESEARCHFILE1
corp.com
research.internal.com
However, lets suppose that from time to time, users in the separate domains must share resources. For example, the users in Corp.com occasionally need to connect to a computer named Researchfile1.research.internal.com. And the users at Research.internal.com occasionally need to connect to CorpSQL1.corp.com. The diagram in Figure 4.13 indicates that the DNS servers of Corp.com and Research.internal.com cant know about each other. If a client in Corp.com asked about locating the Research.internal.com computer in Research.internal.com, resolving that name wouldnt be easy. Figure 4.14 shows what happens when standard forwarding is set up.
Figure 4.14
DNS communications in the example company
Client says I need something over at reasearch.internal.com Internet Forward Forward
CORPNS1
RESEARCHDNS1
RESEARCHFILE1
corp.com
research.internal.com
75
With a standard forwarder, the Corp.com DNS server (CORPDNS1) probably wont get any response other than I cant find it from the servers to which it forwards. The reason is that the servers forward to a common point (the ISP or the Internet). In such a scenario, the two DNS servers cant see each other. Under Win2K, you could fix this problem but in a sloppy way. That is, you could have the Corp.com DNS server house a secondary-zone copy of Research.internal.com, and the Research.internal.com DNS server house a secondary-zone copy of Corp.com. However, this solution is messy because every time a new record is entered into DNS, a copy of that record must be sent to the other DNSs secondary-zone copy. Depending on how you have the zones configured, the updating can take extra administrative effort and more bandwidth. If you could tell the Corp.com DNS server where to look for Research.internal.com resources, you could solve this problem. Windows 2003s conditional forwarding lets you do exactly that, as Figure 4.15 shows.
Figure 4.15
DNS communications with conditional forwarding
CORPDNS1 Server says Check over here. Client says I need something over at reasearch.internal.com Forward
CORPNS1
Internet Forward
RESEARCHDNS1
corp.com
research.internal.com
Conditional forwarding eliminates the need to house unnecessary secondary-zone DNS files in servers that really shouldnt have them. Conditional forwarders let you keep copies of only the DNS zone files you want without any extras.
76
Figure 4.16
Windows 2003s DNS Forwarders tab
To set up conditional forwarding for a DNS domain, select the domain name, click New, and type the name of the domain and the IP address. Figure 4.16shows that this server will forward all requests asking about resources in the Research.internal.com domain to 192.168.2.11.
Stub Zones
Stub zones are another feature new to Windows 2003 DNS. Like conditional forwarding, stub zones solve a problem. (Also like conditional forwarding, stub zones arent new to other non-Microsoft DNS implementations, such as BIND 9.0.) Figure 4.17 presents a DNS configuration that shows the need for stub zones.
77
Figure 4.17
A second example companys DNS configuration
Internet
Forward
For wa rd
Forward
CORPNS1
INTERNALROOTDNS
RESEARCHDNS1
CORPSQL1
RESEARCHFILE1
corp.com
research.internal.com
As Figure 4.17 shows, you have two unrelated domains asking a central Root DNS for information. Suppose a client request comes in from Corp.com asking about resources in Research.internal.com. You can read the conversation between the client and the DNS servers in Figure 4.18s internal captions.
78
Figure 4.18
A successful lookup with manual delegations
Internet
INTERNALROOTDNS Server says I know where research.internal.com is let me point you toward a research.interal.com server that knows the answer and is authoritative for the zone.
For wa rd
RESEARCHDNS1
corp.com
research.internal.com
In this scenario, ClientA asks CorpDNS1.corp.com for the answer, which forwards to the InternalrootDNS server. The InternalrootDNS server then looks up in its table the list of servers that are authoritative for the Research.internal.com domain (i.e., servers that respond to Start of Authority SOA requests). However, what happens if Research.internal.com gets three more DNS servers each capable of responding to the SOA request? Such a scenario could evolve if Research.internal.com introduced three more DCs that run DNS in AD integrated mode. At this point, the InternalrootDNS server would know about the original ResearchDNS1 server only and not about the three newly introduced DNS servers. For the InternalrootDNS server to know about the new DNS servers in Research.internal.com, someone would have to manually update the InternalrootDNS server. That design isnt as responsive to change as you might need it to be. Stub zones introduce a new technique to help address this situation. Stub zones learn about new DNS servers introduced into other domains. Figure 4.19 shows the different communication that occurs if you use stub zones after the new DNS servers are introduced in Research.internal.com.
79
Figure 4.19
Stub zones and DNS changes
For wa rd
CORPDNS1 Server says Let me check my stub-zone for research.internal.com a definitive list of research.internal.com servers which are SOA for the zone.
Internet
Forward
Forward your request to a DNS server that is SOA for the zone.
RESEARCHDNS1 RESEARCHDNS2
corp.com
research.internal.com
Figure 4.20
Creating new stub zones
80
At this point, you can choose how widely you want to replicate the stub-zone information. You specify the zone for which you want to create a stub zone. You should then have a functioning stub zone.
Tip
If your stub zone doesnt activate right away, right-click Reload from Master to jump-start the stub zone.
81
Chapter 5:
82
Figure 5.1
Warnings about downlevel machines
The screen in Figure 5.1 indicates that you might have problems with older downlevel machines. The good news is that connections to every Windows 2003 share will be signed (i.e., authenticated) each time a client makes a connection. Indeed, each SMB packet carries a unique signature that the recipient validates. Therefore, malicious users cant pretend to be what theyre not. The bad news, however, is twofold. First, older downlevel clients will fail to connect because they cant speak the revised protocols language. Second, when clients can use SMB signing, it will slow connections down a bit, probably by 10 percent to 15 percent. The real problem, however, is that because older downlevel clients cant perform SMB signing, they cant log on. To log on to the network, each client must connect to a domain controllers (DCs) Netlogon share. Therefore, each client must be able to perform SMB signing to that Netlogon share to validate to the network. Clients that cant perform SMB signing are out of luck. Because Windows 98 can respond to SMB signing, youll only need to troubleshoot problems. Also, you can make changes to address SMB signing for Windows NT 4.0 and Windows 95 clients.
Win98 Clients
Win98 clients, by default, can respond to SMB signing requests. This capability means that you dont have to change or set up anything on your Win98 clients for them to participate in domains with Windows 2003 DCs. However, if you have one or two Win98 clients that cant log on to Windows 2003 DCs or connect to Windows 2003 shares, the clients ability to respond to SMB signing might be disabled.
83
To turn off a Win98 machines ability to respond to SMB signing, someone must manually add a registry value. Therefore, if you suspect a Win98 machine isnt responding to SMB signing requests, youll need to dive into the registry and look for the addition of either of two registry settings. Navigate to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNetsup subkey and look for an EnableSecuritySignature value of type REG_DWORD. The default is that this value is absent, which means SMB signing is enabled. To turn off SMB signing, you would create this value and set it to 0. Therefore, to re-enable SMB signing, set the value to 1 (Enable). The client will then respond to SMB signing. Also, look for an RequireSecuritySignature value of type REG_DWORD. The default is 0. Manually setting the value to 1 (Enable) requires that all SMB traffic be signed. Again, youre checking to see whether someone has created these values. If they exist, someone might well have specifically disabled a machines ability to respond to SMB signing.
NT 4.0 Clients
NT 4.0 Service Pack 3 (SP3) clients wont perform SMB signing by default. Youll have to enable SMB signing through the registry, as I discuss below. If youve already loaded your NT 4.0 clients with SP4 or later the clients can by default respond to SMB signing requests. Therefore, you wont need to set up or change anything on your NT 4.0 SP4 clients to have them participate in domains with Windows 2003 DCs. However, if you have one or two NT 4.0 clients with SP4 that cant log on to Windows 2003 DCs or connect to Windows 2003 shares, someone might have disabled the machines ability to respond to SMB signing in much the same way that I discussed relative to Win98. Enabling SMB signing on NT 4.0 SP3 machines and troubleshooting NT 4.0 SP4 or later machines that arent responding to SMB signing requests involves the same two registry values. For NT 4.0 SP3 machines, if the values dont exist, youll create them, then set both values to enable SMB signing. If the values do exist, set them to enable the feature. For NT 4.0 SP4 or later machines, you might create and set or re-set the values to re-enable the feature. Navigate to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer \Parameters subkey and look for an EnableSecuritySignature value of type REG_DWORD. The default is that the value is absent, which means that the client will respond to SMB signing. A value of 0 means the client wont respond to SMB signing. To enable or re-enable SMB signing, set the value to 1 (Enable) the client will then respond to SMB signing. Also, look for a RequireSecuritySignature value of type REG_DWORD. The default is 0. Manually setting the value to 1 (Enable) requires that all SMB traffic be signed.
Win95 Clients
As the Active Directory Installation Wizard screen in Figure 5.1 indicated, Win95 clients cant log on to Windows 2003 DCs. If Win95 clients attempt to log on, they get the message that Figure 5.2 shows.
84
Figure 5.2
Message returned if a Win95 client attempts to log on to a Windows 2003 network
To get your Win95 clients up to speed, youll need to load the Active Directory Client Extension (ADC; aka Directory Service Client DS Client). The DS Client apparently isnt on the Windows 2003 CD, but you can find it on any Win2K CD-ROM, in the \CLIENTS\Win9x directory. To run DSClient.exe, youll need to have Internet Explorer (IE) 4.0 or later loaded. Figure 5.3 shows the Directory Service Client Setup Wizard that you can use to load DS Client onto Win95.
Figure 5.3
Directory Service Client Setup Wizard
After you load the DS Client, Win95 machines wont need any additional registry settings to respond to SMB-signed traffic. In other words, just load the DS Client on your Win95 clients, and youre in like Flynn.
85
Figure 5.4
Disabling SMB signing
86
Tip
Even if you need to disable SMB signing as described above, you can still leave the sister policy, Microsoft network server: Digitally sign communications (if client agrees), enabled without penalty. This setting lets clients and servers that can use SMB signing do so.
87
Figure 5.5
Disabling secure channel signing
88
Tip
For more information and to see which specific applets inside the Windows 2003 administration tools explicitly use LDAP signing, go to Knowledge Base article Q325465, Windows 2000 Domain Controllers Require SP3 or Later When Using Windows Server 2003 Administration Tool, at the Microsoft Product Support Services (PSS) URL below: http://support.microsoft.com/?kbid=325465
89
3. At the domain level, refuse NTLM and LM authentication traffic; accept only Kerberos and NTLMv2 traffic.
Tip
You can set additional registry options at this time. For more information, read the Knowledge Base article Q147706, How to Disable LM Authentication on Windows NT, at the URL below. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb /articles/q147/7/06.asp&NoWebContent=1
Tip
You can set additional registry options at this time. For more information, read the Knowledge Base article Q239869, How to Enable NTLM 2 Authentication, at the URL below. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb /articles/q239/8/69.asp&nowebcontent=1
90
Figure 5.6
Defining authentication levels
Caution
If you disable NTLM and LM responses, you lock out clients that support only those authentication methods, including Macintosh clients and Services for UNIX (SFU) clients. The disabling could also be harmful to alternate authentication methods such as Win2K Routing and Remote Access Service (RRAS); Cisco, Shiva, or Ascend dial-in modems; and other products that use Windows authentication. Such products might rely on NTLM or LM authentication.
Additionally, although its not strictly necessary, its also good to expunge the recorded traces of LM passwords from your DCs. You can do so by selecting the Group Policy Network security: Do
Brought to you by NetIQ and Windows & .NET Magazine eBooks
91
not store LAN Manager hash value on next password change policy, which Figure 5.7 shows. With the Define this policy setting check box selected, you define and enable the policy.
Figure 5.7
Eliminating LM password hash values from DCs
After youve enabled this policy, the AD doesnt store the LM values when users passwords are changed. If a DC is compromised, no one will be able to use the values to gain access.
92
Figure 5.8
Overview of Win2K and Windows 2003 inheritance
Joes rights are explicitly placed upon this folder The rights are simply calculated via inheritance there need not be a specific ACL on the folder
Inherited
Joe User
Directory1
In Win2K, however, it was difficult to determine the effective permissions in a lower directory. Effective permissions come into play whenever a user or group might have explicit permissions and inherited permissions. How can you know what the effective permissions are? For example, consider Directory 2 in Figure 5.8. What are Joes effective permissions if he inherits rights from Directory1, but is also a member of Sales, which has its own permissions? You can see that permissions could quickly become confusing. To combat this confusion, Windows 2003 has added a new ACL editor that lets you easily discover and edit permissions. With Windows 2003, youll find an Effective Permissions tab on every directory and file. Simply right-click and select Properties for the directory or file whose effective permissions you want to examine, select the security tab, and click the Advanced button. You can then click the Effective Permissions tab, which Figure 5.9 shows.
ed rit he In
Directory2
Directory3
93
Figure 5.9
Windows 2003s new ACL editor
Just click Select, select a user or group, and you can see the precise access control placed upon that object for a specific user or group. The new ACL editor makes knowing who has permissions where a lot easier.
94
update both your AD and your iPlanet directory. iPlanet expects its input and output to be an RFC-compliant InetOrgPerson object not a Windows 2003/Win2K user object. You can check out the InetOrgPerson RFC at http://www.faqs.org/rfcs/rfc2798.html. InetOrgPerson objects are easy to create, potentially useful, and have few drawbacks. You can create an InetOrgPerson object as easily as you create a new user object. Figure 5.10 shows how you create an InetOrgPerson object in the Active Directory Users and Computers console.
Figure 5.10
Creating an InetOrgPerson object
You can create your User objects the standard way or choose to make them InetOrgPerson objects. You incur no penalty if you make your user objects InetOrgPerson objects rather than User objects. However, you should continue to use regular User objects unless you know you need InetOrgPerson objects to be 100 percent compatible with RFC-compliant metadirectory services.
Caution
You should be aware that InetOrgPerson objects arent compatible with Exchange 2000. That is, you cant enable an InetOrgPerson mailbox.
95
Figure 5.11
SMS 2003 (not yet released) option to extend the schema
Schema updates have been permanent until Windows 2003. That fact made many developers hesitate to write applications that leveraged the advantages of a schema update. Win2K application developers had a problem if they ever wanted to distribute an update to their application that changed their use of the schema. For example, if an application vendor had made a schema modification by adding an attribute called SHOE SIZE, which accepted a numeric value that modification might work well at the time. However, if the vendor then wanted to update the attribute to accept a character (e.g., S, M, L) rather than a numeric value, the vendor would have to introduce another schema modification attribute to accept the value types desired. This situation occurred because under the hood of the schema, each attribute is assigned a unique Object Identification Number (OID).
96
Win2K allows a schema attribute to be considered defunct. This ability to change the status works well; however, if you consider the example above, in which the vendor wants to change the SHOE SIZE attribute from accepting numbers to accepting characters, the vendor would have to get another OID and code the application to insert yet another permanent schema addition to add the new attribute. Windows 2003 also lets a schema attribute be considered defunct. However, you can reuse the underlying OID with a different name or value. Additionally, you can set attributes to be Defunct or Active at any time.
n Note
At no time is the attribute ever truly deleted. Rather, the attribute is classified as defunct so that you can reuse its OID.
Tip
According to rumor, future versions of AD will support tombstoning and purging defunct schema definitions. Tombstoning is similar to deleting except that when you tombstone, you inform other servers that youre removing the schema object definitions so that those servers can update their databases. Again, Windows 2003 doesnt yet support these features.
If you have an attribute you want to designate as defunct, youll need to follow several steps, as I outline below. First, youll need to register the schmmgmt.dll with regsv32.exe, as Figure 5.12 shows.
Figure 5.12
Registering the schmmgmt.dll
97
Caution
Any changes you make to the schema are at your own risk. Make changes to the schema only in a test lab. To modify the schema, you must enter a registry value in the registry upon the schema master. By default, AD servers dont let anyone edit the schema.
To modify the schema, navigate to the HKLM\SYSTEM\CurrentControlSet\Services\NTDS \Parameters subkey. Enter a value named Schema Update Allowed of type REG_DWORD and set it to 1, as Figure 5.13 shows.
Figure 5.13
Entering a registry value before you modify the schema
Next, add the Active Directory Schema snap-in to the Microsoft Management Console (MMC). Figure 5.14 shows how you select Active Directory Schema to add it as a standalone snap-in.
98
Figure 5.14
Adding the Active Directory Schema snap-in
By default, you cant see defunct objects. If you want to see them, right-click the Active Directory Schema and select View, Defunct Objects, as Figure 5.15 shows.
99
Figure 5.15
The view inside the schema
To make an object defunct, locate the attribute, examine its properties, and clear the default Attribute is active check box, as Figure 5.16 shows.
Figure 5.16
Clearing the Attribute is active check box
100
At this point, you can create a new attribute with the same OID but a different name and value type. Windows 2003s improved schema modification functions make it easier for application vendors to write applications that modify the schema to get the most from AD.
101
Chapter 6:
Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
Performing backups is a system administrators single most important task. However, because having backups sometimes isnt enough, you need skills that go beyond the ability to back up and restore files. In this chapter, I describe some common scenarios in which things go wrong from a server going belly up to objects in Active Directory (AD) being inadvertently deleted. Windows Server 2003 (Windows 2003) gives you many ways to get your system back to business as usual. Ill show you how to use the techniques and features it offers before you have to swing into action to save the day (and your job). I discuss using the Recovery Console (RC), deploying the new Emergency Management Services (EMS) feature, performing an AD backup and restore, enabling Automated System Recovery (ASR), and replicating DCs from media with the new Install from Media (IFM) feature.
Using the RC
When Microsoft released Windows 2000, one of my new favorite features was the Recovery Console (RC). The RC could help you address a persistent problem that many of you will remember. Before the advent of the RC, if a server went belly-up and you needed to perform surgery on it, doing so was difficult if the underlying file system was NTFS. Booting from a floppy disk wouldnt let you see or modify NTFS volumes. Given the frustration of working with NTFS in this urgent situation, thousands of Windows NT 4.0 server administrators kept their OS loaded on FAT partitions just for the rare emergency. This approach let the administrators boot to a DOS prompt to edit, rename, or modify damaged files. Windows 2003 and Win2K have the RC, a tool whose job is to help when the chips are down. The RC console lets you load a very small subset of the OS along with a powerful subset of OS functions. Previously, for example, if a service went down while NT 4.0 was running and you needed to reboot the server, you might be in trouble if the Last Known Good Configuration recovery option failed to bring your system back. With the RC, you can start and stop services, format disks, and copy and replace files already on the disk. Basically, the RC contains much of what youll need should things on a particular Windows 2003 or Win2K server go awry.
102
You can use the RC two ways: preloaded or loaded on the fly. Preloading the RC requires only about 7MB of disk and adds an additional boot option to the boot.ini file. To preload the RC, insert the Windows 2003 CD-ROM and open a command prompt. From the CD-ROM, run winnt32 /cmdcons. The RC will contact Microsoft for any last-minute updates, then perform the installation, as Figure 6.1 shows.
Figure 6.1
Installing the RC
After the files are copied, you can see the fruits of your labor. Simply reboot the server and look for the new RC line added to the boot.ini file, which Figure 6.2 shows.
Figure 6.2
RC line item in the boot.ini file
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
103
After you enable the RC, youre asked to log on. If this server is a member server or standalone workstation, you log on with the local Administrator password. If this server is a domain controller (DC), you log on with the Directory Services Restore Mode password that you input when you created this DC. (I discuss the Directory Services Restore Mode password in the upcoming AD Nonauthoritative Restore section.) If you try to log on with the domain Administrator account password, you wont be permitted to use the RC, as Figure 6.3 shows.
Figure 6.3
Attempted logon to a DC with RC installed using the domain Administrator password
After you log on to the RC successfully, you have an array of tools at your disposal, as Figure 6.4 shows. I encourage you to familiarize yourself with the tools in the RC, so youll be ready to use them when you encounter a problem.
104
Figure 6.4
The RC tools
Among the RCs abundant tools, some of my favorites are Listsvc Helps determine which services are running and the current state of each service Enable and Disable Changes how services start up (e.g., you can disable services that arent working as they should) Bootcfg Aids you in rebuilding broken boot.ini files by helping you locate instances of Windows 2003 on the computer Expand Lets you take a compressed file for example, myfile.sy_ and expand it to myfile.sys, which you can then place almost anywhere on the hard drive
Tip
Its still fairly difficult to do registry repairs inside the RC. If you need tools to repair the registry while the server is damaged, I encourage you to check out Winternals Softwares tool ERD Commander at http://www.winternals.com/products/repairandrecovery/erdcommander2002.asp
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
105
Deploying EMS
When a server is unresponsive, Windows 2003s EMS can display whats happening over the computers serial port. You can then use a second device to manage the broken server. Before I discuss EMS further, however, Ill review the usual options for monitoring server operations and troubleshooting an unresponsive server. When a server is running and you want to observe whats going on, you have several options. If the machine is running well, you can peek in through the built-in administrative Terminal Services that I described in Chapter 1 (Windows 2003 by default loads the necessary files for the equivalent of Windows 2000 Terminal Services), use Telnet to contact the machine, or tap a host of other tools. These approaches to monitoring your server are often called in-band management that is, you use the Ethernet cable to cross the network, look into server operations, and possibly work on the server. Many datacenters I see have clunky cabinets with racks of monitors, keyboards, and mice. Other datacenters rack-mount their servers and use a keyboard/video/mouse (KVM) switchbox to switch between the servers in the rack. Still others have KVM switchboxes that run over TCP/IP, the idea being that from anywhere in the enterprise you can monitor whats happening on the server console. Some of these setups are complex and expensive, but the real question is whether they can help if the server reaches the blue screen stage or completely hangs when youre at another site or in another country.
n Note
To get the kind of support that Windows 2003s headless environment provides, you would usually need to install a third-party card, such as Compaqs Remote Insight Lights-Out Edition card.
If your server becomes unresponsive over the network and you cant use Terminal Services or Telnet to manage it, you now have Windows 2003s EMS. The principle underlying EMS is simple: You install a special piece of software on Windows 2003 that displays whats happening over the computers serial port. Then, through a second device, you can manage a broken Windows 2003 server. Any of several pieces of hardware can serve as the second device, as Figure 6.5 shows. You might attach a handy Windows Tablet PC running Hilgraeves HyperTerminal or another portable serial device.
106
You might attach a password-protected security modem to the servers serial port and dial in to see whats up. You might attach all the servers to a device called a serial port concentrator. Then, you can use character-based Telnet to get direct access to a specific server.
Figure 6.5
Connecting to a broken servers serial port
l-in Dia
Security Modem
Po rt
Phone Company
Typically, you would use one device to connect to the servers serial port
Laptop Computer
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
107
Tip
Cyclades (http://www.cyclades.com) is one manufacturer of serial port concentrators. You can find the companys statement of support for EMS at http://www.cyclades.com/pressroom/?id=1051617600
No matter which serial connection you choose, the concept is the same: The device isnt connected to the same network as the broken server. That way, you can reach the server through the serial port.
Caution
Your commands might differ depending on which serial and boot options work for your hardware.
Youll automatically add an entry to your boot.ini file that, after a reboot, enables EMS. If you have a device connected to the serial port through a null-modem connection, youll see the output of EMS as soon as the system reboots. Figure 6.6 shows the results of a successful run of the bootcfg command as well as the output from the newly changed boot.ini file.
108
Figure 6.6
Enabling EMS
Tip
Enabling EMS for the next boot is easy; just be sure to use the same speed for the computer and the receiving device.
When you reboot the server, you might notice almost imperceptible differences on the boot-up screen but little else thats different. In fact, if the server doesnt encounter problems, it continues to boot as usual. However, if you have a device connected to the serial port of the server, youll see the SAC, which Figure 6.7 shows. In this example, I have a laptop running HyperTerminal connected through a null-modem connection.
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
109
Figure 6.7
SAC initialization
After the SAC is loaded, you can choose to restart the unresponsive server shut down the server open one or more command prompts set a different IP address for the server, which is useful should the server need to be moved to a different segment manually crash the system, which is useful if you want to generate Crashdump data for Microsoft Product Support Services (PSS Microsoft might request Crashdump information to troubleshoot particularly sticky problems)
Figure 6.8 displays SAC commands. Reading through the list gives you a sense of the actions you can take.
110
Figure 6.8
SAC commands
Caution
Usually, youll want to avoid Crashdump because it will, as its name implies, crash the system and create a dump.
Whats amazing about the SAC is that if your server encounters a blue screen (or if you force one through the SACs Crashdump command), youll see the blue screen output on your serial-port connected terminal session, as Figure 6.9 shows.
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
111
Figure 6.9
Windows 2003 server crash SAC output
Understanding !SAC
Telnet and Terminal Services work well when the system is running in which case, you can use in-band management. The SAC makes the difference when things arent going well (e.g., misconfigured IP addresses, service problems, blue screens) over the usual network channel. However, if a machine is completely unresponsive (i.e., the machine might or might not have displayed the blue screen but is 100 percent hung), you still have !SAC. !SAC (usually pronounced Bang SAC) is a special Windows 2003 mode. !SAC provides a limited subset of what you can do through OOB. Basically, you can restart the computer and redirect onscreen blue screen messages. You cant choose !SAC mode to perform these functions, however; the underlying system chooses it for you. For more information about !SAC, go to the following Microsoft URL: http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003 /proddocs/entserver/ems_!sac_commands.asp
112
Figure 6.10
DomainA.com AD directory
John
Sally
Sales
Dirk
Jeff
James
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
113
AD can be a pretty treacherous place, with many administrators performing lots of work at all times. What happens if an administrator inadvertently deletes Jeffs account? Or worse, an administrator deletes East Coast Sales and everyone in it? Or worse yet, an administrator deletes Sales, all the OUs below it, and everyone in them? Although a little panic is understandable, if you stay calm, you can get your AD accounts back. Doing so, however, takes some pre-planning and a little good fortune.
AD Backup Essentials
Backing up AD is relatively straightforward. Simply perform a system state backup of one DC. A servers system state is its nucleus. If you back up a DCs system state, you have the contents of AD.
Caution
If you must perform a restore of deleted objects, you need to know that the machine on which you do the backups is the machine on which you do the restores. Also, to perform a restore, as youll see in the following text, you need to reboot and take the DC offline. Therefore, if you plan to back up one or two DCs in your environment, make sure that you can reboot those DCs during the day without penalty.
Figure 6.11
Backing up the system state
114
You should back up to a location that youll be able to access when this machine is rebooted either a tape drive or a file. Remember that you cant take a system state backup from one DC and restore that system state to another DC.
Creating an AD Map
Next, you need to make a map of your AD. If someone deletes an object, youll need to know its distinguished name (DN) to restore it. As youll recall, a DN is a list of items separated by commas that uniquely identifies an object by using the relative DN for the object and the names of the container objects and domains that contain the object. The DN is a text representation of an entry in the directory server database. For example, the object selected in Figure 6.12 would have the DN
cn=James,ou=East Coast Sales,ou=Sales,dc=domaina,dc=com
Figure 6.12
Mapping each object shown by DN
Without a map of your AD that tells you explicitly where each object is listed by DN, youll have a difficult time restoring objects, as the following text discusses.
Tip
In Chapter 7: Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools, Ill show you how to use the Dsquery command to display a list of all the users DNs at once.
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
115
AD Nonauthoritative Restore
After youve performed your backup, if a problem occurs (e.g., someone deletes James account or East Coast Sales), you can start to recover what was deleted by performing a nonauthoritative restore. To begin a nonauthoritative restore, you need to reboot the DC on which you created the system state backup. When you do so, press F8 to get to the special boot options that Figure 6.13 shows.
Figure 6.13
Starting an AD restore
Choose the Directory Services Restore Mode (Windows domain controllers only) option. This choice enables a special mode that lets you start your restore process. When the logon prompt appears, you log on with the Directory Services Restore Mode password. You created and entered this password when you ran Dcpromo and made this server a DC.
Tip
What if you cant remember your Directory Services Restore Mode password? Youll need to reboot, log on as domain Administrator, and type
Ntdsutil
After you log on, run the backup utility again. Perform a full system state restore to the original location, as Figure 6.14 shows.
116
Figure 6.14
Restoring AD on top of itself
After you perform the full system state restore, the records youve preserved in the system state backup will be returned to AD and restored. However, your job isnt complete until you do an authoritative restore.
AD Authoritative Restore
After the nonauthoritative restore is complete, youll be asked to reboot the machine. Do not reboot! Instead, close NT Backup and proceed.
Caution
When youre asked to reboot the machine following a nonauthoritative restore, do not reboot! If you reboot, other DCs can override information about the objects youre restoring.
If you reboot, the AD objects wouldnt be restored. This situation occurs because when an AD object is deleted, its recorded as deleted and tombstoned. That information goes to other DCs, which also record that the object is slated for deletion and tombstoned. As a result, even though this DC has restored the object to its own local copy of the AD database, other DCs will override the restoration with their signal indicating that the object is tombstoned and slated for deletion.
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
117
You need a way to communicate to the other DCs that for the specific objects you want restored those DCs should accept a signal to override the communication that those objects are slated for deletion. That signal is the authoritative restore.
n Note
Because AD replication would require a chapter in itself, Ill keep the information brief here. However, underneath the hood, the authoritative restore raises the update sequence number (USN) to a very high number ensuring that other DCs with lower USNs cant overwrite the objects youre restoring. For a comprehensive article about USNs with AD backup and restore, see my article at http://www.mcpmag.com/features/article.asp?editorialsid=166 and the following Windows and .Net Magazine article at http://www.winnetmag.com/articles/index.cfm?articleid=15558
Assuming the inadvertently deleted portion of AD was the East Coast Sales OU and everything in it, following authoritative restore, type
restore subtree "ou=East Coast Sales,ou=sales,dc=domaina,dc=com"
Figure 6.15
Performing an authoritative restore
118
An authoritative restore ensures that other DCs wont overwrite the objects youre restoring after this DC is rebooted. When you reboot this DC after the authoritative restore is complete, the deleted objects get the signal to ride above the tombstoned objects. That way, the objects are restored to this DC and replicated to all other DCs.
Enabling ASR
When a major server failure hits, you want to get the server back up and running quickly. Windows 2003s (and Windows XPs) Automated System Recovery (ASR) feature lets you recover a system that wont start. Before ASR, you had to load the entire OS from CD-ROM, then do a complete restore on top of the fresh OS installation. ASR lets you take a snapshot of the system volume and put it on tape or other locally attached media. Additionally, some information about the backup is preserved to floppy disk. Figure 6.16 shows the Automated System Recovery Preparation Wizard, which lets you enable ASR from within Windows 2003s backup utility.
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
119
Figure 6.16
The Automated System Recovery Preparation Wizard
n Note
ASR lets you take a snapshot of the system volume for later restore.
Tip
The Automated System Recovery Preparation Wizard backs up the partition the OS uses, but it doesnt back up other partitions, such as program and data partitions. Those partitions must be backed up using standard routines.
When a problem hits, you can simply pop in the most recent set of ASR tapes along with the floppy disk created for that backup and boot with the Windows 2003 CD-ROM, as Figure 6.17 indicates. While the CD-ROM is booting, press F2 for ASR Recovery, and youre nearly done.
120
Figure 6.17
Starting ASR after a disaster
The ASR process will read the floppy disk to determine your disk configuration at the time you created the backup. After the OS is loaded, the process automatically restores the rest of the system drive. ASR can really save time but the catch is that the backup data must reside in a place that ASR can reach. ASR can reach only locally attached backup data, such as data stored on tape or disk. (You cant access the backup over the network, and you cant have it waiting for you on specialty devices such as FireWire IEEE 1394 or USB 2.0 drives.) For more information about ASR, go to http://www.windows2000faq.com/articles/index.cfm?articleid=37650 http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003 /proddocs/entserver/asr_overview.asp
Chapter 6 Backup, Restore, and Recovery for Windows Server 2003 and Active Directory
121
Figure 6.18
Deploying IFM to copy domain information
The newborn DC gets about 99 percent of the AD information from the removable media it has locally. You can get the remaining 1 percent of information over the network. Now, deploying DCs across even pathetically slow links is virtually a guaranteed success.
n Note
You start with a system state you already have, put it on removable media, and ship it with (or to) the DC-to-be. Then, run Dcpromo /adv. When you do, the Active Directory Installation Wizard offers a special option for promoting a new DC. By using IFM, you can reduce network traffic and get that DC loaded.
122
AD backup and restore Although this function is familiar, its good to refresh your knowledge. Also, I hope that the Tombstone Reanimate API brings forth some goodies from third-party tool makers. ASR ASR is new in XP and Windows 2003. The tool is handy, but works only if the disk or tape is locally attached. IFM IFM is a highly useful tool, especially for large AD shops with small pipes and lots of DCs. Windows 2003 becomes more interesting the closer you look. In Chapter 7, youll encounter Windows 2003s new built-in tools, support tools, and resource kit tools.
123
Chapter 7:
Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
GUI is good. Command-line is better. Whats in the box is tasty. But add-ons are sweeter. Poetry aside, those lines indicate what this chapter offers. Ill review how to work with some key Windows Server 2003 (Windows 2003) tools that offer great benefits if you know how to use them. I discuss selected command-line tools, support tools, and resource kit tools. From these tool sources, youll be able to build a custom toolkit tailored to your environment.
124
Figure 7.1
The Help and Support Center list of command-line tools
Tip
Typically, to reach the list of command-line utilities, I type
command line reference
in the search window. You can also immediately locate the Help and Support Center list of command-line utilities by opening a command prompt and typing
hh ntcmds.chm
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
125
Windows 2003 offers a bevy of command-line tools almost too many. To keep the commandline tool section of the chapter manageable, Ill limit my discussion to those tools that help you manage the event log and Active Directory (AD).
n Note
Dont let the myriad options that each tool offers befuddle you. Almost every tool has a /? option that lists the tools options. Alternatively, you can click the name of a tool listed in Figure 7.1 to display that tools command-line options.
Eventcreate
Eventcreate lets an administrator create a custom event in a specified event log. If youre a batch file junky, and you want to have the status of your jobs reported to the event log, youll want to use the Eventcreate tool. The Eventcreate syntax from the Help file reads eventcreate [/s Computer [/u Domain\User [/p Password]] {[/l {APPLICATION | SYSTEM}] | [/so SrcName]} /t {ERROR | WARNING | INFORMATION} /id EventID /d Description
n Note
According to Microsofts formatting legend, italics indicate information the user must supply; boldface indicates something the user must type exactly as shown; an ellipsis indicates a parameter that can be repeated in a command; brackets indicate optional items; braces indicate choices from which the user must choose one only; and Courier font indicates code or program output.
Figure 7.2 shows a sample batch file script that, if a flag file is found, reports the finding to the event log.
126
Figure 7.2
Deploying Eventcreate
When the script reports the finding to the event log, the result appears in the format that Figure 7.3 shows.
Figure 7.3
Result of an Eventcreate finding
The Eventcreate tool is handy, but it becomes even handier when you use it with utilities such as Eventquery and EventCombMT. (I discuss EventCombMT in the Windows 2003 resource kit utilities section toward the end of the chapter.)
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
127
Eventquery
Eventquerys purpose is to query event logs on Windows 2003 servers for information already in the logs including information you set the event logs to capture through Eventcreate. However, if you try to use the Eventquery tool without preparation, you get the message that Figure 7.4 shows. You first need to change the default command processor.
Figure 7.4
Changing the default command processor
which changes the command processor from the interactive GUI script processor to CScript. The Eventquery syntax from the Help file reads eventquery[.vbs] [/s Computer [/u Domain\User [/p Password]]] [/fi FilterName] [/fo {TABLE | LIST | CSV}] [/r EventRange [/nh] [/v] [/l [APPLICATION] [SYSTEM] [SECURITY] ["DNS server"] [UserDefinedLog] [DirectoryLogName] [*] ] If I want to query all events that have event ID 106 in the Application log of the server Im currently on, for example, I can type
eventquery.vbs /FI ID eq 106 /l Application
and get the results that Figure 7.5 shows. Note that the response is available because I entered event ID 106 onto this server with Eventcreate.
128
Figure 7.5
Querying a server with Eventquery
Eventtriggers
The Eventtriggers tool ties your event-management efforts together. That is, when an event you want to monitor pops into the event log, you can have Eventtriggers notify you or set a command to execute automatically. Its like having someone dedicated to monitoring the server logs and acting upon them if necessary. The Eventtriggers tool includes three commands: Eventtriggers create Eventtriggers query Eventtriggers delete For monitoring and notification to occur, you must first create the Eventtrigger, which will then monitor and act upon the occurrence of logged events that meet the criteria you set up. After you create some triggers, you can see them at work by using the Eventtriggers query command. You can delete Eventtriggers with the Eventtriggers delete command. As an example, Ill create an Eventtrigger for event ID 106. That is, if event ID 106 appears in the Application log, Eventtriggers fires off a batch file in response. In this example, I use the syntax
eventtriggers /create /tr FilePresent /l application /eid 106 /tk \\vmserver2\share\gobatch.cmd
which Figure 7.6 shows. This syntax creates a trigger named FilePresent and checks the Application log for event ID 106. If Eventtriggers finds event ID 106, it automatically triggers the command
gobatch.cmd
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
129
Figure 7.6
Deploying Eventtriggers to trigger actions based on events
n Note
You also have available the command Evntcmd, which converts events to SNMP traps, or notifications. Evntcmd might be useful if you have many SNMP-related devices and a management station thats configured to address SNMP traps. For more information about SNMP traps, refer to my eBook The Definitive Guide to Enterprise Manageability, which NetIQ also sponsors. Youll find the eBook at http://www.netiq.com/offers/ebook/default.asp and the SNMP information in Chapter 5.
To test my Eventtrigger command syntax, I used the same command that I used when I experimented with Eventcreate. That is, I created an event with event ID 106, then watched my trigger react and execute the batch file. (The batch file that Eventtrigger triggers might send an email, display a pop-up, or perform any number of actions.)
130
Although I lack the space to explore all the built-in tools and their commands in detail, Ill show you the essential ropes with two of the tools and you can take it from there. Ill discuss the Dsadd tools Dsadd user command and the Dsquery tools Dsquery user command.
Dsadd
Dsadd gives you a simple way to add several kinds of entities to AD quickly. The six Dsadd commands are Dsadd computer Dsadd contact Dsadd group Dsadd OU Dsadd user Dsadd quota Dsadd User The Dsadd user syntax from the Help file looks a little daunting. It reads dsadd user UserDN [-samid SAMName] [-upn UPN] [-fn FirstName] [-mi Initial] [-ln LastName] [-display DisplayName] [-empid EmployeeID] [-pwd {Password | *}] [-desc Description] [-memberof Group;...] [-office Office] [-tel PhoneNumber] [-email Email] [-hometel HomePhoneNumber] [-pager PagerNumber] [-mobile CellPhoneNumber] [-fax FaxNumber] [-iptel IPPhoneNumber] [-webpg WebPage] [-title Title] [-dept Department] [-company Company] [-mgr Manager] [-hmdir HomeDirectory] [-hmdrv DriveLetter:] [-profile ProfilePath] [-loscr ScriptPath] [-mustchpwd {yes | no}] [-canchpwd {yes | no}] [-reversiblepwd {yes | no}] [-pwdneverexpires {yes | no}] [-acctexpires NumberOfDays] [-disabled {yes | no}] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q] [{-uc | -uco | -uci}] Dont let the extreme set of options deter you from deploying this command. Youll find that Dsadd goes well beyond the capabilities of the old Net user command. With Dsadd, you can set virtually every option typically found in a user object. For example, you can create a new user object for Jane Martin in DomainAs marketing organizational unit (OU). In this example, her first name is Jane, her middle initial is A, and her last name is Martin. She is a member of the Backup Operators group, and her telephone number is 302-555-1212. You would use the syntax
Dsadd user cn=Jane_Martin,ou=marketing,dc=domaina,dc=com -fn Jane mi A -ln Martin display Jane Martin memberof cn=Backup Operators,cn=builtin,dc=domaina,dc=com tel 302-555-1212
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
131
Figure 7.7
Deploying Dsadd user to add user accounts anywhere in AD
j
Dsquery
Tip
Dsadd is particular about its input requirements, especially when you specify the distinguished name (DN) of the account you want to create and the group or groups to which you want to add that user account. When you use Dsadd, youll need to be precise.
The powerful Dsquery tool lets you search all of AD for specific object types. The Dsquery tools commands are Dsquery computer Dsquery contact Dsquery group Dsquery OU Dsquery site Dsquery server Dsquery user Dsquery quota Dsquery partition You can also use Dsquery * which provides a global search through your entire AD. Again, because I dont have unlimited space for examples, Ill restrict my example to one Dsquery command Dsquery user. Dsquery User Youll probably use the Dsquery user command often. This useful command helps you locate user objects in the directory. The syntax from the Help file reads
132
dsquery user [{StartNode | forestroot | domainroot}] [-o {dn | rdn | upn | samid}] [-scope {subtree | onelevel | base}] [-name Name] [-desc Description] [-upn UPN] [-samid SAMName] [-inactive NumberOfWeeks] [-stalepwd NumberOfDays] [-disabled] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q] [-r] [-gc] [-limit NumberOfObjects] [{-uc | -uco | -uci}] The best news is that you can keep this syntax very short to get a quick result back. For example, if you want to check the location of all the users in your domain named Jane, you would simply type
dsquery user name Jane*
Figure 7.8 shows the results of that query: all the DNs in your domain that include Jane in the name. This kind of DN-related query is particularly handy for backup and recovery purposes should you need to perform an authoritative restore, which I discussed in the Chapter 6.
Figure 7.8
Deploying Dsquery user to locate users in AD
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
133
Figure 7.9
Locate SUPTOOLS.MSI
Tip
Note that this tools folder also holds automated deployment tools in Deploy.cab which you can explore if you feel adventurous.
After youve installed Suptools.msi, youll see the results in the Start menu as Windows Support Tools. You wont find the specific tools listed. Youll need to launch the Suptools.msi Help file, which then displays the list of tools, as Figure 7.10 shows.
134
Figure 7.10
List of Support Tools in the Help and Support Center
n Note
You can get to the screen that Figure 7.10 shows either by starting with Suptools.msi in the Start menu (then launching Suptools.msis Help file) or by going to the Help and Support Center.
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
135
AD Tools
Many of the support tools exist to help you manage AD. You can get a list of AD-related tools by clicking the Active Directory Management Tools subset, which you can see in Figure 7.10. The tools listed in the Active Directory Management Tools subset tools are deeply capable; exploring one or two tools in any depth could fill a chapter. Some of the tools that I consider AD management tools dont appear in this tool subset but in other categories. Dcdiag, the first tool I discuss, is a case in point.
Tip
Youll want to examine the Alphabetical List of Tools highlighted in Figure 7.10 to get a feel for all the tools available.
With your custom toolkit in mind, Ill discuss a few of the most important tools for day-to-day AD management. After I discuss Dcdiag, Ill discuss its Active Directory Management Tools subset diagnostic counterpart: Active Directory Replication Monitor (Replmon).
Dcdiag
Dcdiag is the Swiss Army knife of AD testing. You carry out most tests by using the syntax
dcdiag /test: <test>
where <test> can be any one of a huge number of options. For example, you can test whether a domain controller (DC) is healthy (by using the Advertising switch), whether the topology between DCs is kosher (by using the Topology and Replication switches), which DCs hold which Flexible Single-Master Operation (FSMO, aka Operations Master) roles (by using the FSMOCheck switch), and much more. Dcdiag with Replication Sometimes, replication between DCs suddenly stops for no apparent reason. You can often find the cause by checking DNS, but discovering the extent of the problem can be difficult. If you use the syntax
dcdiag /test:Replication
you get results that resemble those shown in Figure 7.11. Results that indicate individual replication problems can help you gauge the extent of the overall problem (in this case, no replication problems exist).
136
Figure 7.11
Deploying Dcdiag
If you suspect replication problems, you can also carry out the test with the /v switch. This switch enables verbose output, which can help you see precisely where problems lie. Dcdiag with Dcpromo When you bring up new DCs at other sites, you might face a familiar challenge: problems that might be either on the server that you want to promote or in the domain itself. All you know is that something is preventing the promotion of the server to DC. Dcdiag with the /test:DCPROMO switch can help. If you want to create a new replica DC, you use the syntax dcdiag /test:DCPROMO /DNSDomain:<domainname> /replicadc from the machine you want to promote to DC. If your DC-to-be passes all tests to be promoted, youll see the results that Figure 7.12 shows. You can then proceed knowing that the promotion is likely to work.
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
137
Figure 7.12
Deploying Dcdiag with the /test:DCPROMO switch
Replmon
If Dcdiag is the Swiss Army knife of command-line AD diagnostics, then Replmon fills a similar role but with a GUI. You begin deploying Replmon by loading all the DCs in the domain. You do so by clicking Edit, clicking Add Monitored Server, and continuing through the Add Monitored Server Wizard. After youve loaded all DCs, youre prepared to run some tests. For example, you can right-click a DC and run a test that generates a report, such as Check Replication Topology, which Figure 7.13 shows.
Figure 7.13
Deploying Replmon for AD diagnostics
138
You can use Replmon to perform a host of validation tests. One powerful function is Synchronize Each Directory Partition with All Servers, which you see listed in Figure 7.13. When you select and initiate this function, the Synchronizing Naming Context with Replication Partners dialog box that you see in Figure 7.14 will appear and offer three synchronization options.
Figure 7.14
The Synchronize Naming Context with Replication Partners dialog box
AD replication is usually pull only that is, each DC in a site will pull the latest data from its partners. You can change the replication mode by selecting the Push mode option that Figure 7.14 shows. Additionally, instead of waiting for replication to occur more widely, you can force replication over site boundaries by selecting the Cross site boundaries option that Figure 7.14 shows.
n Note
Replmon lets you perform a one-time push replication through the Push mode option that Figure 7.14 shows.
Caution
Ive never encountered a need to use the first option that Figure 7.14 shows, Disables transitive replication. I typically want replication to occur everywhere, so I dont select that option.
Youll want to familiarize yourself with Replmon, which is one of the most useful tools for troubleshooting AD problems. Be aware, however, that the Help function in Replmon is nonexistent. You might want to search on the tool name to access some of the many articles about deploying Replmon.
Brought to you by NetIQ and Windows & .NET Magazine eBooks
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
139
Tip
Also available as a separate download is the Microsoft Internet Information Services (IIS) 6.0 Resource Kit. For an overview of the resource kit and to download it, go to http://www.microsoft.com/downloads/details.aspx?familyid=80a1b6e6-829e-49b7-8c02333d9c148e69&displaylang=en
Some of the utilities in the resource kit are command-line tools, others are GUI tools, and still others fall into a different category. Ill explore tools from the third category first.
Acctinfo.dll
Acctinfo.dll isnt a program you can simply double-click and run. Rather, it attaches itself to the Active Directory Users and Computers console to extend the consoles capabilities. Acctinfo.dll displays all sorts of interesting account information about the most recent user logon. Previously, you would have needed scripting to get this information. However, to get to these account information properties, youll first need to complete the following steps: 1. Copy Acctinfo.dll to \%systemroot%\system32 2. Then, use the syntax
regsvr32 acctinfo.dll
n Note
Youll need to repeat both steps to add Acctinfo.dll to each individual system.
140
Tip
If you want to remove Acctinfo.dll, simply use the syntax
regsvr32 /u acctinfo.dll
After you register Acctinfo.dll, youll be able to see the newly available information on the Additional Account Info tab in the dialog box that Figure 7.15 shows.
Figure 7.15
The Additional Account Info tab
Without needing to use scripting, you can access lots of information (e.g., when the users password next expires, when the user most recently logged on, what the user accounts SID is). One interesting and useful feature is the Set PW On Site DC button that you can see in Figure 7.15. When you click the Set PW On Site DC button, the dialog box that Figure 7.16 shows will appear. You can then change the users password directly on the DC that the user uses for validation.
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
141
Figure 7.16
The Change Password On a DC In the Users Site dialog box
If you use the Set PW On Site DC feature to change passwords, users will be able to access their newly changed passwords right away. They wont need to wait for replication from the PDC-Emulator to this DC.
Rcontrolad
Rcontrolad is a tool that lets you control another useful little tool. When you double-click Rcontrolad, it expands into several files. First, you run the rcontrol_setup.exe program as a Domain Administrator. Second, you copy the included rcontrol.exe to the location from which you deploy your Active Directory Users and Computers console. Youll then be able to right-click any XP or Windows 2003 computer and select Remote Control, as Figure 7.17 shows.
Figure 7.17
Selecting Remote Control after deploying Rcontrolad
142
After Rcontrolad is installed, you can control target computers remotely. When you do, youll be connected through Terminal Services to the remote computer, as Figure 7.18 shows.
Figure 7.18
Connecting to the remote computer
Rcontrolad is a handy alternative to manually adding each machine to the Control Panel Remote Desktop applet.
Custreasonedit
The Custreasonedit tool lets you extend the Server Event Tracking features list of possible reasons for shutting down and restarting a server. To use Custreasonedit to add to the list of reasons, you must first introduce sample reasons to this computer. You do so by right-clicking the samplereasons.reg file in Windows Explorer and selecting Merge, as Figure 7.19 shows.
Figure 7.19
Expanding the samplereason.reg file
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
143
Figure 7.20
Introducing custom reasons for shutdown
After youve run custreasonedit /i, you can see the sample reasons and add your own. Simply type in the Title and Description, pick the Reason Category, select which check boxes you want to have shown by default, and click Add. After youve tailored the list, click Export to export to a registry file. Then, merge the resulting registry file back into the system registry and your reasons will be customized.
Tip
The Custreasonedit process I describe customizes the reasons for this machine only. However, the readme.chm file tells you how to distribute the updated reasons list to multiple machines.
Brought to you by NetIQ and Windows & .NET Magazine eBooks
144
EventCombMT
Youve learned how to use the Eventcreate tool to capture selected events in the event log. Now, you might want a centralized way to locate these (and other) events across multiple servers. The EventCombMT tool lets you perform event searches easily. After you run EventCombMT, you can right-click in the left window and select the types of servers on which to query events, as Figure 7.21 shows (highlighted in yellow).
Figure 7.21
Selecting servers to search
As Figure 7.22 shows, you can select the log files to search (highlighted in orange), the event types (highlighted in green), any specific event IDs or event ID ranges (highlighted in yellow), or text within an event (highlighted in blue). In this example, Im checking one DC for event ID 105 and event ID 106 in the Application, System, and Security logs.
Chapter 7 Command-Line, Support, and Microsoft Windows Server 2003 Resource Kit Tools
145
Figure 7.22
Entering the types of events for the search
When you click Search in EventCombMT, the tool will query all the servers specified for the criteria you established. When the search is finished, the Temp directory will contain several files, and the Temp directory window will be exposed automatically. Open up a log file, such as the file Figure 7.23 shows, to see the events returned from the search including those you created with the Evencreate tool.
146
Figure 7.23
Logged events that match the criteria you establish
n Note
The resource kit tools are downloadable, but Microsoft doesnt support them 100 percent. Should you need assistance with them, youll get best-effort support.
147
Chapter 8:
148
Figure 8.1
RID the last part of the users SID
Infrastructure Master Each domain has one Infrastructure Master. The Infrastructure Masters job is to help translate group memberships. This function kicks into gear when accounts from one domain are members of groups in another domain. Each forest role also resides in a specific place and controls specific functions: Schema Master Each forest has one Schema Master. The Schema Master, as I discussed in Chapter 5, controls all access to the schema. If you extend the schema, the entire forest must comply because the forest has only one schema. Domain Naming Master Each forest has one Domain Naming Master. The Domain Naming Master ensures that no two domains with the same name become members of the forest.
149
Dumpfsmos
One way to check role ownership is to use the Dumpfsmos command, which you can find in the Microsoft Windows Server 2003 Resource Kit. Use the syntax
dumpfsmos <any Domain Controller>
and the results will reveal which roles reside on which DCs, as Figure 8.2 shows.
Figure 8.2
The Dumpfsmos command
Replmon
You can also discover which roles reside on which DCs through Active Directory Replication Monitor (Replmon), which I discussed in Chapter 7. Simply add any DC to Replmons list of DCs, then examine the DCs Server Properties. On the FSMO Roles tab, youll get the rundown that Figure 8.3 shows.
150
Figure 8.3
Locating FSMO roles through Replmon
Transferring Roles
If you need to take a server that holds a role down for maintenance, you should be able to transfer its role to another DC. If the DCs role is a domain-specific role (e.g., RID Master, PDC Emulator, Infrastructure Master), you can transfer the role to another DC in the domain. If the DCs role is a forest-specific role (e.g., Domain Naming Master, Schema Master), you can transfer the role to another DC in any domain. You can perform role transfers two ways: through the GUI and through the command line.
151
To transfer the Infrastructure Master role, you use the Active Directory Users and Computer console. You can transfer the first three roles listed through the Active Directory Users and Computers console, as Figure 8.4 shows.
Figure 8.4
Changing FSMO role owners through the Active Directory Users and Computers console
To transfer the Schema Master role, you use the Microsoft Management Console (MMC) Active Directory Schema snap-in. To transfer the Domain Naming Master role, you use the Active Directory Domains and Trusts console.
152
You perform these steps through commands inside Ntdsutil. For example, if you need to transfer the RID Master role from VMServer2 to VMServer5, you would type the following sequence of commands:
ntdsutil
to go to fsmo maintenance
connections
to perform the transfer Youll be asked whether youre sure you want to perform the transfer. After you answer affirmatively, the RID Master should be transferred to the target server, as Figure 8.5 shows (highlighted in red).
Figure 8.5
Transferring a role
153
Seizing Roles
Should a server go down while it owns a role, you might have to seize the role. Seizing a role basically draws a line in the sand that says, Ive tried multiple times and cant get the server back online. The server from which Im seizing the role will never come back online again.
Caution
Seize a role only if youre certain that you must.
The procedure for seizing a role involves Ntdsutil and resembles performing a transfer with that utility. Again, Ill begin with a brief overview of the sequence involved in the process. You would 1. run the Ntdsutil tool 2. use the Connect command to connect to the server on which you want the role or roles to finally reside 3. seize the role or roles you need to relocate 4. confirm that you want to perform the seize 5. exit the tool You perform this sequence through commands inside Ntdsutil. For example, if you must seize the PDC Emulator role from VMServer5 and relocate the role on VMServer2, you would type the following sequence of commands:
ntdsutil
to go to fsmo maintenance
connections
154
Youll be asked to verify that you want to perform the seize operation. After you answer affirmatively, the system first attempts a safe transfer (which I described in the Transferring Roles section) before it performs the seize operation. If the transfer fails (presumably because the server is dead), you must seize the role in this case, the PDC Emulator role and place it on the target server, as Figure 8.6 shows (highlighted in red).
Figure 8.6
Seizing a role
155
Figure 8.7
A DC that needs to be removed
After you identify a stale object, you need to use Ntdsutil to clean up the AD metabase remove the DC from the site remove the DC from the DC organizational unit (OU)
156
to return to the metadata cleanup prompt (In the example that Figure 8.8 shows, I abbreviated the command Quit to the letter q.)
select operation target
to display all the domains to which you have access and automatically assign each of them a number
select domain <number>
to display all the sites in the forest and assign each of them a number
select site <number>
to display all the DCs for the site and assign each of them a number
select server <number>
to then remove the server (by pressing Enter) Figure 8.8 shows the complete series of commands for removing a server. The highlighted section shows the final removal of VMServerF.
157
Figure 8.8
Removing VMServerF
you see the dialog box that Figure 8.9 displays. (Note that this dialog box appears before the final lines of text in the screen shot that Figure 8.8 shows.)
158
Figure 8.9
Server Remove Confirmation dialog box
The DC should be successfully removed. You need to return to the Active Directory Sites and Services console and delete the object. You also need to load the Active Directory Users and Computers console and delete the object.
Tip
According to Microsoft, after you delete a DC, you can add a DC that has the same name as the DC youve deleted. However, I recommend that you not do so. Ive seen directory corruption occur when names are reintroduced.
Renaming DCs
Renaming a server or DC should be easy. However, to rename a server in Windows NT, you must remove the servers computer account from the domain, which adds the server to a workgroup, then reboot. You then rename the server and reboot again. You then rejoin the server to the domain, and oh, yes reboot again! With NT DCs, the process is worse. Basically, you cant rename an NT DC without reformatting the disk and starting over. Win2K lets you rename a server from the Computer Name tab in System Properties. As long as the server is online, the corresponding computer account in AD is changed to reflect the name change. To rename a Win2K DC, you run Dcpromo to demote the DC to a garden variety server, reboot, then rename the server and reboot. You run Dcpromo again to promote the server to DC and you guessed it reboot again. Windows 2003 changes things a bit. To rename a DC, you no longer begin by undoing its DC status. That is, you dont need to run Dcpromo and first demote the DC to server. You can rename a DC two ways: through the GUI or through the command-line.
159
Figure 8.10
Renaming a DC through the GUI
Tip
Figure 8.10 displays a warning you see when you use the GUI to rename a DC.
After youve read the warning and are ready to proceed, click OK to continue. Youll be prompted to change the name, enter administrative credentials, and restart the DC. After the records change in DNS, the DC will be fully renamed and available to service requests.
160
In the example that Figure 8.11 shows, Im adding an alternate name (rename5) for the DC VMServer5.
161
Figure 8.11
Deploying Netdom to rename a DC
After you reboot the computer, you should start to see new DNS (A) records populate for the new name in DNS, as Figure 8.12 shows.
162
Figure 8.12
DNS (A) records for both server names
DNS should now have (A) records for both server names. You should also be able to ping and perform Nslookups for the computer by either name, as Figure 8.13 shows.
163
Figure 8.13
Finding both names with Ping and Nslookup
When youre ready to expunge the old name, you can use the syntax
netdom computername <newname> /remove:<oldname>
Renaming Domains
In the domain arena, Windows 2003 brings a totally radical concept to the table. That is, you can rename domains as well as perform rudimentary pruning and grafting within AD. However, before I discuss the new domain rename option, let me set the context by taking you back in time.
164
youll find the steps to do so. However, when you rename NT domains, some serious cautions apply, and, to some degree, Microsoft has never truly support the renaming. Win2K offers no real way to rename domains. If you want to rename a domain, you have to demote every DC in the domain to server, then promote your first server back to DC and introduce a new name. In addition, you can rename a server only if the server is at the end of a domain tree not if its anywhere in the middle. Also, when you rename the domain, you lose all your user accounts in that domain, and you have to recreate them from scratch. Figure 8.14 shows an example of a Win2K domain in which through the process described above you can rename some domains but not others. You cant rename domains at the top of the tree (or forest) or in the middle. Only the domains on the end are valid candidates for renaming, and even then, the thought of losing all accounts isnt appealing.
Figure 8.14
Valid and invalid domains for renaming
corp.com
west.corp.com
east.corp.com
divisiona.corp.com
divisionb.corp.com
Windows 2003 offers a new approach to renaming domains. However, dont jump headlong into a Windows 2003 domain rename, which is still complex and fraught with peril.
165
Figure 8.15
Adding valid UPN names to the forest
After you add an alternate UPN suffix to the forest, youll be able to specify user account suffixes with the new name, as Figure 8.16 shows.
166
Figure 8.16
Modifying a user account to use a UPN name
You can have users log on with the new name by explicitly spelling out their full UPN name every time they log on, as Figure 8.17 shows.
Figure 8.17
User logon with a UPN name
167
Of course, this change is only skin deep. Indeed, the new UPN name (Bigfish.com) doesnt even show up on the Log on to: line of the authentication dialog box. However, this adaptation might be enough to satisfy those who requested the change.
Tip
Creating a UPN name is much simpler than performing a domain rename and it might suffice.
Caution
Although youll find domain rename tools on the Windows 2003 CD-ROM, the tools are old avoid them! Always download the latest Microsoft domain rename tools.
3. Back up all DCs. 4. Design your new forest structure to maintain the overall naming structure. Microsoft calls this approach maintaining a well-formed forest. Put the new forest instruction set on your control station. 5. Upload the new forest instruction set to every DC in the forest by using the domain rename tools. 6. Perform the rename by using the domain rename tools. 7. Reboot all DCs to accept the new instruction set. 8. Reboot all member computers (servers and workstations) twice. 9. Fix the external trusts, Dfs, and GPOs.
Caution
Also, keep in mind that Microsoft doesnt support the domain rename operation if the forest contains Microsoft Exchange 2003 or Exchange 2000. Exchange simply cant handle the change.
Because of the several steps required, the potential bumps in the road on the way to the goal, and the restriction that you cant rename forests that contain Exchange 2003 or Exchange 2000 the domain rename operation might be out of reach for many organizations (although rumor has it that Exchange 2003s Service Pack 1 SP1 might let a domain rename succeed).
Brought to you by NetIQ and Windows & .NET Magazine eBooks
168
Tip
To read Microsofts two white papers on the specific step-by-step procedure for performing domain renames (one is 30 pages long and the other 80 pages long), go to http://www.microsoft.com/windowsserver2003/downloads/domainrename.mspx, where youll find links to the two documents with all the (gory) details.
Caution
Be sure to perform the domain rename operation in fact, all the operations I discuss in this chapter first in your test lab, not on your production servers. Also, after a domain rename operation, as the Microsoft papers discuss, certain other elements of AD (e.g., certificates, Dfs) might need adjusting before they work again.
Final Thoughts
I hope you wont need to perform the operations I discuss in this chapter often. From the transfer and seizing of FSMO roles to renaming DCs and domains, all the operations involve some perils. However, none of them is impossible, and you should be aware of whats required to perform them as safely as possible.
Thank You
I would like to thank NetIQ and Windows and .Net Magazine for providing the opportunity to write about a topic I love Windows 2003 and AD. Special thanks to Dave Bernard at Windows and .Net Magazine for seeing this project off to a smooth start and landing. Additional thanks to Veronica Patterson, who edited this book and provided just the right amount of firmness in editing. I thank Jan De Clercq (Hewlett-Packard HP) and Dave Peterson (NetIQ) for providing technical editing. However, if you find any technical errors, theyre mine, not theirs. Please feel free to contact me to point out technical errors and necessary updates at http://www.moskowitz-inc.com. I also thank Bill Boswell for additional bits and pieces of technical assistance throughout the book and for being a solid sounding board for my questions. Finally, thanks to all of you the readers who have taken and will take time to download and read the chapters of this eBook. Im grateful to you for reading what I have to offer.
Dedication
I dedicate this book to the best friend a guy ever had: Jill Knapp. In a word, you rock. (Okay, thats two words.)
Contact Information
If you need AD training, deployment assistance, or a resource to validate your plans for AD deployment, growth, or renovation, please feel free to contact me at http://www.moskowitz-inc.com. I also encourage you to visit my free community Group Policy forum at http://www.GPOanswers.com.
Brought to you by NetIQ and Windows & .NET Magazine eBooks