{"id":2158,"date":"2024-12-07T12:36:25","date_gmt":"2024-12-07T18:36:25","guid":{"rendered":"https:\/\/techlensfocus.com\/?p=2158"},"modified":"2024-12-07T12:36:26","modified_gmt":"2024-12-07T18:36:26","slug":"mastering-windows-server-domain-controller-and-redundancy","status":"publish","type":"post","link":"https:\/\/techlensfocus.com\/index.php\/2024\/12\/07\/mastering-windows-server-domain-controller-and-redundancy\/","title":{"rendered":"Mastering Windows Server: Domain Controller and Redundancy"},"content":{"rendered":"\n<div class=\"wp-block-ideabox-toc ib-block-toc\" data-anchors='h2,h3,h4,h5,h6' data-collapsable='true' ><div class=\"ib-toc-container ib-toc-list-style-numbers ib-toc-hierarchical ib-toc-expanded\"><div class=\"ib-toc-header\"><div class=\"ib-toc-header-title\">Table of Contents<\/div><div class=\"ib-toc-header-right\"><span class=\"ib-toc-icon-collapse\"><span class=\"dashicon dashicons dashicons-minus\"><\/span><\/span><span class=\"ib-toc-icon-expand\"><span class=\"dashicon dashicons dashicons-plus\"><\/span><\/span><\/div><\/div><div class=\"ib-toc-separator\" style=\"height:2px\"><\/div><div class=\"ib-toc-body\"><ol class=\"ib-toc-anchors\"><\/ol><\/div><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>In the Windows Server environment, Active Directory (AD) plays a vital role in managing users, computers, and resources. In this blog, we will explore key concepts such as forests, domain controllers, and why adding redundancy in your AD setup is critical. We\u2019ll conclude with a hands-on lab to create a new AD Forest and install an additional domain controller.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is an Active Directory Forest?<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Active Directory Forest is the highest level of organization within the AD structure. It include all of the domains, users, computers, groups, and resources within the network. Typically, one AD forest is sufficient for a large company to organize its network assets into a single directory service, simplifying management and security.<\/p>\n\n\n\n<p>If we have many AD forest, each AD forest is isolated from other forests, and objects in one forest are not automatically visible or accessible to another forest <strong>unless trust relationships are established<\/strong>.<\/p>\n\n\n\n<p>Key components of an AD forest include:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Schema Naming Context (NC):<\/strong> Defines all object types (e.g., users, computers) and their attributes (e.g., usernames, email addresses). There is only <strong>one schema <\/strong>per forest.<\/li>\n\n\n\n<li><strong>Configuration Naming Context:<\/strong> Stores information about network services and site (locations). This partition is unique to the forest and applies to all domains within it.<\/li>\n\n\n\n<li><strong>Domain Naming Context:<\/strong> Contains the actual objects within each domain (such as users, computers, groups, organizational unit). There can be multiple domain partitions in a forest.<\/li>\n<\/ul>\n\n\n\n<p>Organizations may create a new AD forest for various reasons, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Security Isolation<\/strong>: Each forest acts as a security boundary, and creating a new forest ensures that resources remain isolated from other forests unless explicitly shared.<\/li>\n\n\n\n<li><strong>Independent Management<\/strong>: Different divisions or subsidiaries within a company may require their own forest to manage resources independently.<\/li>\n\n\n\n<li><strong>Geographic\/Organizational Structure<\/strong>: Some organizations set up multiple forests to reflect distinct operational boundaries, such as different regions or departments.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Forest Root Domain?<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>The Forest Root Domain is <strong>the first domain created<\/strong> when a new AD forest is built. &nbsp;It is the foundation of the AD structure, defining the administrative boundaries for an organization&#8217;s network. From this root domain, <strong>additional domains can be added<\/strong> over time, building out the larger AD forest. <\/p>\n\n\n\n<p>When you create a new AD forest, the process starts with establishing the Forest Root Domain. This root domain is essential because it becomes the administrative hub for all future domains and objects within the forest.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Active Directory Domain Services (AD DS)<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>AD DS<\/strong> is a Windows Server role that provides directory services to manage network object such as users, groups, computers, subnets, and sites. Without AD DS, you cannot create domains or manage directory objects.<\/p>\n\n\n\n<p>When AD DS is installed, the server becomes a <strong>Domain Controller (DC)<\/strong>, responsible for maintaining the <strong>Active Directory (AD) <\/strong>database.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Role of a Domain Controller<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>A <strong>Domain Controller (DC)<\/strong> is a server that runs AD DS and authenticates users and devices within a domain. It stores a copy of the Active Directory database, containing information about all users, computers, and security groups in that domain.<\/p>\n\n\n\n<p>The key functions of a domain controller include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authentication<\/strong>: Ensuring users and computers can access resources.<\/li>\n\n\n\n<li><strong>Authorization<\/strong>: Managing permissions to resources based on policies.<\/li>\n\n\n\n<li><strong>Replication<\/strong>: Sharing changes across other DCs to maintain consistency.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Domain Controller<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>In larger or more critical environments, having an additional domain controller is essential for the following reasons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Performance<\/strong>: By distributing authentication and request processing across multiple DCs, the overall network performance improves.<\/li>\n\n\n\n<li><strong>Redundancy<\/strong>: If one domain controller fails, others can take over to ensure high availability, preventing a single point of failure.<\/li>\n\n\n\n<li><strong>Database Recovery<\/strong>: Each domain controller holds a writable copy of the Active Directory database, so having multiple DCs ensures better data integrity and faster recoverability in case of a failure.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lab: Creating a New AD Forest and Install an Additional Domain Controller<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Now that we\u2019ve covered the theoretical aspects, let\u2019s move on to the practical side. In this section, we will guide you through creating a new AD forest and adding an additional domain controller in a Windows Server environment using both GUI and PowerShell methods.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab Topology<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Here is the requirements for this lab (<strong>example.local<\/strong>):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Device<\/strong><\/td><td><strong>IP Address<\/strong><\/td><td><strong>Default Gateway<\/strong><\/td><td><strong>Preferred DNS<\/strong><\/td><td><strong>Alternate DNS<\/strong><\/td><\/tr><tr><td><strong>Server 1 (Primary DC)<\/strong><\/td><td>192.168.1.100<\/td><td>192.168.1.254<\/td><td>127.0.0.1 (Loopback Address)<\/td><td>192.168.1.101 (Secondary DC&#8217;s IP)<\/td><\/tr><tr><td><strong>Server 2 (Additional DC)<\/strong><\/td><td>192.168.1.101<\/td><td>192.168.1.254<\/td><td>127.0.0.1 (Loopback Address)<\/td><td>192.168.1.100 (Primary DC&#8217;s IP)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Secondly, for lab testing, using <strong>.local<\/strong> is recommended to keep it isolated and avoid unintentional DNS conflict. <\/p>\n\n\n\n<p>However, for production, you should use a registered domain name that aligns with your organization&#8217;s actual domain. Reason include: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Future Proofing:<\/strong> Allows integration with public services (e.g., Azure AD, Office 365) without requiring domain reconfiguration.<\/li>\n\n\n\n<li><strong>Security and Consistency:<\/strong> Using the real domain ensures consistent naming and better alignment with external DNS configurations.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Recommended DNS Configuration<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Primary DC (192.168.1.100)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Preferred DNS Server:<\/strong> 127.0.0.1 (Loopback Address)\n<ul class=\"wp-block-list\">\n<li>The primary DC should refer to itself first to resolve DNS queries, ensuring it can handle local lookups efficiently and operate independently if the network or secondary DC is temporarily unavailable.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Alternate DNS Server: <\/strong>192.168.1.101 (Secondary DC\u2019s IP)\n<ul class=\"wp-block-list\">\n<li>Use the secondary DC as a fallback in case of issues with the primary server&#8217;s DNS service.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>Secondary DC (192.168.1.101)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Preferred DNS Server:<\/strong> 127.0.0.1 (Loopback Address)\n<ul class=\"wp-block-list\">\n<li>Similarly, the secondary DC should prioritize itself for DNS queries.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Alternate DNS Server: <\/strong>192.168.1.100 (Primary DC\u2019s IP)\n<ul class=\"wp-block-list\">\n<li>The primary DC acts as a backup if the secondary DC\u2019s DNS service encounters issues.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Setting Up a New AD Forest<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">GUI Method<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Install Active Directory Domain Services (AD DS)<\/strong><\/p>\n\n\n\n<p>In <strong>Server 1<\/strong> (Primary Domain Controller), follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Server Manager<\/strong> on your Windows Server.<\/li>\n\n\n\n<li>Click <strong>Manage<\/strong> &gt; <strong>Add Roles and Features<\/strong>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"376\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/01.Add-Roles-and-Features-1024x376.png\" alt=\"\" class=\"wp-image-2196\" style=\"width:602px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/01.Add-Roles-and-Features-1024x376.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/01.Add-Roles-and-Features-300x110.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/01.Add-Roles-and-Features-768x282.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/01.Add-Roles-and-Features.png 1078w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>In the <strong>Add Roles and Features Wizard<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Next<\/strong> on the <strong>Before you begin<\/strong> page.<\/li>\n\n\n\n<li>Choose <strong>Role-based or feature-based installation<\/strong> and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Select the local server from the server pool and click <strong>Next<\/strong>. In this case, our server named <strong>VM-DC01<\/strong>.<\/li>\n\n\n\n<li>On the <strong>Server Roles<\/strong> page, check <strong>Active Directory Domain Services<\/strong>, then click <strong>Add Features<\/strong> when prompted. Click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Keep default selections for features and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Review the information on the <strong>AD DS<\/strong> page and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Install<\/strong> on the confirmation page.<\/li>\n\n\n\n<li>See screenshots below:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"728\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/02.Before-you-begin-1024x728.png\" alt=\"\" class=\"wp-image-2200\" style=\"width:578px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/02.Before-you-begin-1024x728.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/02.Before-you-begin-300x213.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/02.Before-you-begin-768x546.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/02.Before-you-begin.png 1099w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"722\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/03.Installation-Type-1024x722.png\" alt=\"\" class=\"wp-image-2202\" style=\"width:579px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/03.Installation-Type-1024x722.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/03.Installation-Type-300x211.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/03.Installation-Type-768x541.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/03.Installation-Type.png 1105w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"730\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/04.Server-Selection-1024x730.png\" alt=\"\" class=\"wp-image-2204\" style=\"width:582px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/04.Server-Selection-1024x730.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/04.Server-Selection-300x214.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/04.Server-Selection-768x547.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/04.Server-Selection.png 1096w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"824\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/05.Server-Roles-1-1024x824.png\" alt=\"\" class=\"wp-image-2211\" style=\"width:585px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/05.Server-Roles-1-1024x824.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/05.Server-Roles-1-300x242.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/05.Server-Roles-1-768x618.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/05.Server-Roles-1.png 1103w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"726\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/06.Features-1-1024x726.png\" alt=\"\" class=\"wp-image-2212\" style=\"width:586px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/06.Features-1-1024x726.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/06.Features-1-300x213.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/06.Features-1-768x544.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/06.Features-1.png 1103w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"727\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/07.AD-CS-1-1024x727.png\" alt=\"\" class=\"wp-image-2214\" style=\"width:589px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/07.AD-CS-1-1024x727.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/07.AD-CS-1-300x213.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/07.AD-CS-1-768x545.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/07.AD-CS-1.png 1113w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"734\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/08.Install-1024x734.png\" alt=\"\" class=\"wp-image-2216\" style=\"width:589px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/08.Install-1024x734.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/08.Install-300x215.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/08.Install-768x550.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/08.Install.png 1094w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>Step 2: Promote your server to a domain controller<\/strong><\/p>\n\n\n\n<p>We are still in <strong>Server 1<\/strong>. After the AD DS installation, it doesn\u2019t make the server a domain controller yet, it merely adds the required components. Click the <strong>Promote this server to a domain controller<\/strong> link in the notification area of Server Manager.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/09.Promote-DC-1024x493.png\" alt=\"\" class=\"wp-image-2234\" style=\"width:586px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/09.Promote-DC-1024x493.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/09.Promote-DC-300x144.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/09.Promote-DC-768x370.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/09.Promote-DC.png 1063w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>In the <strong>Deployment Configuration<\/strong> window:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose <strong>Add a new forest<\/strong>. This will establish a new independent AD environment, the root of all domains in the organization.<\/li>\n\n\n\n<li>Enter<strong> techexample.local<\/strong> as the <strong>Root domain name<\/strong> and click <strong>Next<\/strong>. This domain name aligns with our lab environment.<\/li>\n\n\n\n<li>See screenshot below:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"756\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/10.Add-new-forest-1024x756.png\" alt=\"\" class=\"wp-image-2236\" style=\"width:582px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/10.Add-new-forest-1024x756.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/10.Add-new-forest-300x221.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/10.Add-new-forest-768x567.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/10.Add-new-forest.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>In the <strong>Domain Controller Options<\/strong> window:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify that <strong>Domain Name System (DNS) server<\/strong> is selected (it is enabled by default). Active Directory heavily relies on DNS for name resolution and locating domain controllers.<\/li>\n\n\n\n<li>Enter a <strong>Directory Services Restore Mode (DSRM) password<\/strong>, then click <strong>Next<\/strong>. The DSRM password is used for recovering or repairing AD in case of failures.<\/li>\n\n\n\n<li>See screenshot below:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"752\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/11.DC-Options-1024x752.png\" alt=\"\" class=\"wp-image-2238\" style=\"width:568px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/11.DC-Options-1024x752.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/11.DC-Options-300x220.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/11.DC-Options-768x564.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/11.DC-Options.png 1063w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Leave default settings for <strong>DNS Options<\/strong>, and click <strong>Next<\/strong>. Adjusting these settings is only necessary for advanced or hybrid configurations.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"753\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/12.DNS-Options-1024x753.png\" alt=\"\" class=\"wp-image-2240\" style=\"width:563px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/12.DNS-Options-1024x753.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/12.DNS-Options-300x221.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/12.DNS-Options-768x565.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/12.DNS-Options.png 1065w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>On the <strong>Additional Options<\/strong> page, verify the <strong>NetBIOS domain name<\/strong> (e.g., TECHEXAMPLE) and click <strong>Next<\/strong>. NetBIOS domain name is a short, legacy-compatible version of the domain name. It is used in environments or applications that rely on NetBIOS.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"749\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/13.NetBIOS-1024x749.png\" alt=\"\" class=\"wp-image-2243\" style=\"width:563px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/13.NetBIOS-1024x749.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/13.NetBIOS-300x219.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/13.NetBIOS-768x562.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/13.NetBIOS.png 1065w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Accept default paths for the database, log files, and SYSVOL folder, then click <strong>Next<\/strong>. These folder store critical AD data: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Database (NTDS.dit):<\/strong> Contains the Active Directory database.<\/li>\n\n\n\n<li><strong>Log files:<\/strong> Track changes to the database.<\/li>\n\n\n\n<li><strong>SYSVOL folder:<\/strong> Holds shared files like group policy and logon scripts.<\/li>\n<\/ul>\n\n\n\n<p>Review the configuration and click <strong>Install<\/strong>. The server will automatically reboot after the installation.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"754\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/14.Path_-1024x754.png\" alt=\"\" class=\"wp-image-2246\" style=\"width:555px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/14.Path_-1024x754.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/14.Path_-300x221.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/14.Path_-768x565.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/14.Path_.png 1072w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"758\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/15.Review-1024x758.png\" alt=\"\" class=\"wp-image-2247\" style=\"width:559px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/15.Review-1024x758.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/15.Review-300x222.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/15.Review-768x568.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/15.Review.png 1066w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"758\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/16.Promote-1024x758.png\" alt=\"\" class=\"wp-image-2249\" style=\"width:559px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/16.Promote-1024x758.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/16.Promote-300x222.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/16.Promote-768x568.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/16.Promote.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>Step 3: Verify the Installation<\/strong><\/p>\n\n\n\n<p>Once the server reboots, log in using the domain administrator account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"556\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/17.login-domain-admin.png\" alt=\"\" class=\"wp-image-2254\" style=\"width:561px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/17.login-domain-admin.png 946w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/17.login-domain-admin-300x176.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/17.login-domain-admin-768x451.png 768w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/figure><\/div>\n\n\n<p>Open <strong>Server Manager<\/strong> and ensure the <strong>Active Directory Users and Computers<\/strong> console is available under <strong>Tools<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"233\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/18.ADUserandComputers.png\" alt=\"\" class=\"wp-image-2255\" style=\"width:568px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/18.ADUserandComputers.png 740w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/18.ADUserandComputers-300x94.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/figure><\/div>\n\n\n<p>Verify the domain by opening a PowerShell window and running the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ADDomain<\/pre>\n\n\n\n<p>The output should display information about the <strong>techexample.local<\/strong> domain.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"303\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/19.PSDomainVerify-1024x303.png\" alt=\"\" class=\"wp-image-2257\" style=\"width:720px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/19.PSDomainVerify-1024x303.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/19.PSDomainVerify-300x89.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/19.PSDomainVerify-768x228.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/19.PSDomainVerify.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>Step 4: Verify DNS Resolution<\/strong><\/p>\n\n\n\n<p><strong>Check Forward and Reverse Lookup<\/strong><\/p>\n\n\n\n<p>From the Domain Controller (<strong>VM-DC01<\/strong>), open PowerShell and type this command to test forward lookup (resolving domain name to IP):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup techexample.local<\/pre>\n\n\n\n<p>The result should show the IP address of your domain controller, in this case is<strong> 192.168.1.100<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"142\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/20.nslookup.png\" alt=\"\" class=\"wp-image-2262\" style=\"width:706px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/20.nslookup.png 955w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/20.nslookup-300x45.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/20.nslookup-768x114.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/figure><\/div>\n\n\n<p>Next, we test the reverse lookup (resolving IP to domain name). Reverse lookups are particularly useful for troubleshooting and logging. First, we need to go to DNS manager to configure the reverse DNS zone:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Server <strong>Manager <\/strong>&gt; <strong>Tools <\/strong>&gt; <strong>DNS<\/strong><\/li>\n\n\n\n<li>Right-click <strong>Reverse Lookup Zones<\/strong> and select <strong>New Zone<\/strong><\/li>\n\n\n\n<li>Follow the New Zone Wizard:\n<ul class=\"wp-block-list\">\n<li><strong>Zone Type:<\/strong> Choose <strong>Primary zone<\/strong>.<\/li>\n\n\n\n<li><strong>Replication Scope:<\/strong> Keep the default (to all DNS servers in the forest or domain).<\/li>\n\n\n\n<li><strong>Network ID:<\/strong> Enter <strong>192.168.1<\/strong> (the first three octets of your IP address).<\/li>\n\n\n\n<li><strong>Dynamic Updates:<\/strong> Allow <strong>Secure Dynamic Updates<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"390\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/21.DNS_-1-1024x390.png\" alt=\"\" class=\"wp-image-2270\" style=\"width:714px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/21.DNS_-1-1024x390.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/21.DNS_-1-300x114.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/21.DNS_-1-768x292.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/21.DNS_-1.png 1075w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/22.New-Reverse-Lookup-Zone-1024x430.png\" alt=\"\" class=\"wp-image-2272\" style=\"width:717px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/22.New-Reverse-Lookup-Zone-1024x430.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/22.New-Reverse-Lookup-Zone-300x126.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/22.New-Reverse-Lookup-Zone-768x323.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/22.New-Reverse-Lookup-Zone.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"543\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/23.Zone-Type.png\" alt=\"\" class=\"wp-image-2274\" style=\"width:496px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/23.Zone-Type.png 693w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/23.Zone-Type-300x235.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"547\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/24.Replication-Scope.png\" alt=\"\" class=\"wp-image-2275\" style=\"width:495px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/24.Replication-Scope.png 689w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/24.Replication-Scope-300x238.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"554\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/25.IPV4_.png\" alt=\"\" class=\"wp-image-2277\" style=\"width:496px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/25.IPV4_.png 694w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/25.IPV4_-300x239.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"544\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/26.Network-ID.png\" alt=\"\" class=\"wp-image-2279\" style=\"width:497px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/26.Network-ID.png 697w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/26.Network-ID-300x234.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"547\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/27.Dynamic-Update.png\" alt=\"\" class=\"wp-image-2280\" style=\"width:497px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/27.Dynamic-Update.png 695w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/27.Dynamic-Update-300x236.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"540\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/28.Finish-New-Zone.png\" alt=\"\" class=\"wp-image-2281\" style=\"width:500px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/28.Finish-New-Zone.png 699w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/28.Finish-New-Zone-300x232.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Next, add a <strong>Pointer (PTR) record<\/strong> for your domain controller.<\/li>\n\n\n\n<li>Right-click the new reverse lookup zone.<\/li>\n\n\n\n<li>Select <strong>New Pointer (PTR)<\/strong>.<\/li>\n\n\n\n<li>Enter IP address and Host name, click <strong>OK<\/strong>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/29.New-Pointer-1024x397.png\" alt=\"\" class=\"wp-image-2283\" style=\"width:619px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/29.New-Pointer-1024x397.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/29.New-Pointer-300x116.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/29.New-Pointer-768x298.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/29.New-Pointer.png 1141w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"639\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/30.Enter-IP.png\" alt=\"\" class=\"wp-image-2284\" style=\"width:408px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/30.Enter-IP.png 556w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/30.Enter-IP-261x300.png 261w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure><\/div>\n\n\n<p>Now, we can test the reverse lookup:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup 192.168.1.100<\/pre>\n\n\n\n<p>The result now display the hostname <strong>techexample.local<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"135\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/31.Reverse-Lookup-Result.png\" alt=\"\" class=\"wp-image-2287\" style=\"width:613px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/31.Reverse-Lookup-Result.png 973w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/31.Reverse-Lookup-Result-300x42.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/31.Reverse-Lookup-Result-768x107.png 768w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure><\/div>\n\n\n<p><strong>Test DNS Service Health:<\/strong><\/p>\n\n\n\n<p>Run the following command on the domain controller, pay attention to any warnings or errors, as they may highlight configuration issues:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dcdiag \/test:dns<\/pre>\n\n\n\n<p>As you can see from the screenshot below, <strong>techexample.local<\/strong> have passed test DNS.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"692\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/32.DNS-Test-1024x692.png\" alt=\"\" class=\"wp-image-2293\" style=\"width:622px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/32.DNS-Test-1024x692.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/32.DNS-Test-300x203.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/32.DNS-Test-768x519.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/32.DNS-Test.png 1168w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">PowerShell Method<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Disable DHCP and configure Server IP Address<\/strong><\/p>\n\n\n\n<p>An Active Directory server should always have a static IP address to ensure reliable connectivity. Second, if the server is intended to function with a fixed IP address, DHCP should be disabled on that specific NIC.<\/p>\n\n\n\n<p>On Server 1 (<strong>VM-DC01<\/strong>), begin disable DHCP for the specific NIC, and set IP:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Get the network adapter name\n$AdapterName = Get-NetAdapter | Where-Object {$_.Status -eq \"Up\"} | Select-Object -ExpandProperty Name\n\n# Disable DHCP\nSet-NetIPAddress -InterfaceAlias $AdapterName -DHCP Disabled -PassThru\n\n#Assign Ips to variables\n$Ipaddress      = \"192.168.1.100\"\n$Dnsaddress     = \"127.0.0.1\"\n$Gatewayaddress = \"192.168.1.254\"\n\n#Removing existing IP and Gateway\nRemove-NetRoute -InterfaceAlias $AdapterName `\n                -AddressFamily IPv4 `\n                -Confirm:$false `\n                -PassThru\n\nRemove-NetIpAddress -InterfaceAlias $AdapterName `\n                    -AddressFamily IPv4 `\n                    -Confirm:$false `\n                    -PassThru\n\n# Assign static IP\nNew-NetIPAddress -InterfaceAlias $AdapterName `\n                 -IPAddress $Ipaddress `\n                 -AddressFamily IPv4 `\n                 -PrefixLength 24 `\n                 -DefaultGateway $Gatewayaddress\n\n# Set DNS server addresses\nSet-DnsClientServerAddress -InterfaceAlias $AdapterName -ServerAddresses $Dnsaddress\n<\/pre>\n\n\n\n<p>Verify the static IP address and DNS settings:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-NetIPAddress -InterfaceAlias $AdapterName\nGet-DnsClientServerAddress -InterfaceAlias $AdapterName<\/pre>\n\n\n\n<p><strong>Step 2: Install Active Directory Domain Services (AD DS)<\/strong><\/p>\n\n\n\n<p>Here is how you Install the AD DS role and other services: <\/p>\n\n\n\n<p>Open PowerShell as an Administrator, run the following command to install the AD DS role<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Setting Roles and Features variable\n$FeaturesToAdd = @('SNMP-Service', 'AD-Domain-Services')\n\n# Install the Roles and Features listed above\nInstall-WindowsFeature -Name $FeaturesToAdd -IncludeAllSubFeature -IncludeManagementTools\n\n# Setup SNMP Community \nREG ADD \"HKLM\\System\\ControlSet001\\Services\\SNMP\\Parameters\\ValidCommunities\" \/v \"public\" \/t REG_DWORD \/d 4 \/f\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HKLM<\/strong>: Stands for HKEY_LOCAL_MACHINE, a registry hive that stores settings for the local machine.<\/li>\n\n\n\n<li><strong>ControlSet001\\Services\\SNMP\\Parameters\\ValidCommunities:<\/strong> Specifies the location where SNMP community settings are stored.<\/li>\n\n\n\n<li><strong>\/v<\/strong> &#8220;public&#8221;<\/li>\n\n\n\n<li><strong>\/t REG_DWORD<\/strong>: Specifies the type of the registry value to be added. <\/li>\n\n\n\n<li><strong>\/d 4<\/strong>: 4 typically means READ-WRITE access, allowing both viewing and modification of SNMP-managed objects.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3: Promote Server to a Domain Controller<\/strong><\/p>\n\n\n\n<p>Next, we use the following command to create a new forest and promote Server 1 (<strong>VM-DC01<\/strong>) to become a Domain Controller. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Imports the relevant cmdlets for AD DS deployment into PowerShell\nImport-Module ADDSDeployment\n\nGet-Command -Module ADDSDeployment | Format-Table Name\n\n# Deploy the first domain controller and forest\n$ParamterToAdd = @{\n\nDomainName           = \"techexample.local\"\nDomainNetbiosName    = \"TECHEXAMPLE\"\nDomainMode           = \"7\"\nForestMode           = \"7\"\nDatabasePath         = \"C:\\Windows\\NTDS\"\nLogPath              = \"C:\\Windows\\NTDS\"\nSysvolPath           = \"C:\\Windows\\SYSVOL\" \nInstallDns           = $true \nCreateDnsDelegation  = $false\nNoRebootOnCompletion = $false \nForce                = $true \n\n}\n\nInstall-ADDSForest @ParamterToAdd\n\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DomainMode &#8220;7&#8221;<\/strong> and <strong>ForestMode &#8220;7&#8221;<\/strong>: This corresponds to Windows Server 2016 or higher forest functional level.<\/li>\n<\/ul>\n\n\n\n<p>During the execution, the server will restart automatically after completing the promotion process.<\/p>\n\n\n\n<p><strong>Note: <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You&#8217;ll be prompted to enter and verify a Directory Services Restore Mode (DSRM) password. You can skip this step by using parameter <strong>-SafeModeAdministratorPassword<\/strong>  and provide a secure string representation of your password. For example: <\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Install-ADDSForest -DomainName \"techexample.local\" `\n                   -SafeModeAdministratorPassword (ConvertTo-SecureString \"YourSecurePassword\" -AsPlainText -Force)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you&#8217;re frequently automating forest or domain creation processes, like in a lab setting, use this syntax to set the DSRM password to a specific value:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Example 1:\n$Password = ConvertTo-SecureString -String 'P@ssw0rd!' -AsPlainText -Force\n\n# OR\n\n# Example 2: \n$Password = Read-Host -Prompt 'Enter SafeMode Admin Password' -AsSecureString\n\nInstall-ADDSForest -DomainName \"techexample.local\" `\n                   -SafeModeAdministratorPassword $Password<\/pre>\n\n\n\n<p><strong>Step 4: Verify the Installation<\/strong><\/p>\n\n\n\n<p>Log in to the server with the domain administrator account: <strong>Administrator@techexample.local<\/strong><\/p>\n\n\n\n<p>Open PowerShell and run the following commands to verify:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># To check the domain details:\nGet-ADDomain\n\n# To list the domain controllers in the forest:\nGet-ADDomainController -Filter *<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing an Additional Domain Controller<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">GUI Method<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Add another server to the domain<\/strong><\/p>\n\n\n\n<p>In <strong>Server 2<\/strong>, before joining the domain, we need to ensure the server has a static IP address, below is screenshot of the configuration:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"633\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/33.IP-Config-before-Domain.png\" alt=\"\" class=\"wp-image-2304\" style=\"width:362px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/33.IP-Config-before-Domain.png 552w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/33.IP-Config-before-Domain-262x300.png 262w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure><\/div>\n\n\n<p>Next, test the connectivity to the Primary Doman Controller (Server 1), making sure it is reachable. Run the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ping 192.168.1.100<\/pre>\n\n\n\n<p>Next, test the DNS resolution, ensure the domain name resolves to the primary DC&#8217;s IP. Use nslookup to resolve the domain: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup techexample.local<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"148\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/34.Server-2-test-DNS-1024x148.png\" alt=\"\" class=\"wp-image-2310\" style=\"width:643px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/34.Server-2-test-DNS-1024x148.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/34.Server-2-test-DNS-300x43.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/34.Server-2-test-DNS-768x111.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/34.Server-2-test-DNS.png 1043w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Now, begin joining the Domain (GUI): <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Server Manager<\/strong> on the <strong>Server 2<\/strong>, in this example is <strong>VM-WS01<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Local Server<\/strong> in the left pane.<\/li>\n\n\n\n<li>In the <strong>Properties<\/strong> pane, locate <strong>Workgroup<\/strong> and click the adjacent link labeled <strong>Workgroup<\/strong> or <strong>Change<\/strong>.<\/li>\n\n\n\n<li>In the <strong>System Properties<\/strong> window:\n<ul class=\"wp-block-list\">\n<li>Click the <strong>Change<\/strong> button.<\/li>\n\n\n\n<li>Under <strong>Member of<\/strong>, select <strong>Domain<\/strong> and enter the domain name.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Enter credentials for a domain account with the necessary privileges (e.g., a Domain Administrator account).<\/li>\n\n\n\n<li>After the server successfully joins the domain, you\u2019ll see a welcome message.<\/li>\n\n\n\n<li>Restart the server when prompted.<\/li>\n<\/ul>\n\n\n\n<p>See screenshots of these steps below: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"587\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/35.Join-Domain-1-1024x587.png\" alt=\"\" class=\"wp-image-2318\" style=\"width:621px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/35.Join-Domain-1-1024x587.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/35.Join-Domain-1-300x172.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/35.Join-Domain-1-768x440.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/35.Join-Domain-1.png 1049w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"653\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/36.Join-Domain-2.png\" alt=\"\" class=\"wp-image-2320\" style=\"width:408px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/36.Join-Domain-2.png 561w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/36.Join-Domain-2-258x300.png 258w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"634\" height=\"458\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/37.Join-Domain-3.png\" alt=\"\" class=\"wp-image-2322\" style=\"width:407px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/37.Join-Domain-3.png 634w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/37.Join-Domain-3-300x217.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"226\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/38.Join-Domain-4.png\" alt=\"\" class=\"wp-image-2324\" style=\"width:410px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/38.Join-Domain-4.png 468w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/38.Join-Domain-4-300x145.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"253\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/39.Join-Domain-5.png\" alt=\"\" class=\"wp-image-2326\" style=\"width:409px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/39.Join-Domain-5.png 490w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/11\/39.Join-Domain-5-300x155.png 300w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 2: Adding AD DS on Server 2<\/strong><\/p>\n\n\n\n<p>This step is the same as the one we just did on<strong> Server 1<\/strong>, (<strong>Setting Up a New AD Forest (GUI)<\/strong>) including: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Server Manager<\/strong> on the additional server.<\/li>\n\n\n\n<li>Click <strong><strong>Add roles and features<\/strong> <\/strong>in the Dashboard.<\/li>\n\n\n\n<li>Proceed through the wizard:\n<ul class=\"wp-block-list\">\n<li>Select <strong>Role-based or feature-based installation<\/strong> and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li><strong>Server Selection:<\/strong> Choose the local server (<strong>VM-WS01<\/strong>) and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li><strong>Server Roles:<\/strong> Check <strong>Active Directory Domain Services<\/strong>. When prompted, click <strong>Add Features<\/strong>.<\/li>\n\n\n\n<li>Keep the default selections for features and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Review the information on the <strong>AD DS<\/strong> page and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Install<\/strong> on the confirmation page.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Wait for the installation to complete but <strong>do not restart the server yet<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3: Promote the server to act as an additional domain controller<\/strong><\/p>\n\n\n\n<p>After the installation, click the <strong>Promote this server to a domain controller<\/strong> link in the notification area.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"492\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/40.Promote-Additional-DC.png\" alt=\"\" class=\"wp-image-2340\" style=\"width:588px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/40.Promote-Additional-DC.png 826w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/40.Promote-Additional-DC-300x179.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/40.Promote-Additional-DC-768x457.png 768w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/figure><\/div>\n\n\n<p>In the <strong>Deployment Configuration<\/strong> window:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select <strong>Add a domain controller to an existing domain<\/strong>.<\/li>\n\n\n\n<li>Enter the domain name, <strong>&nbsp;techexample.local<\/strong> and provide domain admin credentials if prompted.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"750\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/41.SecondDC-1-1024x750.png\" alt=\"\" class=\"wp-image-2342\" style=\"width:583px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/41.SecondDC-1-1024x750.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/41.SecondDC-1-300x220.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/41.SecondDC-1-768x563.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/41.SecondDC-1.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>In the <strong>Domain Controller Options<\/strong> window:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the desired roles (DNS Server and Global Catalog are selected by default).<\/li>\n\n\n\n<li>Enter the <strong>Directory Services Restore Mode (DSRM)<\/strong> password (used for recovery purposes) and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>See screenshots below:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"757\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/42.SecondDC-2-1024x757.png\" alt=\"\" class=\"wp-image-2344\" style=\"width:591px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/42.SecondDC-2-1024x757.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/42.SecondDC-2-300x222.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/42.SecondDC-2-768x567.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/42.SecondDC-2.png 1057w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Leave default settings for <strong>DNS Options<\/strong> and click <strong>Next<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"759\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/43.SecondDC-3-1024x759.png\" alt=\"\" class=\"wp-image-2346\" style=\"width:590px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/43.SecondDC-3-1024x759.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/43.SecondDC-3-300x222.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/43.SecondDC-3-768x569.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/43.SecondDC-3.png 1054w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>On the <strong>Additional Options<\/strong> page, verify the replication source, our primary DC (192.168.1.100) and click <strong>Next<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"752\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/44.SecondDC-4-1024x752.png\" alt=\"\" class=\"wp-image-2348\" style=\"width:587px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/44.SecondDC-4-1024x752.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/44.SecondDC-4-300x220.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/44.SecondDC-4-768x564.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/44.SecondDC-4.png 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Accept default paths for the database, log files, and SYSVOL folder, and click <strong>Next<\/strong>.<\/p>\n\n\n\n<p>Review the configuration summary and click <strong>Install<\/strong>. The server will restart automatically after the promotion.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"747\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/45.SecondDC-5-1024x747.png\" alt=\"\" class=\"wp-image-2350\" style=\"width:577px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/45.SecondDC-5-1024x747.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/45.SecondDC-5-300x219.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/45.SecondDC-5-768x560.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/45.SecondDC-5.png 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"750\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/46.SecondDC-6-1024x750.png\" alt=\"\" class=\"wp-image-2351\" style=\"width:578px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/46.SecondDC-6-1024x750.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/46.SecondDC-6-300x220.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/46.SecondDC-6-768x562.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/46.SecondDC-6.png 1057w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"758\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/47.SecondDC-7-1024x758.png\" alt=\"\" class=\"wp-image-2353\" style=\"width:578px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/47.SecondDC-7-1024x758.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/47.SecondDC-7-300x222.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/47.SecondDC-7-768x569.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/47.SecondDC-7.png 1052w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>Step 4: Verify the additional domain controllers<\/strong><\/p>\n\n\n\n<p>After rebooting, check to see if the server is listed as a domain controller in <strong>Active Directory Users and Computers<\/strong> under <strong>Domain Controllers<\/strong>. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"326\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/48.SecondDC-8-1024x326.png\" alt=\"\" class=\"wp-image-2356\" style=\"width:581px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/48.SecondDC-8-1024x326.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/48.SecondDC-8-300x96.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/48.SecondDC-8-768x245.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/12\/48.SecondDC-8.png 1173w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">PowerShell Method<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Add another server to the domain<\/strong><\/p>\n\n\n\n<p>Open <strong>PowerShell as Administrator<\/strong> on the additional server (<strong>Server 2<\/strong>), then run the following command to join the domain:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Add-Computer -DomainName \"techexample.local\" -Credential (Get-Credential) -Restart<\/pre>\n\n\n\n<p>After the restart, confirm the server has joined the domain:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">(Get-WmiObject -Class Win32_ComputerSystem).Domain<\/pre>\n\n\n\n<p>The output should display<strong> techexample.local<\/strong><\/p>\n\n\n\n<p><strong>Step 2: Adding AD DS on Server 2<\/strong><\/p>\n\n\n\n<p>Open PowerShell as Administrator and run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools<\/pre>\n\n\n\n<p>Wait for the installation to complete.<\/p>\n\n\n\n<p><strong>Step 3: Promote the Server to an Additional Domain Controller<\/strong><\/p>\n\n\n\n<p>We use the following command to promote <strong>Server 2<\/strong> (<strong>VM-WS01<\/strong>) to be secondary DC:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Install-ADDSDomainController -DomainName \"techexample.local\" `\n                             -InstallDns `\n                             -Credential (Get-Credential techexample\\administrator) `\n                             -DatabasePath \"C:\\Windows\\NTDS\" `\n                             -LogPath      \"C:\\Windows\\NTDS\" `\n                             -SysvolPath   \"C:\\Windows\\SYSVOL\" `\n                             -SafeModeAdministratorPassword (ConvertTo-SecureString \"YourDSRMPasswordHere\" -AsPlainText -Force) `\n                             -Force<\/pre>\n\n\n\n<p>After the command completes, the server will automatically reboot.<\/p>\n\n\n\n<p><strong>Step 4: Verify the Additional Domain Controller<\/strong><\/p>\n\n\n\n<p>After rebooting, use the following PowerShell commands to verify:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Check the domain controller is registered\nGet-ADDomainController -Filter *\n\n# Test replication\nrepadmin \/replsummary\n\n# Test DNS functionality\nnslookup techexample.local<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Verify the Domain Controller and Additional Domain Controller<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>After setting up your Domain Controller (DC) and Additional Domain Controller (ADC), it\u2019s crucial to verify their functionality and ensure proper replication and DNS resolution. Here are several methods to confirm everything is working as expected, you will see some methods we already covered in the earlier section.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify Domain Membership<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>On the Additional DC (<strong>VM-WS01<\/strong>), confirm it has joined the domain by typing this PowerShell commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">(Get-WmiObject -Class Win32_ComputerSystem).Domain\n\n$env:USERDOMAIN<\/pre>\n\n\n\n<p>The output should display the domain name,<strong> techexample.local<\/strong><\/p>\n\n\n\n<p>You can also this command to check whether the Domain Controller is registered:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ADDomainController -Filter *<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Ping the Domain<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>From a client machine or the Domain Controller, test connectivity by typing: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ping techexample.local<\/pre>\n\n\n\n<p>The result should resolve to the IP address of your Domain Controller and Additional DC.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Test DNS Resolution<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>On your Primary DC and Additional DC, use <strong>nslookup <\/strong>to confirm that DNS is resolving correctly. The output should return IP address of your Primary DC (192.168.1.100) and Additional DC (192.168.1.101).<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup techexample.local<\/pre>\n\n\n\n<p>Next, we confirm self-resolution for each DC. On Primary and Secondary DC, type:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup 127.0.0.1<\/pre>\n\n\n\n<p>The output should show <strong>techexample.local<\/strong><\/p>\n\n\n\n<p>Tool like <strong>dcdiag <\/strong>can be used to monitor DNS health:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dcdiag \/test:dns<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify AD DS Health<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>On each DC, use the <strong>dcdiag<\/strong> command to run a comprehensive diagnostic. Look for <strong>PASS<\/strong> messages, especially for Connectivity, Replication, DNS health:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dcdiag<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify Replication<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Check the replication status between the DC and Additional DC using command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">repadmin \/replsummary<\/pre>\n\n\n\n<p>The output should show no errors and that replication is occurring successfully.<\/p>\n\n\n\n<p>You can also have a detailed view of replication partners using command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">repadmin \/showrepl<\/pre>\n\n\n\n<p>The output should show replication status for each naming context.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Test Authentication<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Log in to a domain-joined client or server using the format: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>techexample.local\\&lt;username&gt;<\/li>\n\n\n\n<li>username@techexample.local<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify SYSVOL and NETLOGON Sharing<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Confirm the <strong>SYSVOL <\/strong>and <strong>NETLOGON <\/strong>shares are active on both DCs. If you can access these folders, the domain controller is sharing Group Policy and logon scripts properly.<\/p>\n\n\n\n<p>Run the following commands on both DCs. The output should display the <strong>SYSVOL <\/strong>and <strong>NETLOGON <\/strong>shares:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">net share<\/pre>\n\n\n\n<p>We can further check replication of <strong>SYSVOL<\/strong> folder by creating a test file in the <strong>SYSVOL <\/strong>folder of the primary DC:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">C:\\Windows\\SYSVOL\\domain\\scripts\\testfile.txt<\/pre>\n\n\n\n<p>Verify that it replicates to the SYSVOL folder on the additional DC.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Confirm Global Catalog Role<\/h4>\n\n\n\n<p><\/p>\n\n\n\n<p>Verify if the additional DC (<strong>VM-WS01<\/strong> )has been promoted as a Global Catalog server. Open PowerShell and run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ADDomainController -Filter {IsGlobalCatalog -eq $true}<\/pre>\n\n\n\n<p>The output should list both DCs if the ADC is a Global Catalog server.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>To sum up, understand the structure of an Active Directory Forest, the role of the forest root domain, and the importance of having multiple domain controllers are crucial for maintaining a secure and resilient network. Through this blog, we explored these concepts and demonstrated how to implement them with a hands-on lab.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploring key concepts like AD forests, root domains, and domain controller, along with setting up an AD forest and installing an additional domain controller<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,18],"tags":[83,82,27],"class_list":["post-2158","post","type-post","status-publish","format-standard","hentry","category-it","category-windowserver","tag-active-directory","tag-domain-controller","tag-windows-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/comments?post=2158"}],"version-history":[{"count":250,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2158\/revisions"}],"predecessor-version":[{"id":2462,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2158\/revisions\/2462"}],"wp:attachment":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/media?parent=2158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/categories?post=2158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/tags?post=2158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}