Wednesday, August 25, 2010

10 Tips for effective AD design

1: Keep it simple
The first bit of advice is to keep things as simple as you can. Active Directory is designed to be flexible, and if offers numerous types of objects and components. But just because you can use something doesn’t mean you should. Keeping your Active Directory as simple as possible will help improve overall efficiency, and it will make the troubleshooting process easier whenever problems arise.

2: Use the appropriate site topology
Although there is definitely something to be said for simplicity, you shouldn’t shy away from creating more complex structures when it is appropriate. Larger networks will almost always require multiple Active Directory sites. The site topology should mirror your network topology. Portions of the network that are highly connected should fall within a single site. Site links should mirror WAN connections, with each physical facility that is separated by a WAN link encompassing a separate Active Directory site.

3: Use dedicated domain controllers
we have seen a lot of smaller organizations try to save a few bucks by configuring their domain controllers to pull double duty. For example, an organization might have a domain controller that also acts as a file server or as a mail server. Whenever possible, your domain controllers should run on dedicated servers (physical or virtual). Adding additional roles to a domain controller can affect the server’s performance, reduce security, and complicate the process of backing up or restoring the server.

4: Have at least two DNS servers
Another way that smaller organizations sometimes try to economize is by having only a single DNS server. The problem with this is that Active Directory is totally dependent upon the DNS services. If you have a single DNS server, and that DNS server fails, Active Directory will cease to function.

5: Avoid putting all your eggs in one basket (virtualization)
One of the main reasons organizations use multiple domain controllers is to provide a degree of fault tolerance in case one of the domain controllers fails. However, this redundancy is often circumvented by server virtualization. I often see organizations place all their virtualized domain controllers onto a single virtualization host server. So if that host server fails, all the domain controllers will go down with it. There is nothing wrong with virtualizing your domain controllers, but you should scatter the domain controllers across multiple host servers.

6: Don’t neglect the FSMO roles (backups)
Although Windows 2000 and every subsequent version of Windows Server have supported the multimaster domain controller model, some domain controllers are more important than others. Domain controllers that are hosting Flexible Single Master Operations (FSMO) roles are critical to Active Directory health. Active Directory is designed so that if a domain controller that is hosting FSMO roles fails, AD can continue to function — for a while. Eventually though, a FSMO domain controller failure can be very disruptive.
I have heard some IT pros say that you don’t have to back up every domain controller on the network because of the way Active Directory information is replicated between domain controllers. While there is some degree of truth in that statement, backing up FSMO role holders is critical.

I once had to assist with the recovery effort for an organization in which a domain controller had failed. Unfortunately, this domain controller held all of the FSMO roles and acted as the organization’s only global catalog server and as the only DNS server. To make matters worse, there was no backup of the domain controller. We ended up having to rebuild Active Directory from scratch. This is an extreme example, but it shows how important domain controller backups can be.

7: Plan your domain structure and stick to it
Most organizations start out with a carefully orchestrated Active Directory architecture. As time goes on, however, Active Directory can evolve in a rather haphazard manner. To avoid this, I recommend planning in advance for eventual Active Directory growth. You may not be able to predict exactly how Active Directory will grow, but you can at least put some governance in place to dictate the structure that will be used when it does.

8: Have a management plan in place before you start setting up servers
Just as you need to plan your Active Directory structure up front, you also need to have a good management plan in place. Who will administrator Active Directory? Will one person or team take care of the entire thing or will management responsibilities be divided according to domain or organizational unit? These types of management decisions must be made before you actually begin setting up domain controllers.

9: Try to avoid making major logistical changes
Active Directory is designed to be extremely flexible, and it is possible to perform a major restructuring of it without downtime or data loss. Even so, I would recommend that you avoid restructuring your Active Directory if possible. I have seen more than one situation in which the restructuring process resulted in some Active Directory objects being corrupted, especially when moving objects between domain controllers running differing versions of Windows Server.

10: Place at least one global catalog server in each site
Finally, if you are operating an Active Directory consisting of multiple sites, make sure that each one has its own global catalog server. Otherwise, Active Directory clients will have to traverse WAN links to look up information from a global catalog.

Brien Posey

Wednesday, August 4, 2010

10 must-have Windows server tools

Over the years, Microsoft has given us a staggering number of tools to help with server administration. Since there are so many tools available, I decided to talk about some of my favorites.

1: System Center Capacity Planner 


It might seem strange to start out by talking about a tool that Microsoft has discontinued. But I've found System Center Capacity Planner  to be so helpful, I wanted to mention it anyway. In case you are not familiar with this tool, it's designed to help make sure your proposed server deployment will be able to handle the anticipated workload.
According to Microsoft, the System Center Capacity Planner is being replaced by the System Center Configuration Manager Designer . The end of life announcement for System Center Capacity Planner indicates that it is no longer available, but at the time of this writing, you can still download it from TechNet, as well as from other third-party sites.


2: PowerShell 


Microsoft's Server products have evolved to the point that you can perform almost any administrative action from the command line by using PowerShell Most of the newer Microsoft Server products include management tools that are actually built on top of PowerShell. This means that any management tasks that can be performed through the GUI can also be performed from the command line or performed through a PowerShell Script. You can download PowerShell 2.0 from Microsoft.

3: Best Practices Analyzer
The Best Practices Analyzer isn't really a single tool, but rather a series of tools designed to analyze your server deployments and ensure that they adhere to Microsoft's recommended best practices. Microsoft provides versions of the Best Practices analyzer for Exchange, SQL, Small Business Server, and other Microsoft server products.

4: Security Configuration Wizard 
The Security Configuration Wizard is designed to help you to reduce the attack surface of your servers. It analyzes the way in which your servers are configured and then recommends how you can change various aspects of the configuration to make them more secure. The Security Configuration Wizard is included with Windows Server 2008 and Windows Server 2008 R2, but you can also download a Windows Server 2003 version.

5: ADSI Edit 
Another of my favorite tools is ADSI Edit ADSI Edit allows you to manually edit the Active Directory database. Whenever someone asks me about ADSI Edit, I usually compare it to the registry editor. The registry editor allows you to manually change various configuration parameters within a system, but if you use it incorrectly, you can destroy Windows. ADSI Edit is similar: It gives you free rein over Active Directory, but if you make a mistake you can destroy it.
I have found ADSI Edit most useful for working with Exchange Server deployments. It is sometimes impossible to remove Exchange public folders through conventional means. When this happens, you can use ADSI Edit to get rid of the folders that the Exchange Server management tools leave behind.

6: DCDIAG 
Although domain controllers are usually fairly reliable, problems do occasionally occur -- particularly with regard to Active Directory replication. The DCDIAG utility which is included with Windows Server, lets you run a full series of diagnostic tests against malfunctioning domain controllers.

7: Microsoft File Server Migration Wizard 

As time goes on, server hardware continues to improve. Some organizations are finding that they can decrease management costs by consolidating their aging file servers. The Microsoft File Server Migration Wizard (which is included in the File Server Migration Toolkit) helps organizations merge the contents of aging file servers into DFS root.

8: LDIF Directory Exchange 
The LDIF Directory Exchange utility isn't exactly a tool I use every day. But it has gotten me out of a couple of jams, so I wanted to include it on my list of favorite tools. LDIF Directory Exchange is a command-line tool for importing and exporting Active Directory objects. As with ADSI Edit, you have to be careful when using this tool because you can really mess up your Active Directory if you use it incorrectly. Even so, it's worth its weight in gold because it allows you to do some amazing things. For example, you can export all the user accounts from a domain and then use the resulting text file to create those same user accounts in a different domain.
The LDIF Directory Exchange utility is built into Windows Server. You can access it by entering LDIFDE in a command prompt window. Windows will display the command's full syntax along with the various command-line switches you can use.

9: Server Core Configurator 
So far, all the tools I've talked about are provided by Microsoft. However, there is one third-party tool I want to mention. Server Core Configurator  is an open source tool written by Guy Teverovsky.
Any time you perform a server core installation of Windows Server 2008, you must perform certain post installation tasks before the server is ready to use. Microsoft offers some PowerShell scripts, but performing the initial configuration process from a command line can be tedious. The Server Core Configurator simplifies the provisioning process by providing a simple GUI you can use for the initial

10: Microsoft Application Compatibility Manager
The Microsoft Application Compatibility Manager  is part of the Application Compatibility Toolkit. It's designed to ease the transition from one version of Windows to the next by compiling an inventory of the applications running on your desktops and determining whether each one is compatible with the new version of Windows.
By Brien Posey