Active Directory: retrieve the base DN (distinguishedName) attribute of an object

In this tutorial, I will explain how to retrieve the base DN also called distinguishedName in an Active Directory. This attribute is often used to configure LDAP/Active Directory bindings for applications. All Active Directory objects (Users, Computers, Organizational Unit, etc.) have the attribute: distinguishedName and this is unique. I say that the base DN attribute …

Read more



Active Directory: Secure Domain Join to Domain Admins

In this tutorial, we will address a security point on an Active Directory environment, which is the domain joining of computers. What you need to know (some administrators don’t know this), all domain users can join a computer to a domain, they can even join up to 10 computers. Domain administrators have no limit as …

Read more



Windows Server 2022: Installation of an Active Directory domain controller

In this first tutorial dedicated to Windows Server 2022, I will show you how to install an Active Directory domain controller. Si vous débutez avec les services Active Directory, je vous invite à suivre le cours j’ai créé avant : In this tutorial, here is what we will see: Installing the Active Directory Domain Services …

Read more



Rename an Active Directory domain

The following procedure shows you how to rename an Active Directory domain. 1. Open a command window in “administrator” mode and enter the following command which will generate a Domainlist.xml file : 2. Edit the xml file, changing your old domain to the new one: In the file, I modified rdr-it.intra to rdr-it.com. 3. Enter …

Read more



Create an Active Directory environment in PowerShell

Introduction In this tutorial, we will see how to create an Active Directory environment using PowerShell, that is to say the creation of the first domain controller which includes: The Active Directory tutorial: installing and configuring a domain controller explains how to do it using the graphical interface. Prerequisites Ideally from a blank server, which …

Read more



Active Directory: Add a Domain Controller to PowerShell

Introduction In this tutorial, we will see how to add an Active Directory domain controller to an existing domain using PowerShell. To do this through the GUI, I invite you to read this article: Add an AD DS Domain Controller to an Existing Domain. (fr) Adding a domain controller to PowerShell is done in two …

Read more



Rename a domain controller

In this tutorial, we will see how to rename domain controller in the “rules of the art”. The name change happens in several times, here is a summary: Add a secondary name to the DC Permutation of the secondary name in primary Deleting the secondary name In an environment with multiple domain controllers, it is …

Read more



Active Directory: Joining a Computer to a Domain at the Command Line

NETDOM JOIN

Introduction The Active Directory domain join of a computer can be done using either the GUI or using command line and PowerShell. In this tutorial, I will explain how to join a computer to a domain using the various command lines that are: NETDOM DJOIN for off-line joining Add-Computer in PowerShell It is also possible …

Read more



Join a computer to an Active Directory domain

To join a computer to a domain you have several possibilities: By graphical interface Command Line (CMD, PowerShell) Prerequisites be an administrator on the local workstation. have an account on the domain (preferably administrator). at the network configuration level, have dns a domain controller. By the graphical interface 1. Open Windows Explorer. 2. Right-click on …

Read more