Microsoft Active Directory

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp


What is Active Directory? A step-by step tutorial

Directory services are becoming a key part in managing IT infrastructure. Microsoft’s service, Active Directory, is one of the most well-known directory services in the world. In this article, we will cover the basics and explain exactly what Active Directory is and how to use it.

As the complexity of networking resources has grown, directory services have become ever more important for managing IT infrastructure. There is no directory service with a bigger name than Active Directory. Microsoft’s directory service has been established as a staple tool amongst network administrators. In this Active Directory tutorial we’re going to look at what Active Directory is, how to use it, and Active Directory tools like SolarWinds Access Rights Manager. Topics to learn include:

  • What is Active Directory?
  • What does Active Directory do?
  • How to Set Up Active Directory
  • How to Use Active Directory: Setting Up a Domain Controller, Creating Directory Users
  • Active Directory Events to Monitor
  • Trust Relationships (and Trust Types)
  • An Overview of Active Directory Forests and Trees
  • Active Directory Reporting (with SolarWinds Access Rights Manager)
  • How to Find the Source of Account Lockouts in Active Directory

What is Active Directory? 

AD users and computers dashboard screenshot

Active Directory is a directory service or container which stores data objects on your local network environment. The service records data on usersdevicesapplicationsgroups, and devices in a hierarchical structure.

The structure of the data makes it possible to find the details of resources connected to the network from one location. In essence, Active Directory acts like a phonebook for your network so you can look up and manage devices easily.

What does Active Directory do? 

There are many reasons why enterprises use directory services like Active Directory. The main reason is convenience. Active Directory enables users to log on to and manage a variety of resources from one location. Login credentials are unified so that it is easier to manage multiple devices without having to enter account details to access each individual machine.

How to Setup Active Directory (with RSAT) 

To begin you will need to first make sure that you have Windows Professional or Windows Enterprise installed otherwise you won’t be able to install Remote Server Administration Tools. Then do the following:

For Windows 10 Version 1809:

  1. Right-click on the Start button and go to Settings > Apps > Manage optional features > Add feature.
  2. Now select RSAT: Active Directory Domain Services and Lightweight Directory Tools.
  3. Finally, select Install then go to Start > Windows Administrative Tools to access Active Directory once the installation is complete.

For Windows 8 (And Windows 10 Version 1803) 

  1. Download and install the correct version of Server Administrator Tools for your device: Windows 8, Windows 10.
  2. Next, right-click the Start button and select Control Panel > Programs > Programs and Features > Turn Windows features on or off.
  3. Slide down and click on the Remote Server Administration Tools option.
  4. Now click on Role Administration Tools.
  5. Click on AD DS and AD LDS Tools and verify AD DS Tools has been checked.
  6. Press Ok.
  7. Go to Start > Administrative Tools on the Start menu to access Active Directory.

How to use Active Directory: How to Setup a Domain Controller, Creating Directory Users 


Active Directory Domain Services Configuration Wizard


How to Setup A Domain Controller

One of the first things you need to do when using Active Directory is to set up a domain controller. A domain controller is a central computer that will respond to authentication requests and authenticate other computers throughout the network. The domain controller stores the login credentials of all other computers and printers.

All other computers connect to the domain controller so that the user can authenticate every device from one location. The advantage of this is that the administrator won’t have to manage dozens of login credentials.

The process of setting up a domain controller is relatively simple. Assign a static IP address to your Domain Controller and install Active Directory Domain Services or ADDS. Now follow these instructions:

  1. Open Server Manager and click Roles Summary > Add roles and features.
  2. Click Next.
  3. Select Remote Desktop Services installation if you’re deploying a domain controller in a virtual machine or select role-based or feature-based installation.
  4. Select a server from the server pool.
  5. Select Active Directory Domain Services from the list and click Next.
  6. Leave the Features checked by default and press Next.
  7. Click Restart the destination server automatically if required and click Install. Close the window once the installation is complete.
  8. Once the ADDS role has been installed a notification will display next to the Manage menu. Press Promote this server into a domain controller.
  9. Now click Add a new forest and enter a Root domain name. Press Next.
  10. Select the Domain functional level you desire and enter a password into the Type the Directory Services Restore Mode (DSRM password) section. Click Next.
  11. When the DNS Options page displays click Next again.
  12. Enter a domain in the NetBios Domain name box (preferably the same as the root domain name). Press Next.
  13. Select a folder to store your database and log files. Click Next.
  14. Press Install to finish. Your system will now reboot.

Creating Active Directory Users

Users and computers are the two most basic objects that you will need to manage when using Active Directory. In this section, we’re going to look at how to create new user accounts. The process is relatively simple, and the easiest way to manage users is through the Active Directory Users and Computer or ADUC tool that comes with the Remote Server Administration Tools or RSAT pack. You can install ADUC by following the instructions listed below:

Install ADUC on Windows 10 Version 1809 and Higher:

  1. Right-click on the Start button and click Settings > Apps, then click Manage optional features > Add feature.
  2. Select RSAT: Active Directory Domain Services and Lightweight Directory Tools.
  3. Select Install and wait for the installation to complete.
  4. Go to Start > Windows Administrative Tools to access the feature.

Install ADUC on Windows 8 and Windows 10 Version 1803 or Lower: 

  1. Download and install Remote Server Administrator Tools for your version of Windows. You can do so from one of these links here:
    Remote Server Administrator Tools for Windows 10Remote Server Administrator Tools for Windows 8, or Remote Server Administrator Tools for Windows 8.1.

  1. Right-click on Start > Control Panel > Programs > Programs and Features > Turn Windows features on or off.
  2. Scroll down and select Remote Server Administration Tools.
  3. Expand Role Administrator Tools > AD DS and AD LDS Tools.
  4. Check AD DS Tools and press Ok.
  5. Go to Start > Administrative Tools and select Active Directory Users and Computers.

How to Create New Users with ADUC 

  1. Open the Server Manager, go to the Tools menu and select Active Directory Users and Computers.
  2. Expand the domain and click Users.
  3. Right-click on the right pane and press New > User.
  4. When the New Object-User box displays enter a First nameLast nameUser logon name, and click Next.
  5. Enter a password and press Next.
  6. Click Finish.
  7. The new user account can be found in the Users section of ADUC.

Active Directory Events to Monitor 

Like all forms of infrastructure, Active Directory needs to be monitored to stay protected. Monitoring the directory service is essential for preventing cyber-attacks and delivering the best end-user experience to your users.

Below we’re going to list some of the most important network events that you should look out for. If you see any of these events then you should investigate further ASAP to make sure that your service hasn’t been compromised.

Current Windows Event ID Legacy Windows Event ID Description
4618 N/A A security event pattern has been recognized.
4649 N/A A replay attack was detected (potentially a false positive).
4719 612 A system audit policy was changed.
4765 N/A SID History added to an account.
4766 N/A The attempt failed to add SID History to account.
4794 N/A Attempt to launch Directory Services Restore Mode.
4897 801 Role separation enabled.
4964 N/A Special groups have been assigned a new logon.
5124 N/A Security updated on OCSP Responder Service.
N/A 550 Potential DoS attack.
1102 517 Audit log was cleared.

An Overview of Active Directory Forests and Trees 

Forest and trees are two terms you will hear a lot when delving into Active Directory. These terms refer to the logical structure of Active Directory. Briefly, a tree is an entity with a single domain or group of objects that is followed by child domains. A forest is a group of domains put together. When multiple trees are grouped together they become a forest.

Trees in the forest connect to each other through a trust relationship, which enables different domains to share information. All domains will trust each other automatically so you can access them with the same account info you used on the root domain.

Each forest uses one unified database. Logically, the forest sits at the highest level of the hierarchy and the tree is located at the bottom. One of the challenges that network administrators have when working with Active Directory is managing forests and keeping the directory secure.

For example, a network administrator will be tasked with choosing between a single forest design or multi-forest design. The single-forest design is simple, low-cost and easy to manage with only one forest comprising the entire network. In contrast, a multi-forest design divides the network into different forests which is good for security but makes administration more complicated.

Trust Relationships (and Trust Types) 

As mentioned above, trusts are used to facilitate communication between domains. Trusts enable authentication and access to resources between two entities. Trusts can be one-way or two-way in nature. Within a trust, the two domains are divided into a trusting domain and a trusted domain.

In a one-way trust, the trusting domain accesses the authentication details of the trusted domain so that the user can access resources from the other domain. In a two-way trust, both domains will accept the other’s authentication details. All domains within a forest trust each other automatically, but you can also set up trusts between domains in different forests to transfer information.

You can create trusts through the New Trusts Wizard. The New Trust Wizard is a configuration wizard that allows you to create new trust relationships. Here you can view the Domain NameTrust Type, and Transitive status of existing trusts and select the type of trust you want to create.

Trust Types 

There is a range of trust types in Active Directory. We’ve listed these in the table below:

Trust Type Transit Type Direction Default? Description
Parent and child Transitive Two-way Yes A parent and child trust is established when a child domain is added to a domain tree.
Tree-root Transitive Two-way Yes A tree-root trust is established the moment a domain tree is created within a forest.
External Non-transitive One-way or two-way No Provides access to resources in a Windows NT 4.0 domain or a domain located in a different forest that isn’t supported by a forest trust.
Realm Transitive or non-transitive One-way or two-way No Forms a trust relationship between a non-Windows Kerberos realm and a Windows Server 2003 domain.
Forest Transitive One-way or two-way No Shares resources between forests.
Shortcut Transitive One-way or two-way No Reduces user logon times between two domains within a Windows Server 2003 forest.

Active Directory Reporting with SolarWinds Access Rights Manager (FREE TRIAL)Generating reports on Active Directory is essential for optimizing performance and staying in accordance with regulatory compliance. One of the best Active Directory reporting tools is SolarWinds Access Rights Manager (ARM). The tool has been created to increase visibility into how directory credentials are used and managed. For example, you can view accounts with insecure configurations and credential abuse that could indicate a cyber attack.

SolarWinds Access Rights Manager

Using a third-party tool like SolarWinds Access Rights Manager is beneficial because it provides you with information and features that would be much more difficult or impossible to access through Active Directory directly.

As well as generating reports you can automatically delete inactive or expired accounts that cybercriminals target. SolarWinds Access Rights Manager starts at $3,444 (£2,829). There is also a 30-day free trial version that you can download.

SolarWinds Access Rights ManagerDownload 30- day FREE Trial

How to Find the Source of Account Lockouts in Active Directory

The easiest way to find account lockouts in Active Directory is to use the Event Viewer, which is built into Windows. Active Directory generates Windows Events messages for each of its actions, so your first task is to track down the right event log.

  1. Open a PowerShell window by pressing the Windows key and R together. In the Run popup, type powershell and hit ENTER.
  2. At the command line type (get-addomain).pdcemulator
  3. Note down the address of the PCD Emulator domain controller, which will be shown on the next line.
  4. Type exit to close the PowerShell window.
  5. The standard event log viewer that is built into the Windows operating system will help you find the account lockouts.
  6. Go to the DC named as the PDC Emulator.
  7. Open the Event Viewer by expanding Windows Administrative Tools in the Start menu and clicking on the Event Viewer entry in that submenu.
  8. In the Event Viewer, expand the Windows Logs node in the left-hand menu tree. Click on Security. The Security events list will appear in the central panel of the Event Viewer.
  9. In the right panel of the Event Viewer, click on Filter Current Log, which will open a popup window.
  10. In the Event IDs field replace  with 4740.
  11. Select a time horizon in the Logged drop-down list at the top of the form.
  12. Optionally, enter a username or a hostname if you are specifically looking for a lockout on a specific user or resource.
  13. Press OK.
  14. Double click on the log entry that relates to the user or resource that interests you and that has a timestamp that matches the moment you think the lockout occurred. This will open the Event Report.

The Event Report will show you the user that was locked out, the computer that the event occurred on, and the source, or reason for the lockout.

Active Directory Tutorial: The Basics 

Active Directory is one of the best tools for managing resources in your network. In this article, we’ve just scratched the surface of the potential of this tool. If you’re using Active Directory remember that it is a potential entry point for cyber attackers. Making a note of key directory events and use a directory monitor will go a long way towards minimizing the risk of a malicious attack and protecting the availability of your service.

Active Directory FAQs

What is the difference between an Active directory and a Domain controller?

Active Directory is an authentication system. A domain is a collection of objects, which are users, computers, and devices that all have access rights managed in the same Active Directory database. The domain controller is the authentication management system that implements Active Directory functions on the domain’s database objects.

How to enable the Security Auditing of Active Directory?

In order to start security auditing within Active Directory:

  1. Log in to Windows Server as an administrator.
  2. Go to Start, click on Administrative tools, and select Group policy management console.
  3. Get to the domain/OU to be audited.
  4. Right-click on the Group Policy Object, and choose Edit. This will open the Group Policy Management Editor.
  5. In the left-hand tree menu, expand Computer Configuration, then Policies, expand Windows Settings, then Security Settings, and finally Local Policies. Click on Audit Policies.
  6. In the main panel of the Editor, click on Audit object access and select both the Success and Failure options.
  7. Click on Audit directory service access and select both the Success and Failure options.

What is the difference between Active Directory and LDAP?

The Lightweight Directory Access Protocol (LDAP) is an open standard that outlines how access rights can be managed. Active Directory is an access rights management system, written by Microsoft. Active Directory is an evolution of the concepts defined in LDAP.

What are Active Directory and Single sign-on and what are the differences between them?

Single sign-on (SSO) gives each user access to several systems with just one authentication procedure. Active Directory (AD) is an access rights management system that can implement an SSO environment.

Can I install Active Directory on client operating systems?

No. Active Directory is a server function and it is integrated into the Windows Server operating system. Logically, any client running Active Directory would become a server. 



Table of Contents

Share Article

Share on facebook
Share on twitter
Share on google
Share on linkedin
Share on pinterest
Share on reddit
Share on vk
Share on odnoklassniki
Share on tumblr
Share on digg
Share on skype
Share on stumbleupon
Share on mix
Share on telegram
Share on whatsapp
Share on email

Related Articles

News Websites
Tech News

News Websites

Australian Technology News Websites has taken the news to a new level. Australian News Websites provides current information