Top 5 Free Microsoft Tools for Active Directory Health Edited



Similar documents
To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

6425C - Windows Server 2008 R2 Active Directory Domain Services

How to Operate Active Directory: Tips & Tricks

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Dell Spotlight on Active Directory Deployment Guide

MS-6425C - Configuring Windows Server 2008 Active Directory Domain Services

How to monitor AD security with MOM

NE-6425C Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

DC Agent Troubleshooting

Lenovo Online Data Backup User Guide Version

4cast Client Specification and Installation

ILTA HANDS ON Securing Windows 7

Configuring and Troubleshooting Windows 2008 Active Directory Domain Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

SystemTools Software Inc. Hyena Installation Guide

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Advanced Event Viewer Manual

Windows 2008 Server DIRECTIVAS DE GRUPO. Administración SSII

Installation Manual v2.0.0

6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

Microsoft Corporation. Project Server 2010 Installation Guide

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

RSA Authentication Manager 7.1 Basic Exercises

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain MOC 6425

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

mylittleadmin for MS SQL Server 2005 from a Webhosting Perspective Anthony Wilko President, Infuseweb LLC

Remote Desktop Services User's Guide

TROUBLESHOOTING INCORRECT REPORTING OF THE WHO CHANGED PARAMETER

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

ACTIVE DIRECTORY REPLICATION: HOW IT WORKS

Windows Server 2003 Service Pack 1 (SP1) or later service packs Enhanced version of Ntdsutil.exe

Course 6425C: Five days

Windows Server Firewall Configuration

How to Remove a Dead Domain Controller (DC) from Active Directory Using LDP.exe

PC Power Down. MSI Deployment Guide

Installation and Configuration Guide

Installation Guide for Pulse on Windows Server 2012

PrivateWire Gateway Load Balancing and High Availability using Microsoft SQL Server Replication

Secunia CSI integrated with WSUS (SCCM)

INSTALLING MICROSOFT SQL SERVER AND CONFIGURING REPORTING SERVICES

How to configure MAC authentication on a ProCurve switch

Administrator s Guide

2. Using Notepad, create a file called c:\demote.txt containing the following information:

Hands-On Microsoft Windows Server 2008

For Active Directory Installation Guide

SystemTools Software Inc. White Paper Series Hyena Installation Requirements

SPECOPS DEPLOY / OS 4.6 DOCUMENTATION

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

NetIQ Advanced Authentication Framework - Administrative Tools. Installation Guide. Version 5.1.0

Guide to deploy MyUSBOnly via Windows Logon Script Revision 1.1. Menu

NetWrix SQL Server Change Reporter

DNS: How it works. DNS: How it works (more or less ) DNS: How it Works. Technical Seminars Spring Paul Semple psemple@rm.

Propalms TSE Quickstart Guide

Managing User Accounts and User Groups

Nexio Connectus with Nexio G-Scribe

NetWrix USB Blocker. Version 3.6 Administrator Guide

CONFIGURING MICROSOFT SQL SERVER REPORTING SERVICES

Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients

Group Policy for Beginners

Technical Reference: Deploying the SofTrack MSI Installer

intertrax Suite resource MGR Web

Introduction to Hyper-V High- Availability with Failover Clustering

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Table of Contents WELCOME TO ADAUDIT PLUS Release Notes... 4 Contact ZOHO Corp... 5 ADAUDIT PLUS TERMINOLOGIES... 7 GETTING STARTED...

Module 2. Configuring and Troubleshooting DNS. Contents:

UNIT 5 ADDITIONAL PROJECTS BEFORE YOU BEGIN. Installing a Replica Domain Controller. You want to improve fault tolerance and performance on

EventTracker: Support to Non English Systems

Microsoft Virtual Labs. Active Directory New User Interface

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure

Data Warehouse Troubleshooting Tips

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Installation Guide for Pulse on Windows Server 2008R2

Infinity Web Viewer Reference Guide

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Agency Pre Migration Tasks

VeriCentre 3.0 Upgrade Pre-Installation and Post Installation Guidelines

Manual Password Depot Server 8

Active Directory Recovery: What It Is, and What It Isn t

Pre-Installation Guide

AdminToys Suite. Installation & Setup Guide

How to Use Remote Access Using Internet Explorer

Active Directory Change Notifier Quick Start Guide

Hosting Users Guide 2011

Dell Active Administrator 8.0

Server Installation: ServerTools

The Power Loader GUI

TrueEdit Remote Connection Brief

User and Group-Based Reporting in TRITON - Web Security: Best Practices and Troubleshooting

Issue Tracking Anywhere Installation Guide

Welcome to the QuickStart Guide

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

Transcription:

Top 5 Free Microsoft Tools for Active Directory Health Edited 07/02/2012 Active Directory health assessment is a challenge, especially for small and midsize companies that can't afford a full-time Active Directory admin or costly third-party tools. The first indication that Active Directory isn't healthy is when a flood of calls comes to the help desk indicating a potential crisis is brewing. Fortunately, Active Directory is amazingly selfhealing, and can run even when it isn't 100 percent healthy. Unfortunately, this usually aids in hiding problems that should be fixed by IT staff who are busy putting out other fires. I recall a number of years ago when I was contacted by a staffer who said a domain controller wasn't replicating. Upon examination of the logs, I discovered that this DC hadn't replicated for three years. Here are five basic tools that can be used to provide a quick Active Directory health assessment. All of them are free and relatively easy to use. 1. Active Directory Best Practices Analyzer With the Active Directory Best Practices Analyzer (ADBPA) tool provided by Microsoft in Windows Server 2008 R2, it seemed that Microsoft was going to unlock the treasure chest of health secrets for Active Directory. After all, the Exchange Best Practices Analyzer (ExBPA) is well-known and well-used among admins, myself included. I was expecting detailed reporting and a very thorough analysis of Active Directory best practices that would translate into a good troubleshooting tool like ExBPA. ADBPA falls short of the mark, at least for troubleshooting, but it does offer some good value. ADBPA appears under the Active Directory Domain Services role in Server Manager, as shown in Figure 1. [Click on image for larger view.] Figure 1. The Active Directory Domain Services role in Server Manager provides recommended configurations, task best practices and online resources. Note that you can click on each entry and get a description below the listing. This example shows all green checks indicating the DC is compliant with the ADBP listing. It will show errors and warnings as well. It checks to ensure all primary DCs are configured to a valid time source;

all domains have two functioning DCs; all organizational units (OUs) are protected from accidental deletion; when last backups were executed; DNS is configured correctly; and file replication service (FRS) replication and Group Policy replication are working. ADBPA is a good place to start as an overview, but details are obviously lacking. For instance, it doesn't display information about Active Directory replication or if any DCs haven't replicated over a period of time (like tombstone lifetime). While it indicates if DNS is working to allow clients to connect, there's nothing to indicate which DNS server might be incorrectly configured. 2. MPS Reports In the early days of Windows 2000, Microsoft released the Microsoft Product Support (MPS) Reports diagnostic script first to Microsoft partners, then later to the general public. I've utilized MPS Reports for many years, and it's a cornerstone in any Active Directory health assessment or troubleshooting effort. It's a free download from bit.ly/lgivyl. Simply select the x86 or x64 version for the system you're running it on and save the MPSReports.exe to a computer. When you run the MPSReports.exe, the dialog shown in Figure 2 will appear. Note that MPS Reports requires admin privileges to gather the correct information, and requires the following components as prerequisites: the Microsoft.NET Framework 2, Windows PowerShell 1.0, Windows Installer 3.1 and Microsoft Core XML Services 6.0. [Click on image for larger view.] Figure 2. This dialog box lets the administrator select which computer is experiencing a problem. Note that the dialog seems to indicate you can install MPS Reports on another computer -- but actually this is just a handy way to find the.net Framework and Windows PowerShell components, save them on the current computer and copy them to a Windows Server 2003, Windows XP or Windows Vista machine. The MPSReports.exe must be copied and run locally on each computer that it will be used on. Figure 3 shows the menu of diagnostics to be run. Previously, there were several versions of MPS Reports, for Networking, SQL, Exchange, Active Directory and more. Now it's all one package and you choose what you need to run. For Active Directory issues, I'd recommend checking General, Internet and Networking, Business Networks, Server Components and Exchange Servers (if Exchange is involved).

[Click on image for larger view.] Figure 3. Administrators can select which diagnostics to run or they can select a separate configuration file. Clicking on "Link to more info" will display the files collected so you know what MPS Reports is gathering. This is helpful not only for security but for troubleshooting, so you know what will be collected. Click "Next" to begin collecting diagnostic data. This will take a while. The value of MPS Reports is that it runs a bunch of command-line tools and produces the results in a simple, easy-to-find file. Besides the tools I'm discussing in this article, there are many command-line tools that gather invaluable data. MPS Reports gathers it so you don't have to type and file data. For instance, MPS Reports collects Event Logs in TXT, ECTX and CSV formats. My favorite is the CSV format. In Excel, it's easy to search and sort to find error text, error-level events, event IDs and so forth. Along with the TXT version, the CSV displays the description of events for apps -- so when reading it on your laptop, you can see the event description without loading the app (such as Exchange or SQL). Here's a tip: When diagnosing multiple servers or DCs, make a single Excel file and include the worksheet from MPS Reports for each machine in that file. It makes finding them a lot easier. If you open separate Excel files from the same instance of Excel, you can copy worksheets between the files. Right-click on the tab and select "Move or Copy." In the Move or Copy dialog, in the dropdown list To Book: select new book, check the "Create a copy" box and hit OK. This will open a new Excel file, to which you should copy the worksheet. Repeat for each worksheet you want to include and then save the combined file with a descriptive name. Note that this only works if you open all Excel files from the same Excel instance. MPS Reports allows saving of the CAB file to a location of your choice, or you can open it up immediately (see Figure 4). In the CAB file there will be one or more XML files (see Figure 5, that provide a graphical view of the various reports so you don't have to run all the tiny reports one by one.

[Click on image for larger view.] Figure 4. Once the diagnostics have run, administrators can save, e-mail or view the results. [Click on image for larger view.] Figure 5. A CAB file displaying XML files listing various reports Understanding MPS Reports isn't rocket science. Where I work we have an internal tool, written by one of my colleagues, that's actually more useful than MPS Reports because we can send someone an e-mail with a request for a feature and he implements it. This makes it extremely customizable. In addition, our version doesn't have all the requirements for.net Framework components and is a bit cleaner and faster than MPS Reports. One of the big drawbacks in running a report like this is in gathering the event logs. Our version allows a switch to exclude

the security log, which not only makes data collection faster but also doesn't compromise the security requirements of some companies (which prevent security logs from leaving the company). This is important if a third-party support engineer is diagnosing the event logs. So if you wanted to lose the restrictions of MPS Reports, you could have a talented programmer develop a similar tool for your purposes. 3. Repadmin and Replsum Repadmin, as a rule, is the most powerful command-line tool for Active Directory troubleshooting. The Replication Summary option, or Replsum command, displays an overview of the replication status of all DCs in all domains in the forest. In terms of an Active Directory health check, it's imperative to know if all DCs are replicating -- and for those that aren't, you'll want to know the last time they did replicate and why they stopped. The Repadmin command can quickly and clearly answer these questions. This is a valuable time saver as opposed to the commonly used Repadmin/showrepl, which details each DC in a long listing. The Replsum option looks at all DCs in all domains in the forest and puts them in an easy-to-read table. Use the command: Repadmin /bysrc /bydest sort:delta >repadmin.txt There are other options and formats for this command, but this is the only one I've ever used and it works well. Table 1 shows a sample output. Source DC Largest Delta Fails/Total %% Error WTEC-DC2 05d.13h:39m:15s 5 / 5 100 (1722) The RPC server is... WTEC-DC1 41m:26s 0 / 20 0 DDMC2K8 39m:00s 0 / 4 0 GSE-EXCH3 08m:59s 0 / 6 0 MRWTEC 08m:56s 0 / 4 0 WTEC-DC6 08m:34s 0 / 6 0 Destination DC Largest Delta Fails/Total %% Error WTEC-DC1 05d.13h:39m:39s 5 / 25 20 (1722) The RPC server is... DDMC2K8 41m:50s 0 / 4 0 GSE-EXCH3 13m:35s 0 / 6 0 MRWTEC 07m:24s 0 / 4 0 WTEC-DC6 06m:25s 0 / 6 0 Table 1 Sample output of a report listing various domain controllers and showing deltas, failure and error rates.

Note that the Source DC list shows outbound replication and the Destination DC list shows inbound. For example, in the top list, WTEC-DC2 is a Source DC and it hasn't replicated for more than five days. This is outbound replication because WTEC-DC2 is the source when the error is reported. Likewise, WTEC-DC1 is failing for inbound replication in the lower list because it's the Destination DC. The cause of both failures is event 1722: The RPC server is unavailable. This error usually means there's some physical connectivity failure at that DC. Here's a tip: If replication hasn't occurred for tombstone lifetime days, the "largest delta" entry will show "> 60 days." This indicates that the DC should not be brought back online because it could introduce lingering objects. Manually demote and re-promote the DC. 4. DCDiag /Test:DNS Besides replication, the other most common cause of Active Directory failure is DNS. DNS can often cause replication failure. The problem is that many environments install DNS servers on all Active Directory DCs, and there are many ways DNS can fail. Examining each one is timeconsuming. In the Windows Server 2003 time frame, Microsoft added the /Test:DNS option to the DC diag command. Execute this command as follows: DCDiag /Test:DNS /e /v >DcdiagDNS.txt This command will analyze every DNS server it finds on the network and test DNS server authentication, basic connectivity, configuration of forwarders, delegation, dynamic registration and resource record registration. For the latter, DCDiag creates a test Resource Record and tries to register it. If this fails, new records aren't able to be registered (which will cause other failures). It will record three potential results: Pass, Fail or Warn. Warn means it isn't a failure but should be investigated. For instance, Warn under the dynamic registration (DYN) column means the secure dynamic updates are not enabled. This isn't a failure, but you should be sure this is what you want. Table 2 shows typical output for this command. Auth Basc Forw Del Dyn RReg Ext Domain: Corp.net Corp-DC02 PASS WARN n/a FAIL PASS FAIL n/a Corp-DC03 PASS WARN n/a FAIL PASS FAIL n/a Corp-DC01 PASS WARN n/a FAIL PASS FAIL n/a Domain: EMEA.Corp.net EMEA-DC03 FAIL FAIL n/a n/a n/a n/a n/a EMEA-DC02 FAIL FAIL n/a n/a n/a n/a n/a

EMEA-DC01 FAIL FAIL n/a n/a n/a n/a n/a Domain: Americas.Corp.net AM-DC10 PASS PASS PASS PASS PASS FAIL n/a AM-DC11 PASS PASS PASS PASS PASS FAIL n/a AM-DC12 PASS PASS PASS PASS PASS FAIL n/a AM-DC13 PASS PASS PASS PASS PASS FAIL n/a Table 2 A DNS health check provides outlines of the status of specific domains from a global perspective. Table 2 shows a complete, concise report of all DNS servers in all domains in the network, in terms of the six DNS tests just described. This provides a good DNS health check. This table appears at the end of the DCDiag output. Details on these tests for each server are included in the DCDiag report prior to this summary table. If the user who ran the command doesn't have privileges in a domain, the tests will all fail. In this case, the user context under which DCDiag ran did not have privileges in the EMEA domain, so the tests all failed. "N/A" appears when prior tests fail and the rest of the tests are dependent. For instance, in EMEA-DC03, there's a Fail for the Auth and Basc tests. The rest of the tests show N/A. Because the Auth and Basc tests fail, the others will fail also. DCDiag doesn't test further and puts N/A in the column. The Ext column is a fifth test for checking external connectivity. The DCDiag /Test:DNS doesn't test this by default. Here's a tip: The listing of domains and DCs in the table is a handy display of all domains in the forest and all DCs (that are DNS servers) in each domain. This is a quick map of the domain structure and the DCs. Most environments make all DCs DNS servers, so this is a nice way to see the domain and DC structure. 5. DNSCMD Command-Line Tool If you're working on a remote system for an environment you're not familiar with -- or if you just want details about the DNS environment you work in -- the DNSCMD command-line tool will provide a wealth of information. Note that I need this level of detail because I'm diagnosing problems with no access to the environment, and I have to depend on reports to paint the picture. The commands I use are presented in Table 3. I'd recommend trying them even if you have access to the DNS server; sometimes it's easier to look at a report rather than clicking through the DNS UI. Also, if these reports are periodically filed, it's nice to go back and compare a problem report with a known good one -- especially if someone changes the config and you want to know what it was when it worked! Of course, these commands can be scripted. Command DNScmd /Info Description Shows server properties

DNScmd /enumzones DNScmd /zoneinfo <zone name> DNScmd <servername>/zoneexport <Zone name> <output filename> DNScmd <servername>/zoneexport/cache<output filename> Lists all DNS zones on the network Displays zone properties for <zone> Requires admin-privileged cmd window; dumps all DNS records in the zone, so may be a large file Same as previous zoneexport, but dumps the cache Table 3 An outline of commands based on various requirements. There are other tools, such as the Group Policy Management Console (GPMC), that are great for analyzing Group Policy. The GPMC also allows a Group Policy Object to be saved as a report in HTML format to send to a support engineer for analysis. The GPMC is not included in MPS Reports. Staying Healthy These free tools should provide a quick Active Directory health report and give advance warning of trouble. Of course, it does require effort by an admin to actually run the reports, but it's an easy process -- especially if you use MPS Reports. In conclusion, my advice is to: 1. Use the ADPBA tool as a 35,000-foot overview of Active Directory. 2. Download and run MPS Reports to get logs, event logs and reports to dig deeper for problem resolution. 3. Run DCDiag /Test:DNS, Repadmin and Replsum as described in this article to provide a quick, easy-to- understand snapshot of replication and DNS configuration for overall Active Directory health and pinpointed trouble spots. 4. Use DNSCMD to provide detailed DNS configuration information for offline analysis and comparison to previously known good configurations. No one ever said managing Active Directory was easy. But applying these best practices should go a long way toward better monitoring and managing of Active Directory, resulting in a secure environment for provisioning and administering user accounts.