Active Directory

How to Fix - Naming Information Cannot be Located Because Library Not Registered

This tutorial explains how to fix the error below. This error can be seen on any operating system, including Server 2003, Server 2008, Server 2012, Windows 7, Windows 8, & Windows 10. It can be seen on a Domain Controller, or on a server or workstation with Remote Server Administration Tools installed on it. This message appears when opening a variety of MMC snap-ins, including Active Directory Users and Computers and Sites and Services.

Naming information cannot be located because: Library not registered. Contact your system administrator to verify that your domain is properly configured and is currently online.

How to Fix - Naming Information Cannot be Located Because Library Not Registered

To fix this error, you need to use the tool regtlibv12.exe, which is provided with the .NET Framework. Open a command prompt as administrator and browse to "C:\Windows\Microsoft.NET\Framework\VERSION\", where version is the directory name of the most recent version of .NET Framework you have installed. In my example, v4.0.30319 is the most recent. Then run the following command:

regtlibv12.exe activeds.tlb

You will see a confirmation stating "Registration of activeds.tlb successful. After this, you should be able to run any of the snap-ins without receiving errors.

How to Fix C00002E2 Directory Services Could Not Start - Blue Screen

There are several reasons you may get get this error. The most common being a corrupt Active Directory database (NTDS.DIT). I know this sounds detrimental, but it's actually easy to fix this blue screen.

*** This is the Active Directory Database we're talking about here, so make sure you have a good backup of the server, in case this doesn't work***

This Stop code is only seen on a system with Active Directory on it. You notice it when the server is booting. You'll get a blue screen and an error code, like the following:

STOP: c00002e2 Directory Services could not start because of the following error:

A device attached to the system is not functioning.

Error Status: 0xc0000001.

Please shutdown this system and reboot into Directory Services Restore Mode, check the event log for more detailed information.

How to Fix C00002E2 Directory Services Could Not Start - Blue Screen 1

To begin, do as the message says, and boot into Directory Services Restore Mode. When the server powers on, press F8 before the OS begins to load. You should see a selection screen like this. Choose Directory Services Restore Mode:

Get A List of "Password Never Expires" Users From Active Directory Using AdFind.exe

This tutorial will show you how to get a formatted list of users from Active Directory with the "Password never expires" check-box selected. We will be using the AdFind.exe tool from to get the data from Active Directory. We will then use a Linux system to format the list into readable view.

To begin, download AdFind.exe from

Extract the zip file to C:\AdFind, then open a command prompt and change to the location where you extracted it:

cd C:\AdFind

Run this command, all in one line:

adfind -bit -default -f "(&(objectCategory=person)(objectClass=user)(userAccountControl:AND:=65536))" > ad.txt

New Forest/Domains/Child Domains with Server 2008

 We will be installing and setting up a new domain controller by using dcpromo.exe. I think Microsoft has done a really good job at making this process pretty easy. That is unless something goes wrong when trying to remove one and you have to end up manually remove the domain controller (we won’t get into that for this article).

1. First you will goto Start -> Run -> Then type in: dcpromo

2. Now a dialog box will popup like the one below and will check to see if the Active Directory Domain Services binaries are already installed. If they are not then you will see another dialog box saying that it is currently installing them after the check.


3. Now the wizard should be started aftering checking/installing the binaries. There is an advanced mode that you could choose but for this article we will be leaving it unchecked. If you check the box you will get some more options like creating a new domain in an existing forest, but adding it to a new Domain Tree. Normally when you create a new domain it will be a child domain under the Forest Root Domain (which we are creating now)


Subscribe to Active Directory