
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Danish, Author at TECHNIG</title>
	<atom:link href="https://www.technig.com/author/danish/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/author/danish/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sun, 16 Jul 2023 00:36:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Danish, Author at TECHNIG</title>
	<link>https://www.technig.com/author/danish/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Create a Child Domain in Server 2022 Using PowerShell</title>
		<link>https://www.technig.com/create-a-child-domain-in-server-2022-using-powershell/</link>
					<comments>https://www.technig.com/create-a-child-domain-in-server-2022-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Sun, 16 Jul 2023 00:36:27 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Active Directory Domain Services]]></category>
		<category><![CDATA[Add a Child Domain]]></category>
		<category><![CDATA[Child Domain]]></category>
		<category><![CDATA[Child Domain Configuration]]></category>
		<category><![CDATA[Create a Child Domain]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=18189</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create a child Domain Using Windows PowerShell" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>In the previous article, we described how to create a child domain using the Server Manager console. In this article, we will show you how to do the same thing using Windows PowerShell. PowerShell is a powerful tool that can be used to automate many tasks in Windows Server. It is also a great way [&#8230;]</p>
<p>The post <a href="https://www.technig.com/create-a-child-domain-in-server-2022-using-powershell/">Create a Child Domain in Server 2022 Using PowerShell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create a child Domain Using Windows PowerShell" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>In the previous article, we described <a href="https://www.technig.com/create-a-child-domain-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">how to create a child domain</a> using the Server Manager console. In this article, we will show you how to do the same thing using Windows PowerShell. PowerShell is a powerful tool that can be used to automate many tasks in Windows Server. It is also a great way to create child domains, as it can save you time and effort.</p>



<p>To install AD DS and create a forest, you can follow the instructions in the article &#8220;<a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/" target="_blank" rel="noreferrer noopener">Install Active Directory On Windows Server 2022 Using PowerShell</a>&#8220;.</p>



<h2 class="wp-block-heading">Steps to Create a Child Domain Using PowerShell</h2>



<p>The creation and configuration of a child domain is part of the post-installation process of Active Directory Domain Services (AD DS). This process also includes promoting the server to a domain controller. First, the AD DS role must be added to the server. Once the role is added, you can create and add a child domain to the parent domain. </p>



<h3 class="wp-block-heading">Add AD DS Role Using Windows PowerShell</h3>



<p>Follow the steps below to add the Active Directory Domain Services (AD DS). </p>



<ol class="wp-block-list">
<li>Open <strong>Windows PowerShell</strong> as administrator.
<ul class="wp-block-list">
<li>If you are working with Windows Server Desktop Experience, right-click on <strong>Windows PowerShell</strong> in the <strong>Start Menu</strong> and select <strong>Run as Administrator</strong>. </li>



<li>If you are working with Windows Server core, run <code>powershell</code> the command in the command prompt. It opens PowerShell. Once the PowerShell is opened, use <code>Start-Process PowerShell -Verb runAs</code> to open it as administrator.</li>
</ul>
</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="801" height="214" src="https://www.technig.com/wp-content/uploads/2022/05/1-7.jpg" alt="Opening PowerShell as Administrator from Command Prompt" class="wp-image-18199" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-7.jpg 801w, https://www.technig.com/wp-content/uploads/2022/05/1-7-300x80.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/1-7-768x205.jpg 768w" sizes="(max-width: 801px) 100vw, 801px" /><figcaption class="wp-element-caption">Opening PowerShell as Administrator from Command Prompt</figcaption></figure></div>


<ol class="wp-block-list" start="2">
<li>Before installing the AD DS role, let&#8217;s first see if it is available. To do so, run <code>Get-WindowsFeature AD-Domain-Services</code>. As shown in the below command, it is not already installed and it is available. </li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="982" height="212" src="https://www.technig.com/wp-content/uploads/2022/05/2-6.jpg" alt="Checking AD DS Role Status Using PowerShell" class="wp-image-18205" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-6.jpg 982w, https://www.technig.com/wp-content/uploads/2022/05/2-6-300x65.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/2-6-768x166.jpg 768w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption class="wp-element-caption">Checking AD DS Role Status Using PowerShell</figcaption></figure></div>


<ol class="wp-block-list" start="3">
<li>To install the AD DS role, run the <code>Install-WindowsFeature AD-Domain-Services -IncludeManagementTools</code> command. Wait for a moment until it finishes the installation, and it will show the result as shown in the picture below. </li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="804" height="216" src="https://www.technig.com/wp-content/uploads/2022/05/3-5.jpg" alt="Installing AD DS Role Using PowerShell" class="wp-image-18208" srcset="https://www.technig.com/wp-content/uploads/2022/05/3-5.jpg 804w, https://www.technig.com/wp-content/uploads/2022/05/3-5-300x81.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/3-5-768x206.jpg 768w" sizes="(max-width: 804px) 100vw, 804px" /><figcaption class="wp-element-caption">Installing AD DS Role Using PowerShell</figcaption></figure></div>


<p>The Active Directory Domain Service role is by now added to our Server. You can verify it using the <code>Get-Windows-Feature AD-Domain-Services</code> command. If it is properly installed, It will not be available for installation anymore. Now, in the second section, let&#8217;s go through the steps to creating and configuring a Child Domain using Windows Powershell in Server 2022. </p>



<h3 class="wp-block-heading">Create a Child Domain Using Windows PowerShell </h3>



<p>Now that we have the AD DS role added, we can create and configure a Child Domain using PowerShell in the AD DS post-installation process. Below are the steps. </p>



<ol class="wp-block-list">
<li>Import AD DS module. To do so, run the <code>Import-Module ADDSDeployment</code> command. </li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="754" height="107" src="https://www.technig.com/wp-content/uploads/2022/05/4-4.jpg" alt="Importing AD DS Deployment Module Using PowerShell" class="wp-image-18211" srcset="https://www.technig.com/wp-content/uploads/2022/05/4-4.jpg 754w, https://www.technig.com/wp-content/uploads/2022/05/4-4-300x43.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/4-4-750x107.jpg 750w" sizes="(max-width: 754px) 100vw, 754px" /><figcaption class="wp-element-caption">Importing AD DS Deployment Module Using PowerShell</figcaption></figure></div>


<ol class="wp-block-list" start="2">
<li>Provide the credential to specify the user name and password of an admin used to accomplish this configuration. Use it only if you are not logged in with administrative privilege. To do so, use the <strong>Get-credential</strong> cmdlet and fill the pop-up window with an administrator&#8217;s username and password.  </li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="895" height="355" src="https://www.technig.com/wp-content/uploads/2022/05/5-2.jpg" alt="Specifying Administrative Credential Using PowerShell" class="wp-image-18214" srcset="https://www.technig.com/wp-content/uploads/2022/05/5-2.jpg 895w, https://www.technig.com/wp-content/uploads/2022/05/5-2-300x119.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/5-2-768x305.jpg 768w" sizes="(max-width: 895px) 100vw, 895px" /><figcaption class="wp-element-caption">Specifying Administrative Credential Using PowerShell</figcaption></figure></div>


<ol class="wp-block-list" start="3">
<li>To create a Child Domain, use the <strong>Install-ADDSDomain</strong> cmdlet followed by the following mandatory arguments and their values.
<ul class="wp-block-list">
<li><strong>-DomainType </strong>followed by the &#8220;<strong>ChildDomain</strong>&#8221; value.</li>



<li><strong>-NewDomainName </strong>followed by the single-labeled (left-most part of a domain) child domain name which is &#8220;<strong>ca</strong>&#8221; in our example.</li>



<li>&#8211;<strong>ParentDomainName</strong> followed by the Fully Qualified Domain Name (FQDN) of the parent which is &#8220;<strong>technig.lab</strong>&#8221; in our example.</li>
</ul>
</li>
</ol>



<p><strong>Note:</strong> the above arguments are the mandatory arguments that we must specify when we create a Child Domain. For more optional parameters click <a href="https://docs.microsoft.com/en-us/powershell/module/addsdeployment/install-addsdomain?view=windowsserver2022-ps" target="_blank" rel="noreferrer noopener nofollow">HERE</a>. </p>



<p>So, considering the cmdlet and the required arguments, our whole line of code becomes: <code>Install-ADDSDomain -DomainType ChildDomain -NewDomainName ca -ParentDomainName technig.lab</code></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="818" height="106" src="https://www.technig.com/wp-content/uploads/2022/05/6-2.jpg" alt="Creating a New Child Domain Using PowerShell" class="wp-image-18216" srcset="https://www.technig.com/wp-content/uploads/2022/05/6-2.jpg 818w, https://www.technig.com/wp-content/uploads/2022/05/6-2-300x39.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/6-2-768x100.jpg 768w" sizes="(max-width: 818px) 100vw, 818px" /><figcaption class="wp-element-caption">Creating a New Child Domain Using PowerShell</figcaption></figure></div>


<ol class="wp-block-list" start="4">
<li>Now, it prompts us to specify the <strong>safe mode administrator password</strong>. Enter the password and confirm it. Then, type down <strong>Y </strong>and press enter. Wait for a while until it finishes the Child Domain installation and configuration process. Once the process completes, it will restart the machine. </li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="988" height="234" src="https://www.technig.com/wp-content/uploads/2022/05/7-1.jpg" alt="Setting DSRM Password and Confirming the Configuration " class="wp-image-18217" srcset="https://www.technig.com/wp-content/uploads/2022/05/7-1.jpg 988w, https://www.technig.com/wp-content/uploads/2022/05/7-1-300x71.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/7-1-768x182.jpg 768w" sizes="(max-width: 988px) 100vw, 988px" /><figcaption class="wp-element-caption">Setting DSRM Password and Confirming the Configuration </figcaption></figure></div>


<p>Once the machine restarts, the Child Domain is created on it. To this end, we are all done with the child domain configuration. </p>



<h2 class="wp-block-heading">Steps on how to create a child domain in Server 2022 using PowerShell:</h2>



<ol class="wp-block-list">
<li>Open PowerShell as an administrator.</li>



<li>Run the following command to install the ADDSDeployment module:</li>
</ol>



<p><code>Install-Module ADDSDeployment</code></p>



<ol class="wp-block-list" start="3">
<li>Create a variable to store the parent domain name and the child domain name. For example:</li>
</ol>



<p><code>$parentDomainName = "technig.com"<br>$childDomainName = "lab.technig.com"</code></p>



<ol class="wp-block-list" start="4">
<li>Run the following command to create the child domain:</li>
</ol>



<p><code>Install-ADDSDomain -NewDomainName $childDomainName -ParentDomainName $parentDomainName</code></p>



<ol class="wp-block-list" start="5">
<li>Enter the SafeModeAdministratorPassword when prompted.</li>



<li>The child domain will be created.</li>
</ol>



<p>Here is an explanation of the command:</p>



<ul class="wp-block-list">
<li><code>Install-ADDSDomain</code>&nbsp;is the PowerShell cmdlet that creates an Active Directory domain.</li>



<li><code>-NewDomainName</code>&nbsp;specifies the name of the child domain.</li>



<li><code>-ParentDomainName</code>&nbsp;specifies the name of the parent domain.</li>



<li><code>-SafeModeAdministratorPassword</code>&nbsp;specifies the password for the Directory Services Restore Mode (DSRM).</li>
</ul>



<p>Here are some additional details that might be helpful for a beginner:</p>



<ul class="wp-block-list">
<li>The child domain name must be a single-label domain name.</li>



<li>The child domain name must not already exist.</li>



<li>The parent domain name must be a valid domain name.</li>



<li>The SafeModeAdministratorPassword must be a strong password.</li>
</ul>



<h2 class="wp-block-heading">Summary</h2>



<p>In this article, we installed the Active Directory Domain Services (AD DS) role on a Windows Server 2022 server using PowerShell. We then created a child domain using PowerShell cmdlets. The steps involved in creating a child domain using PowerShell are as follows:</p>



<ul class="wp-block-list">
<li>Install the ADDSDeployment module.</li>



<li>Create variables to store the parent domain name and the child domain name.</li>



<li>Run the Install-ADDSDomain cmdlet to create the child domain.</li>



<li>Enter the SafeModeAdministratorPassword when prompted.</li>
</ul>



<p>I hope you found this article helpful. Please share your thoughts and queries in the comment section below.</p>
<p>The post <a href="https://www.technig.com/create-a-child-domain-in-server-2022-using-powershell/">Create a Child Domain in Server 2022 Using PowerShell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/create-a-child-domain-in-server-2022-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18189</post-id>	</item>
		<item>
		<title>How to change DNS zone settings in Windows Server 2022?</title>
		<link>https://www.technig.com/change-dns-zone-settings-windows-server-2022/</link>
					<comments>https://www.technig.com/change-dns-zone-settings-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Sat, 03 Sep 2022 04:18:06 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ADI Replication Scope]]></category>
		<category><![CDATA[Change DNS Settings]]></category>
		<category><![CDATA[Change DNS Zone Type]]></category>
		<category><![CDATA[Configure DNS Server]]></category>
		<category><![CDATA[DNS Dynamic Update]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Server Configuration]]></category>
		<category><![CDATA[DNS Zone]]></category>
		<category><![CDATA[DNS Zone Configuration]]></category>
		<category><![CDATA[DNS Zone Settings]]></category>
		<category><![CDATA[DNS Zone Type]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17959</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Detailed Instruction to Change a DNS Zone Settings" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As part of our DNS server guides, this article covers how to change the DNS zone settings in Windows Server 2022 after creating and configuring DNS zones. It is a vitally important and often required skill to know how to modify DNS zone configuration. Among other configurations, the three most often required settings that we [&#8230;]</p>
<p>The post <a href="https://www.technig.com/change-dns-zone-settings-windows-server-2022/">How to change DNS zone settings in Windows Server 2022?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Detailed Instruction to Change a DNS Zone Settings" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As part of our <a href="https://www.cloudflare.com/en-gb/learning/dns/what-is-a-dns-server/" target="_blank" rel="noreferrer noopener">DNS </a><a href="https://www.cloudflare.com/en-gb/learning/dns/what-is-a-dns-server/" target="_blank" rel="noreferrer noopener nofollow">server </a>guides, this article covers how to change the DNS zone settings in Windows Server 2022 after creating and configuring DNS zones. It is a vitally important and often required skill to know how to modify DNS zone configuration. Among other configurations, the three most often required settings that we need to change are the DNS zone type, ADI zone replication scope, and DNS zone dynamic updates. Hence, with a step-by-step approach, we will cover these three topics throughout this article, each in a separate section.</p>



<p>Related articles: </p>



<ol class="wp-block-list"><li><a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener nofollow">How to Install DNS In Server 2022 Using Server Manager And Powershell?</a></li><li><a href="https://technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Configure DNS Forwarder And DNS Conditional Forwarder In Server 2022.</a></li><li><a href="https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Detailed step-by-step DNS zone configuration. </a></li></ol>



<h2 class="wp-block-heading">How to Change a DNS Zone Type?</h2>



<p>The DNS zone type definition is the very key setting when we create and configure a DNS zone. It specifies the zone&#8217;s function and further configurations options accordingly. It is also possible to change the zone type of a specific zone after it is created and configured. As part of changing DNS zone settings, we can change it anytime we need to in Windows Server 2022 using the below simple steps. </p>



<p><strong>1. </strong>Press the <strong>Windows Key + R </strong>Keys on your keyboard to open the <strong>Run </strong>dialogue box.</p>



<p><strong>2.</strong> Type in<code>dnsmgmt.msc</code>and press <strong>Enter</strong>, consequently.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg" alt="Opening DNS Manager Using RUN Command" class="wp-image-17724" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg 586w, https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run-300x157.jpg 300w" sizes="(max-width: 586px) 100vw, 586px" /><figcaption>Opening DNS Manager Using RUN Command</figcaption></figure></div>


<p><strong>3.</strong> On the <strong>DNS Manager </strong>console, right-click on the zone you want to change the setting and click on the <strong>Properties </strong>option from the list. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-8.jpg" alt="Going to the Properties of a Zone" class="wp-image-17735" width="700" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-8.jpg 841w, https://www.technig.com/wp-content/uploads/2022/04/1-8-300x195.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-8-768x500.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/1-8-210x136.jpg 210w" sizes="(max-width: 841px) 100vw, 841px" /><figcaption>Going to the Properties of a Zone</figcaption></figure></div>


<p><strong>4. </strong>Select the <strong>General </strong>tab in the zone Properties and click on the <strong>Change </strong>button associated with the <strong>Zone Type,</strong> as shown in the below picture. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/1.jpg" alt="Changing DNS Zone type " class="wp-image-17968" width="450" srcset="https://www.technig.com/wp-content/uploads/2022/05/1.jpg 398w, https://www.technig.com/wp-content/uploads/2022/05/1-244x300.jpg 244w" sizes="(max-width: 398px) 100vw, 398px" /><figcaption>Changing DNS Zone type </figcaption></figure></div>


<p><strong>5. </strong>On the <strong>Change Zone Type </strong>window, choose the new zone type from the available zone types. When it is all set, click on the <strong>OK </strong>button. Then, click on the <strong>Yes </strong>button on the warning window. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/2.jpg" alt="Change zone type screen to change the DNS Zone type" class="wp-image-17969" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/2.jpg 473w, https://www.technig.com/wp-content/uploads/2022/05/2-300x203.jpg 300w" sizes="(max-width: 473px) 100vw, 473px" /><figcaption>Change the zone type screen to change the DNS Zone type</figcaption></figure></div>


<p>That is all about how to change a DNS zone type. Straightforward! Now, let&#8217;s go with how we can change the replication scope for an Active Directory Integrated (ADI) DNS zone. </p>



<h2 class="wp-block-heading">How to Change an ADI Zone Replication Scope?</h2>



<p>If you already know the difference between the DNS zone types, you know that the replication scope setting is associated only with an Active Directory DNS zone. Similar to the above section, we can change the replication scope of an ADI zone from the <strong>Properties </strong>window of the zone. Let&#8217;s go with the steps. </p>



<p><strong>1. </strong>Open <strong>DNS Manager </strong>console (steps 1 and 2 of the above section) </p>



<p><strong>2.</strong> Right-click on the zone you want to change its replication scope and click on the <strong>Properties </strong>option. (step 3 of the above section) </p>



<p><strong>3. </strong>Select the <strong>General </strong>tab and click on the <strong>Change </strong>button next to the <strong>Replication, </strong>as shown in the below picture. This option is available only in the ADI zone and not in other zone types. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/1-1.jpg" alt="Changing ADI DNS Zone Replication Scope" class="wp-image-17970" width="450" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-1.jpg 395w, https://www.technig.com/wp-content/uploads/2022/05/1-1-242x300.jpg 242w" sizes="(max-width: 395px) 100vw, 395px" /><figcaption>Changing ADI DNS Zone Replication Scope</figcaption></figure></div>


<p><strong>4.</strong> Now, on the <strong>Change Zone Replication Scope </strong>window, choose the replication scope for your ADI zone. Once set, click on <strong>OK</strong>. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/2-1.jpg" alt="Change Zone Replication Scope Options to Choose " class="wp-image-17971" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-1.jpg 436w, https://www.technig.com/wp-content/uploads/2022/05/2-1-300x205.jpg 300w" sizes="(max-width: 436px) 100vw, 436px" /><figcaption>Change Zone Replication Scope Options to Choose </figcaption></figure></div>


<p>With four simple steps, we changed the ADI DNS zone&#8217;s replication scope in Windows Server 2022. </p>



<h2 class="wp-block-heading">How to Change a DNS Zone Dynamic Update?</h2>



<p>Before straightly going to the steps to change the dynamic update of the DNS zone, it is necessary to know that this setting is available only with the primary and ADI zones and not with the Secondary and Stub zones. Similar to the above two sections, we can modify this setting in the <strong>Properties </strong>window of the zone. Let&#8217;s walk through all the steps. </p>



<p><strong>1.</strong> Open up the <strong>DNS Manager</strong> console as described in the above sections. </p>



<p><strong>2. </strong>On the DNS Manager console, right-click on the zone you want to change its dynamic updates settings and click on the <strong>Properties </strong>option. ( step 3 of the first section) </p>



<p><strong>3.</strong> On the <strong>General </strong>tab of the zone properties, expand the options associated with the <strong>Dynamic updates </strong>and select the appropriate option (see the picture below). Once selected, click on <strong>OK </strong>to save the setting and exit the window. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/1-3.jpg" alt="Changing Dynamic Update setting of the DNS Zone" class="wp-image-17973" width="450" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-3.jpg 396w, https://www.technig.com/wp-content/uploads/2022/05/1-3-244x300.jpg 244w" sizes="(max-width: 396px) 100vw, 396px" /><figcaption>Changing the Dynamic Update setting of the DNS Zone</figcaption></figure></div>


<p>That is all we need to do to change the Dynamic Update settings of a DNS zone. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>So far, in this step-by-step article, we have covered the three most required settings of a DNS zone in Windows Server 2022. We discussed the steps to change a DNS zone type first. Then, we went through the guide to change the replication scope setting of an ADI zone. Finally, we covered the instructions to modify the dynamic update for the Primary and ADI DNS zones. </p>



<p>In the end, I hope this article could provide you with helpful instructions and insights. Please feel free to share your thoughts and further questions in the comment section below. </p>
<p>The post <a href="https://www.technig.com/change-dns-zone-settings-windows-server-2022/">How to change DNS zone settings in Windows Server 2022?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/change-dns-zone-settings-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17959</post-id>	</item>
		<item>
		<title>Deny Users Access to PC Settings and Control Panel using Group Policy</title>
		<link>https://www.technig.com/deny-users-access-to-pc-settings-and-control-panel-using-group-policy/</link>
					<comments>https://www.technig.com/deny-users-access-to-pc-settings-and-control-panel-using-group-policy/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Tue, 07 Jun 2022 10:37:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Deny Access to Control Panel]]></category>
		<category><![CDATA[Deny Access to PC Settings]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Group Policy Guide]]></category>
		<category><![CDATA[Group Policy Management]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Restrict Users with Group Policy]]></category>
		<category><![CDATA[User Account Profile]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=18299</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Deny Users Access to Control Panel and PC Settings Using Group Policy" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>In a domain-joined networked environment, we always need to restrict users&#8217; access to most PC settings and resources. It is necessary to do so for security and safety reasons. One crucial restriction that we always need to apply is to deny users access to PC Settings and Control Panel. And that is what this article [&#8230;]</p>
<p>The post <a href="https://www.technig.com/deny-users-access-to-pc-settings-and-control-panel-using-group-policy/">Deny Users Access to PC Settings and Control Panel using Group Policy</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Deny Users Access to Control Panel and PC Settings Using Group Policy" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>In a domain-joined networked environment, we always need to restrict users&#8217; access to most PC settings and resources. It is necessary to do so for security and safety reasons. One crucial restriction that we always need to apply is to deny users access to PC Settings and Control Panel. And that is what this article is about. More specifically, this article covers the detailed steps to preventing users&#8217; access to the Control Panel and PC Settings using <a href="https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831791(v=ws.11)" target="_blank" rel="noreferrer noopener nofollow">Group Policy </a>on <a href="https://www.technig.com/free-download-windows-server-2022-iso-file/" target="_blank" rel="noreferrer noopener nofollow">Windows Server 2022</a>. </p>



<p>In our example, our domain controller machine runs Windows Server 2022, on which we create the group policy. We create an Organization Unit (OU) level group policy directly on the (OU) that contains the users to which we apply the policy. </p>



<p>You may also like to read <a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/" target="_blank" rel="noreferrer noopener nofollow">Install Active Directory On Windows Server 2022 Using PowerShell</a>. </p>



<h2 class="wp-block-heading">Steps to Deny Access to PC Settings and Control Panel</h2>



<p>As we described in the scenario earlier, we create the policy that is linked to an OU, which contains the users to which we apply the restriction. We can create the group policy first and link that to the OU, or we can create the group policy directly on the OU. Either way ends up with the same result. However, we go with the second approach in our example. That being said, let&#8217;s go with the steps. </p>



<ol class="wp-block-list"><li>Press down the<strong> Windows key + R</strong> keys on your keyboard to open the <strong>Run </strong>dialogue box.</li><li>Type in <code>gpmc.msc </code>and press <strong>Enter </strong>to open the <strong>Group Policy Management</strong> console. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/1-10.jpg" alt="Opening Group Policy Management Console from the Run" class="wp-image-18312" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-10.jpg 494w, https://www.technig.com/wp-content/uploads/2022/05/1-10-300x162.jpg 300w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>Opening Group Policy Management Console from the Run</figcaption></figure></div>


<ol class="wp-block-list" start="3"><li>Right-click on the OU to which you want to associate the group policy. Then, select <strong>Create a GPO in this domain,</strong>&#8230; option. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="749" height="464" src="https://www.technig.com/wp-content/uploads/2022/05/2-8.jpg" alt="Creating a New Group Policy Object" class="wp-image-18313" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-8.jpg 749w, https://www.technig.com/wp-content/uploads/2022/05/2-8-300x186.jpg 300w" sizes="(max-width: 749px) 100vw, 749px" /><figcaption>Creating a New Group Policy Object</figcaption></figure></div>


<ol class="wp-block-list" start="4"><li>Put a name for the Group Policy Object (GPO) in the relevant box, and click <strong>OK</strong>. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/3-7.jpg" alt="Naming the New Group Policy Object" class="wp-image-18314" width="400" srcset="https://www.technig.com/wp-content/uploads/2022/05/3-7.jpg 385w, https://www.technig.com/wp-content/uploads/2022/05/3-7-300x135.jpg 300w" sizes="(max-width: 385px) 100vw, 385px" /><figcaption>Naming the New Group Policy Object</figcaption></figure></div>


<ol class="wp-block-list" start="5"><li>Once the GPO is created, right-click on it, and select <strong>Edit </strong>from the context menu. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="806" height="347" src="https://www.technig.com/wp-content/uploads/2022/05/4-5.jpg" alt="Editing the Group Policy Object" class="wp-image-18315" srcset="https://www.technig.com/wp-content/uploads/2022/05/4-5.jpg 806w, https://www.technig.com/wp-content/uploads/2022/05/4-5-300x129.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/4-5-768x331.jpg 768w" sizes="(max-width: 806px) 100vw, 806px" /><figcaption>Editing the Group Policy Object</figcaption></figure></div>


<ol class="wp-block-list" start="6"><li>On the <strong>Group Policy Management Editor</strong> window, expand <strong>Policies</strong> under <strong>User Configuration</strong>. Then, expand the <strong>Administrative Template</strong> and click on <strong>Control Panel.</strong> Finally, double-click on <strong>Prohibit access to Control Panel and PC settings.</strong> </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="921" height="473" src="https://www.technig.com/wp-content/uploads/2022/05/5-3.jpg" alt="GPO for Preventing PC Settings and Control Panel " class="wp-image-18316" srcset="https://www.technig.com/wp-content/uploads/2022/05/5-3.jpg 921w, https://www.technig.com/wp-content/uploads/2022/05/5-3-300x154.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/5-3-768x394.jpg 768w" sizes="(max-width: 921px) 100vw, 921px" /><figcaption>GPO for Preventing PC Settings and Control Panel </figcaption></figure></div>


<ol class="wp-block-list" start="7"><li>On the configuration window, check the <strong>Enabled </strong>option. Then, click <strong>OK</strong>, and close the <strong>Group Policy Management Editor</strong> window. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="677" height="624" src="https://www.technig.com/wp-content/uploads/2022/05/6-3.jpg" alt="Enabling the Group Policy Object" class="wp-image-18317" srcset="https://www.technig.com/wp-content/uploads/2022/05/6-3.jpg 677w, https://www.technig.com/wp-content/uploads/2022/05/6-3-300x277.jpg 300w" sizes="(max-width: 677px) 100vw, 677px" /><figcaption>Enabling the Group Policy Object</figcaption></figure></div>


<p>To this end, we have created the group policy to prevent users&#8217; access to the Control Panel and PC settings. We created it directly linked to the OU that contains user accounts that we want to restrict. So, it is all done. To verify it, go with the next section. </p>



<h3 class="wp-block-heading">Verifying the Above Group Policy Configuration</h3>



<p>To check the above restriction, we need to log in with a user account that is a member of the OU to which we linked the group policy. Then, we update the group policy and try to open the Control Panel and PC Settings. See the below steps. </p>



<ol class="wp-block-list"><li>Login to the client&#8217;s computer with a user account that is a member of the OU to which you linked the restriction. </li><li>Run <code>gpupdate /force</code> in the <strong>Run </strong>dialog box to perform group policy updates. Wait for a while until the group policy completes. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="479" height="219" src="https://www.technig.com/wp-content/uploads/2022/05/7-2.jpg" alt="Updating Group Policy using Run" class="wp-image-18318" srcset="https://www.technig.com/wp-content/uploads/2022/05/7-2.jpg 479w, https://www.technig.com/wp-content/uploads/2022/05/7-2-300x137.jpg 300w" sizes="(max-width: 479px) 100vw, 479px" /><figcaption>Updating Group Policy using Run</figcaption></figure></div>


<ol class="wp-block-list" start="3"><li>Once the group policy gets updated, try to open the Control Panel or PC Settings. It doesn&#8217;t open, and you will face the pop-up window shown in the below pic. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="604" height="199" src="https://www.technig.com/wp-content/uploads/2022/05/8-1.jpg" alt="Restriction Notification When Opening the Control Panel or PC Settings. " class="wp-image-18319" srcset="https://www.technig.com/wp-content/uploads/2022/05/8-1.jpg 604w, https://www.technig.com/wp-content/uploads/2022/05/8-1-300x99.jpg 300w" sizes="(max-width: 604px) 100vw, 604px" /><figcaption>Restriction Notification When Opening the Control Panel or PC Settings. </figcaption></figure></div>


<p>That is all we need to do to check how the restriction we configured works and if it is applied correctly. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>It is a common setting in a domain environment to deny users access to the Control Panel and PC settings. It is essential for security and safety reasons. As the steps discussed above, we can apply this restriction simply by defining and configuring a group policy object to an OU that contains the target users. </p>



<p>In the end, I hope you found this article helpful. Do not hesitate to share your thoughts and queries in the comment section. </p>
<p>The post <a href="https://www.technig.com/deny-users-access-to-pc-settings-and-control-panel-using-group-policy/">Deny Users Access to PC Settings and Control Panel using Group Policy</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/deny-users-access-to-pc-settings-and-control-panel-using-group-policy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18299</post-id>	</item>
		<item>
		<title>How to Prevent  Access to Removable Storage Media Using Group Policy?</title>
		<link>https://www.technig.com/prevent-access-to-removable-storage-media-using-group-policy/</link>
					<comments>https://www.technig.com/prevent-access-to-removable-storage-media-using-group-policy/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Tue, 31 May 2022 10:47:23 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Blocking Removable Storage Media]]></category>
		<category><![CDATA[Blocking USB Drives]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Group Policy Guide]]></category>
		<category><![CDATA[Group Policy Management]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Restricting Users Access]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=18346</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Prevent Users Access to Removable Storage Media in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>System admins have the ability to prevent/block users&#8217; access to all removable storage media drives. Such restrictions play an important role in the security and safety of a networked environment. And they are very common and most often used inside almost all organizations. Additionally, the tool that helps us create such restrictions is the Group [&#8230;]</p>
<p>The post <a href="https://www.technig.com/prevent-access-to-removable-storage-media-using-group-policy/">How to Prevent  Access to Removable Storage Media Using Group Policy?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Prevent Users Access to Removable Storage Media in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-1-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>System admins have the ability to prevent/block users&#8217; access to all removable storage media drives. Such restrictions play an important role in the security and safety of a networked environment. And they are very common and most often used inside almost all organizations. Additionally, the tool that helps us create such restrictions is the <a href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/gpmc/group-policy-management-console-portal" target="_blank" rel="noreferrer noopener nofollow">Group Policy Management Console</a> (GPMC). It is a feature that we add along with the <a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/" target="_blank" rel="noreferrer noopener nofollow">AD DS role installation</a>. That all being said, this article covers a step-by-step guide to preventing domain-joined users&#8217; access to removable storage media drives using group policy in Windows Server 2022. </p>



<p>In our example, the domain controller machine runs Windows Server 2022 Standard. Additionally, we define the group policy directly on an Organizational Unit (OU) that contains the target users. So, we have already created an OU and moved the target user(s) into it.</p>



<p>You may also like to read <a href="https://www.technig.com/tag/dns-server/">DNS Server Guides</a> and<a href="https://technig.com/tag/dhcp-server/" target="_blank" rel="noreferrer noopener nofollow"> DHCP Server Articles.</a> </p>



<h2 class="wp-block-heading">Steps to Prevent Access to Removable Media</h2>



<p>With the above scenario in mind, it is a straightforward process to prevent users&#8217; access to removable media.</p>



<ol class="wp-block-list"><li>Press down the <strong>Windows Key + R</strong> on your keyboard. It opens the <strong>Run </strong>dialogue box. </li><li>Type in <code>gpmc.msc</code> and press the <strong>enter</strong>. It opens the <strong>Group Policy Management</strong> (GPM) console.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="494" height="267" src="https://www.technig.com/wp-content/uploads/2022/05/1-10.jpg" alt="Opening Group Policy Management Console from the Run" class="wp-image-18312" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-10.jpg 494w, https://www.technig.com/wp-content/uploads/2022/05/1-10-300x162.jpg 300w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>Opening Group Policy Management Console from the Run</figcaption></figure></div>


<ol class="wp-block-list" start="3"><li>On the group policy management console, right-click on the OU that contains the target users. Then, select <strong>Create a GPO</strong>&#8230; from the context menu. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="808" height="350" src="https://www.technig.com/wp-content/uploads/2022/05/1-11.jpg" alt="Creating a Group Policy Associated With an OU" class="wp-image-18361" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-11.jpg 808w, https://www.technig.com/wp-content/uploads/2022/05/1-11-300x130.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/1-11-768x333.jpg 768w" sizes="(max-width: 808px) 100vw, 808px" /><figcaption>Creating a Group Policy Associated With an OU</figcaption></figure></div>


<ol class="wp-block-list" start="4"><li>Type a name for the new GPO. Then, click <strong>OK </strong>to continue. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="382" height="176" src="https://www.technig.com/wp-content/uploads/2022/05/2-9.jpg" alt="Naming the New GPO" class="wp-image-18362" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-9.jpg 382w, https://www.technig.com/wp-content/uploads/2022/05/2-9-300x138.jpg 300w" sizes="(max-width: 382px) 100vw, 382px" /><figcaption>Naming the New GPO</figcaption></figure></div>


<ol class="wp-block-list" start="5"><li>Right-click on the GPO that you created. Then, select <strong>Edit </strong>from the context menu. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="808" height="337" src="https://www.technig.com/wp-content/uploads/2022/05/3-8.jpg" alt="Editing the GPO" class="wp-image-18363" srcset="https://www.technig.com/wp-content/uploads/2022/05/3-8.jpg 808w, https://www.technig.com/wp-content/uploads/2022/05/3-8-300x125.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/3-8-768x320.jpg 768w" sizes="(max-width: 808px) 100vw, 808px" /><figcaption>Editing the GPO</figcaption></figure></div>


<ol class="wp-block-list" start="6"><li>On the GPM Editor window, expand <strong>User Configuration -&gt; Administrative Templates -&gt; System</strong>. Then, select the <strong>Removable Storage Access</strong> folder as shown in the below picture. Finally, double-click on <strong>All Removable Storage classes: Deny all access</strong>.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="781" height="515" src="https://www.technig.com/wp-content/uploads/2022/05/4-6.jpg" alt="Finding the GPO configuration to Deny Access to Removable Media" class="wp-image-18364" srcset="https://www.technig.com/wp-content/uploads/2022/05/4-6.jpg 781w, https://www.technig.com/wp-content/uploads/2022/05/4-6-300x198.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/4-6-768x506.jpg 768w" sizes="(max-width: 781px) 100vw, 781px" /><figcaption>Finding the GPO configuration to Deny Access to Removable Media</figcaption></figure></div>


<ol class="wp-block-list" start="7"><li>On the GPO configuration window, check the <strong>Enabled </strong>option. Then, click <strong>OK</strong> and close the GPM Editor window. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="680" height="629" src="https://www.technig.com/wp-content/uploads/2022/05/5-4.jpg" alt="Enabling the GPO to Deny All Access to Removable Storage Media" class="wp-image-18365" srcset="https://www.technig.com/wp-content/uploads/2022/05/5-4.jpg 680w, https://www.technig.com/wp-content/uploads/2022/05/5-4-300x278.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /><figcaption>Enabling the GPO to Deny All Access to Removable Storage Media</figcaption></figure></div>


<ol class="wp-block-list" start="8"><li>The GPO configuration is all set throughout the previous steps. However, it will affect only after we perform a group policy update on the client machine or restart it. So, to perform a group policy update, use <code>gpupdate /force</code> the <strong>Command Prompt</strong> or <strong>Run </strong>dialogue box. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="479" height="219" src="https://www.technig.com/wp-content/uploads/2022/05/7-2.jpg" alt="Updating Group Policy using Run" class="wp-image-18318" srcset="https://www.technig.com/wp-content/uploads/2022/05/7-2.jpg 479w, https://www.technig.com/wp-content/uploads/2022/05/7-2-300x137.jpg 300w" sizes="(max-width: 479px) 100vw, 479px" /><figcaption>Updating Group Policy using Run</figcaption></figure></div>


<ol class="wp-block-list" start="9"><li>Now, if you insert a removable media like a USB drive and try to open it, you will face an error saying the media is not accessible. </li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="842" height="421" src="https://www.technig.com/wp-content/uploads/2022/05/6-4.jpg" alt="Error Accessing Removable Storage After Group Policy Update" class="wp-image-18366" srcset="https://www.technig.com/wp-content/uploads/2022/05/6-4.jpg 842w, https://www.technig.com/wp-content/uploads/2022/05/6-4-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/6-4-768x384.jpg 768w" sizes="(max-width: 842px) 100vw, 842px" /><figcaption>Error Accessing Removable Storage After Group Policy Update</figcaption></figure></div>


<p>That is all with the steps to deny users access to removable storage media using group policy. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>To conclude this article, first, we talked about the importance of restricting users&#8217; access and discussed the Group Policy Management tool. Then, we briefly introduced our scenario. Lastly, we covered detailed steps to prevent users&#8217; access to removable storage media. </p>



<p>In the end, as always, I hope you find this article helpful. And feel free to share your thoughts and queries in the comment section. </p>
<p>The post <a href="https://www.technig.com/prevent-access-to-removable-storage-media-using-group-policy/">How to Prevent  Access to Removable Storage Media Using Group Policy?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/prevent-access-to-removable-storage-media-using-group-policy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18346</post-id>	</item>
		<item>
		<title>How to Create a Child Domain in Windows Server 2022</title>
		<link>https://www.technig.com/create-a-child-domain-in-windows-server-2022/</link>
					<comments>https://www.technig.com/create-a-child-domain-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Thu, 19 May 2022 07:00:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Active Directory Domain Services]]></category>
		<category><![CDATA[Child Domain]]></category>
		<category><![CDATA[Child Domain Configuration]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Server 2022 Articles]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=18044</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create a Child Domain in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>A child domain is a subdomain of another domain in a tree which we call the parent domain. In the active directory hierarchical structure, the subdomain segmentation helps partition the active directory into smaller segments. It is useful when we have a sub-business design and geographical differences. Put it another way, if, for example, company.com [&#8230;]</p>
<p>The post <a href="https://www.technig.com/create-a-child-domain-in-windows-server-2022/">How to Create a Child Domain in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create a Child Domain in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-2-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>A <a href="https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/install-a-new-windows-server-2012-active-directory-child-or-tree-domain--level-200-" target="_blank" rel="noreferrer noopener">child domain</a> is a subdomain of another domain in a tree which we call the parent domain. In the active directory hierarchical structure, the subdomain segmentation helps partition the active directory into smaller segments. It is useful when we have a sub-business design and geographical differences. Put it another way, if, for example, <strong>company.com</strong> is a domain, we can create a subdomain <strong>CA.company.com</strong> for that larger domain. This subdomain has its own domain controller and administrative boundary for its users and computers. With this brief illustration in mind, this article aims to cover how to create a child domain in Windows Server 2022 with a step-by-step approach and visual illustration. </p>



<h2 class="wp-block-heading">Steps to Create a Child Domain in Windows Server 2022</h2>



<p>To create a child domain, we need to install the Active Directory Domain Services (AD DS) role on our Windows Server 2022 Machine. Then, following its post-installation task, we create a child domain in an existing domain. Thus, to keep the article simple and easy to understand, we will accomplish the abovementioned two processes in two separate sections. First, we will install the AD DS role in our Windows Server 2022. Then, we will go through the post-installation process and create our new child domain.</p>



<p>To install AD DS and create a forest using Windows PowerShell, read <a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/" target="_blank" rel="noreferrer noopener">Install Active Directory On Windows Server 2022 Using PowerShell </a>article.</p>



<h3 class="wp-block-heading">Install AD DS role in Windows Server 2022</h3>



<p>To install the AD DS role using Server Manager, follow the steps below. </p>



<ol class="wp-block-list"><li>Open the <strong>Server Manager</strong> from the <strong>Start Menu</strong>.</li><li>On the Server Manager console, click on <strong>Manage </strong>and select <strong>Add roles and features.</strong> </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-10.jpg" alt="Add Roles and Features using Server Manager" class="wp-image-17609" width="700" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-10.jpg 638w, https://www.technig.com/wp-content/uploads/2022/04/2-10-300x136.jpg 300w" sizes="(max-width: 638px) 100vw, 638px" /><figcaption>Add Roles and Features using Server Manager</figcaption></figure></div>



<ol class="wp-block-list" start="3"><li>Click <strong>Next </strong>on the first window. </li><li>Choose the first option on the <strong>Installation Type</strong> window. Click <strong>Next</strong> afterward.</li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-6.jpg" alt="Choosing Installation Type for the Role" class="wp-image-17610" width="700" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-6.jpg 786w, https://www.technig.com/wp-content/uploads/2022/04/3-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-6-768x547.jpg 768w" sizes="(max-width: 786px) 100vw, 786px" /><figcaption>Choosing Installation Type for the Role</figcaption></figure></div>



<ol class="wp-block-list" start="5"><li>Select the server on which you install the AD DS and click <strong>Next</strong>.</li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="781" height="555" src="https://technig.com/wp-content/uploads/2022/05/1-5.jpg" alt="Selecting the Server from the Server Pool" class="wp-image-18062" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-5.jpg 781w, https://www.technig.com/wp-content/uploads/2022/05/1-5-300x213.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/1-5-768x546.jpg 768w" sizes="(max-width: 781px) 100vw, 781px" /><figcaption>Selecting the Server from the Server Pool</figcaption></figure></div>



<ol class="wp-block-list" start="6"><li>Check out the <strong>Active Directory Domain Services</strong> checkbox on the <strong>Server Roles</strong> window. Then, click on <strong>Add Features </strong>button on the pop-up window. Finally, click on <strong>Next</strong>. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="781" height="555" src="https://technig.com/wp-content/uploads/2022/05/2-3.jpg" alt="Selecting Active Directory Domain Services Role" class="wp-image-18063" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-3.jpg 781w, https://www.technig.com/wp-content/uploads/2022/05/2-3-300x213.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/2-3-768x546.jpg 768w" sizes="(max-width: 781px) 100vw, 781px" /><figcaption>Selecting Active Directory Domain Services Role</figcaption></figure></div>



<ol class="wp-block-list" start="7"><li>Let the <strong>Features</strong> window as its default, and click <strong>Next</strong>.</li><li>Likewise, click <strong>Next </strong>on the <strong>AD DS</strong> window. </li><li>On the <strong>Confirmation </strong>window, check out the <strong>Restart Server</strong> option, so it restarts the machine automatically if it needs to. Then click on the <strong>Install </strong>button. Wait for a few moments until it finishes the installation process.</li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="786" height="560" src="https://technig.com/wp-content/uploads/2022/05/3-1.jpg" alt="Install the Active Directory Domain Services AD DS " class="wp-image-18065" srcset="https://www.technig.com/wp-content/uploads/2022/05/3-1.jpg 786w, https://www.technig.com/wp-content/uploads/2022/05/3-1-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/3-1-768x547.jpg 768w" sizes="(max-width: 786px) 100vw, 786px" /><figcaption>Install the Active Directory Domain Services AD DS </figcaption></figure></div>



<ol class="wp-block-list" start="10"><li>In the last step, once the AD DS installation completes, click on the <strong>Close </strong>button to close the window. </li></ol>



<p>To this point, we have installed the AD DS in our Windows Server 2022 Machine. Now, let&#8217;s move forward and go with the post-installation tasks and create our child domain. </p>



<h3 class="wp-block-heading">Create a Child Domain in Windows Server 2022</h3>



<p>Now that we have installed the AD DS role in our Windows Server 2022 machine, we can create a child domain in its post-installation task. Follow the steps below to do so. </p>



<ol class="wp-block-list"><li>On the Server Manager console, click on the <strong>flag notification</strong>. Then, click on <strong>Promote this server to a domain controller</strong> option. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/4-1.jpg" alt="Promoting the Server to Domain Controller" class="wp-image-18068" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/05/4-1.jpg 582w, https://www.technig.com/wp-content/uploads/2022/05/4-1-300x118.jpg 300w" sizes="(max-width: 582px) 100vw, 582px" /><figcaption>Promoting the Server to Domain Controller</figcaption></figure></div>



<ol class="wp-block-list" start="2"><li>On the <strong>Deployment Configuration</strong> window, check out the <strong>Add a new domain to an existing forest</strong> option. Select the <strong>Child Domain</strong> as illustrated in the below picture. Then, enter the parent domain name in the relevant box, or use the <strong>Select </strong>button to select from the existing domains. Finally, enter the <strong>Child Domain Name</strong> in its relevant textbox. The child domain name must be single-labeled. Use the <strong>Change</strong> button to change the credential if needed. Once everything is set, click on <strong>Next</strong>.</li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="755" height="554" src="https://technig.com/wp-content/uploads/2022/05/5.jpg" alt="Adding a Child Domain to an Existing Forest in Windows Server 2022" class="wp-image-18069" srcset="https://www.technig.com/wp-content/uploads/2022/05/5.jpg 755w, https://www.technig.com/wp-content/uploads/2022/05/5-300x220.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/5-86x64.jpg 86w" sizes="(max-width: 755px) 100vw, 755px" /><figcaption>Adding a Child Domain to an Existing Forest</figcaption></figure></div>



<ol class="wp-block-list" start="3"><li>Set the <strong>Domain functional level</strong> and <strong>Global Catalog</strong> settings. Then, provide the DSRM password and click on <strong>Next</strong>. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="755" height="554" src="https://technig.com/wp-content/uploads/2022/05/6.jpg" alt="Defining the Child Domain Options" class="wp-image-18070" srcset="https://www.technig.com/wp-content/uploads/2022/05/6.jpg 755w, https://www.technig.com/wp-content/uploads/2022/05/6-300x220.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/6-86x64.jpg 86w" sizes="(max-width: 755px) 100vw, 755px" /><figcaption>Defining the Child Domain Options</figcaption></figure></div>



<ol class="wp-block-list" start="4"><li>Click <strong>Next </strong>on the <strong>DNS Options</strong> window. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="756" height="556" src="https://technig.com/wp-content/uploads/2022/05/7.jpg" alt="Specifying DNS Delegation" class="wp-image-18071" srcset="https://www.technig.com/wp-content/uploads/2022/05/7.jpg 756w, https://www.technig.com/wp-content/uploads/2022/05/7-300x221.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/7-86x64.jpg 86w" sizes="(max-width: 756px) 100vw, 756px" /><figcaption>Specifying DNS Delegation</figcaption></figure></div>



<ol class="wp-block-list" start="5"><li>Verify the <strong>NetBIOS </strong>name and click <strong>Next </strong>to continue. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="755" height="554" src="https://technig.com/wp-content/uploads/2022/05/8.jpg" alt="Setting the NetBIOS Name for the Domain" class="wp-image-18072" srcset="https://www.technig.com/wp-content/uploads/2022/05/8.jpg 755w, https://www.technig.com/wp-content/uploads/2022/05/8-300x220.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/8-86x64.jpg 86w" sizes="(max-width: 755px) 100vw, 755px" /><figcaption>Setting the NetBIOS Name for the Domain</figcaption></figure></div>



<ol class="wp-block-list" start="6"><li>Set the AD DS database and other files&#8217; paths or leave it as its default. Click on <strong>Next </strong>afterward. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="754" height="554" src="https://technig.com/wp-content/uploads/2022/05/9.jpg" alt="Setting the AD Database and SYSVOL Path for the Domain" class="wp-image-18073" srcset="https://www.technig.com/wp-content/uploads/2022/05/9.jpg 754w, https://www.technig.com/wp-content/uploads/2022/05/9-300x220.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/9-86x64.jpg 86w" sizes="(max-width: 754px) 100vw, 754px" /><figcaption>Setting the AD Database and SYSVOL Path for the Domain</figcaption></figure></div>



<ol class="wp-block-list" start="7"><li>Read the details of your setting on the <strong>Review Options</strong> window. If everything is set correctly, click on <strong>Next </strong>to continue. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="754" height="555" src="https://technig.com/wp-content/uploads/2022/05/10.jpg" alt="Reviewing the Settings and Configurations" class="wp-image-18075" srcset="https://www.technig.com/wp-content/uploads/2022/05/10.jpg 754w, https://www.technig.com/wp-content/uploads/2022/05/10-300x221.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/10-86x64.jpg 86w" sizes="(max-width: 754px) 100vw, 754px" /><figcaption>Reviewing the Settings and Configurations</figcaption></figure></div>



<ol class="wp-block-list" start="8"><li>Click on <strong>Install </strong>on the <strong>Prerequisite Check</strong> window once it has passed the requirements. Wait for a moment until it finishes the installation task. It automatically restarts during the installation operation. </li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="757" height="557" src="https://technig.com/wp-content/uploads/2022/05/11.jpg" alt="Checking the Prerequisites" class="wp-image-18076" srcset="https://www.technig.com/wp-content/uploads/2022/05/11.jpg 757w, https://www.technig.com/wp-content/uploads/2022/05/11-300x221.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/11-86x64.jpg 86w" sizes="(max-width: 757px) 100vw, 757px" /><figcaption>Checking the Prerequisites for the Domain Controller</figcaption></figure></div>



<p>That is it! We have created our child domain throughout the above steps. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>To sum up this article, we first explained briefly what a child domain is and where we use it. Then, we discussed the steps to install Active Directory Domain Services in Windows Server 2022. Finally, in a separate section, we promoted the server to a domain controller and created the child domain. </p>



<p>We are happy to be effective throughout our articles. Please do not hesitate to share your thoughts and questions in the comment section. </p>
<p>The post <a href="https://www.technig.com/create-a-child-domain-in-windows-server-2022/">How to Create a Child Domain in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/create-a-child-domain-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18044</post-id>	</item>
		<item>
		<title>Create and Configure a Root DNS Zone and Stop External Name Resolution</title>
		<link>https://www.technig.com/create-and-configure-a-root-dns-zone-and-stop-external-name-resolution/</link>
					<comments>https://www.technig.com/create-and-configure-a-root-dns-zone-and-stop-external-name-resolution/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Wed, 18 May 2022 05:47:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Configure DNS]]></category>
		<category><![CDATA[Configure DNS Server]]></category>
		<category><![CDATA[Configure Root DNS Zone]]></category>
		<category><![CDATA[DNS Configuration]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Server Configuration]]></category>
		<category><![CDATA[DNS Server Guide]]></category>
		<category><![CDATA[DNS Zone]]></category>
		<category><![CDATA[External Name Resolution]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Root DNS Zone]]></category>
		<category><![CDATA[Stop External Name Resolution]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17980</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create and Configure a Root DNS Zone in Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As part of a DNS server configuration, it is also possible to create and configure an internal root DNS zone for an environment. When we create it manually, the DNS forwarders and DNS Root Hints that resolve external DNS queries automatically get disabled. That is how we can stop external name resolutions by using an [&#8230;]</p>
<p>The post <a href="https://www.technig.com/create-and-configure-a-root-dns-zone-and-stop-external-name-resolution/">Create and Configure a Root DNS Zone and Stop External Name Resolution</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create and Configure a Root DNS Zone in Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/05/WinServer2022-3-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As part of a DNS server configuration, it is also possible to create and configure an internal root DNS zone for an environment. When we create it manually, the <a href="https://technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/" target="_blank" rel="noreferrer noopener">DNS forwarders</a> and DNS Root Hints that resolve external DNS queries automatically get disabled. That is how we can stop external name resolutions by using an internal root zone. Once we have created a root zone, it acts as a parent zone for all the root zones. Having said this overview, this article covers how to create and configure a Root DNS Zone in a step-by-step approach. We use <a href="https://www.technig.com/free-download-windows-server-2022-iso-file/" target="_blank" rel="noreferrer noopener nofollow">Windows Server 2022</a> for this configuration. However, the instruction also applies to other versions of Windows Server OSes. </p>



<p>Other DNS articles:</p>



<ol class="wp-block-list"><li><a href="https://technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener">How to Install DNS Service Using PowerShell and Server Manager?</a></li><li><a href="https://technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Configure DNS Forwarder and DNS Conditional Forwarder. </a></li><li><a href="https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Detailed Instruction to Create and Configure DNS Zones.</a></li></ol>



<h2 class="wp-block-heading">Steps to Create and Configure a Root DNS Zone</h2>



<p>With the above brief overview in mind, let&#8217;s get our hands dirty and go through the steps to create and configure a root DNS zone in Windows Server 2022. </p>



<p><strong>1. </strong>Press down the <strong>Windows key + R</strong> keys on your keyboard to open the <strong>Run </strong>dialogue box. </p>



<p><strong>2. </strong>Type in<code>dnsmgmt.msc </code>command and press enter. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg" alt="Opening DNS Manager Using RUN Command" class="wp-image-17724" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg 586w, https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run-300x157.jpg 300w" sizes="(max-width: 586px) 100vw, 586px" /><figcaption>Opening DNS Manager Using RUN Command</figcaption></figure></div>



<p><strong>3. </strong>Expand the server name on the DNS Manager console. Then, right-click on the <strong>Forward Lookup Zone </strong>and select the <strong>New Zone</strong> option. Click <strong>Next </strong>on the Welcome Wizard afterward. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-6.jpg" alt="Create New Zone Option on DNS Manager" class="wp-image-17725" width="700" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-6.jpg 743w, https://www.technig.com/wp-content/uploads/2022/04/1-6-300x135.jpg 300w" sizes="(max-width: 743px) 100vw, 743px" /><figcaption>Create a New Zone Option on DNS Manager</figcaption></figure></div>



<p><strong>4. </strong>On the <strong>Zone Type</strong> section, select the zone type for your new zone and click <strong>Next</strong>. In our example, we chose the <strong>Primary zone</strong> for which we check the first option and uncheck the last option. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-11.jpg" alt="Selecting the Primary DNS Zone Type on Zone Type screen" class="wp-image-17726" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-11.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/2-11-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/2-11-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Selecting the Primary DNS Zone Type on the Zone Type screen</figcaption></figure></div>



<p><strong>5. </strong>Put only a dot (.) in the<strong> Zone name</strong> box and click <strong>Next </strong>to continue. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/1-4.jpg" alt="Naming Internal Root DNS zone" class="wp-image-17984" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/1-4.jpg 496w, https://www.technig.com/wp-content/uploads/2022/05/1-4-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/1-4-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Naming Internal Root DNS zone</figcaption></figure></div>



<p><strong>6. </strong>On the <strong>Zone File</strong> section, specify a name for the zone file or leave it as its default. Then, click on the <strong>Next </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/2-2.jpg" alt="Naming the New Zone's file" class="wp-image-17985" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/2-2.jpg 496w, https://www.technig.com/wp-content/uploads/2022/05/2-2-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/2-2-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Naming the New Zone&#8217;s file</figcaption></figure></div>



<p><strong>7. </strong>Select the appropriate <strong>Dynamic Update</strong> option for your root DNS zone and click on <strong>Next.</strong> On the next page, click on the <strong>Finish </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/05/3.jpg" alt="Configure the Dynamic Update for the Root DNS Zone" class="wp-image-17986" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/05/3.jpg 494w, https://www.technig.com/wp-content/uploads/2022/05/3-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/3-279x220.jpg 279w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>Configure the Dynamic Update for the Root DNS Zone</figcaption></figure></div>



<p>That is it! Following the above seven steps, we can create a root DNS zone in Windows Server 2022. Now, you can see the new zone with <strong>&#8220;.(root)&#8221; </strong>name is added to the zone list. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="682" height="286" src="https://technig.com/wp-content/uploads/2022/05/4.jpg" alt="The root DNS zone in the zones list" class="wp-image-17987" srcset="https://www.technig.com/wp-content/uploads/2022/05/4.jpg 682w, https://www.technig.com/wp-content/uploads/2022/05/4-300x126.jpg 300w" sizes="(max-width: 682px) 100vw, 682px" /><figcaption>The root DNS zone in the zones list</figcaption></figure></div>



<p>As we have added the root zone, the <strong>root hints</strong> and <strong>forwarders</strong> are all gone if you check them. So, this way, the root DNS zone stops all external name resolutions. </p>



<h2 class="wp-block-heading">Summary</h2>



<p>To summarize what we discussed in this article, we first covered a brief overview of the Root DNS zone. We discussed its function and use. Then, we went through step-by-step instructions and practically created and configured a Root DNS zone in Windows Server 2022. </p>



<p>In the end, I hope this article can provide you with the exact answer to your question. Make sure to share your thoughts and further queries in the comment section. </p>
<p>The post <a href="https://www.technig.com/create-and-configure-a-root-dns-zone-and-stop-external-name-resolution/">Create and Configure a Root DNS Zone and Stop External Name Resolution</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/create-and-configure-a-root-dns-zone-and-stop-external-name-resolution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17980</post-id>	</item>
		<item>
		<title>Create and Configure a DNS Zone in Windows Server 2022</title>
		<link>https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/</link>
					<comments>https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Thu, 12 May 2022 10:25:42 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory Integrated Zone]]></category>
		<category><![CDATA[ADI DNS Zone]]></category>
		<category><![CDATA[Configure DNS Server]]></category>
		<category><![CDATA[Configure DNS Zone]]></category>
		<category><![CDATA[Create DNS Zone]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Service]]></category>
		<category><![CDATA[DNS Zone Transfer]]></category>
		<category><![CDATA[Forward Lookup Zone]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Primary DNS Zone]]></category>
		<category><![CDATA[Primary Secondary DNS Zone]]></category>
		<category><![CDATA[Reverse Lookup Zone]]></category>
		<category><![CDATA[Secondary DNS Zone]]></category>
		<category><![CDATA[Stub DNS Zone]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17695</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create and Configure DNS Zones on Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As a core component of a DNS Server, a DNS Zone creates and stores DNS resource records. That means the DNS zones store all the resource records of a DNS namespace in themselves, and according to those records, the DNS Server resolves names to IP addresses upon the DNS queries by clients. The DNS Servers [&#8230;]</p>
<p>The post <a href="https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/">Create and Configure a DNS Zone in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create and Configure DNS Zones on Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As a core component of a <a href="https://computer.howstuffworks.com/dns.htm" target="_blank" rel="noreferrer noopener nofollow">DNS Server</a>, a DNS Zone creates and stores DNS resource records. That means the DNS zones store all the resource records of a DNS namespace in themselves, and according to those records, the DNS Server resolves names to IP addresses upon the DNS queries by clients. The DNS Servers manage the DNS zones. It is the very fundamental configuration we must accomplish right after installing the DNS Service. Hence, this article covers how to create and configure a DNS Zone in Windows Server 2022 step-by-step. Before that, we need a comprehensive understanding of the DNS Zone types and their functions. That&#8217;s why we will first cover a brief overview of the DNS zone types and their functions. Then, we will create and configure DNS zones of all types in a separate section.</p>



<p>You may also like to read: <a href="https://technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener">Install DNS In Server 2022 Using Server Manager And Powershell.</a></p>



<h2 class="wp-block-heading">Forward Lookup Zone and Reverse Lookup Zone</h2>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="771" height="394" src="https://www.technig.com/wp-content/uploads/2022/04/Zones.jpg" alt="DNS Forward Lookup Zone and Reverse Lookup Zone" class="wp-image-17723" srcset="https://www.technig.com/wp-content/uploads/2022/04/Zones.jpg 771w, https://www.technig.com/wp-content/uploads/2022/04/Zones-300x153.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Zones-768x392.jpg 768w" sizes="(max-width: 771px) 100vw, 771px" /><figcaption>DNS Forward Lookup Zone and Reverse Lookup Zone</figcaption></figure></div>



<p>Broadly classifying, there are two types of zones available in a DNS Server. The first one is the Forward Lookup Zone which resolves names and, sometimes, services to IP addresses. The second one is the Reverse Lookup Zone which resolves IP addresses to names. While we always use the first type in every networking environment, we rarely use the second type for some security reasons. Furthermore, we have four types of zones that we can create and configure in each one of these two zone classes. In fact, when we talk about zone configuration, we configure one of these four types, whether in the Forward Lookup Zone or the Reverse Lookup Zone. Wherever we create them, they function accordingly. Now, let&#8217;s see each of these four zone types we can create and configure. </p>



<h3 class="wp-block-heading">1. Primary DNS Zone</h3>



<p>As the name refers, the Primary DNS Zone is the main DNS zone that a primary DNS server hosts. It stores the read/write copy of the zone data (resource records). Let&#8217;s say we have a DNS Server for our main office with a thousand clients. Now, that DNS Server hosts a primary zone and stores the DNS records of all those thousand clients with both read and write privileges. </p>



<h3 class="wp-block-heading">2. Secondary DNS Zone</h3>



<p>The Secondary DNS Zone stores a read-only copy of the Primary DNS zone. It goes hand-in-hand with the primary zone. If a change occurs in the primary zone, that change replicates in the secondary zone. We can not delete or add a new resource record in a secondary DNS zone. We use it mainly to reduce the workload on the primary DNS server, prevent a single point of failure, and reduce other resource usages like network bandwidth in a scenario where the company&#8217;s branches are connected over a WAN link. </p>



<h3 class="wp-block-heading">3. Stub DNS Zone</h3>



<p>A Stub DNS Zone is very similar to a secondary DNS zone. But, it stores a copy of resource records of only the name servers (NS) of a primary zone and not all resource records of a primary zone. Like the primary-secondary zones, we use it to reduce loads on the primary DNS Server, prevent a single point of failure, and reduce other resource usage. </p>



<h3 class="wp-block-heading">4. Active Directory Integrated (ADI) DNS Zone</h3>



<p>An active directory Integrated zone, or ADI zone for short, can be hosted only on a DNS server which is also the Domain Controller. Using the ADI zone, all the resource records automatically replicate between the two DNS servers. It is entirely bidirectional and multi-master. That means any changes on one side replicate to the other side. This type is the most secure as the replications are encrypted.</p>



<p>Now that we have a conceptual understanding of each DNS zone type, we will go forward and practically configure each one in a separate section. </p>



<h2 class="wp-block-heading">Create and Configure a Primary DNS Zone </h2>



<p>From the above descriptions, we understand what a Primary DNS Zone is and where we use it. We will walk through the below steps to create and configure a primary DNS zone in Windows Server 2022. </p>



<p><strong>1. </strong>Open the <strong>DNS Manager</strong> console. To do so, open the <strong>Run </strong>dialogue box by pressing the <strong>Windows Key + R</strong> keys combination on your keyboard. Type<code>dnsmgmt.msc</code>command and press enter to open it. You can also open it by navigating through <strong>Server Manager &gt;&gt; Tools &gt;&gt; DNS.</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg" alt="Opening DNS Manager Using RUN Command" class="wp-image-17724" width="700" height="339"/><figcaption>Opening DNS Manager Using RUN Command</figcaption></figure></div>



<p><strong>2. </strong>Under the Server name on the DNS Manager console, you can create a new zone of both <strong>Forward Lookup Zones</strong> and <strong>Reverse Lookup Zones</strong>. Whichever you intend to create, right-click on it and choose<strong> the New Zone</strong> option. Consequently, click on the <strong>Next </strong>button on the first screen. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-6.jpg" alt="Create New Zone Option on DNS Manager" class="wp-image-17725" width="700" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-6.jpg 743w, https://www.technig.com/wp-content/uploads/2022/04/1-6-300x135.jpg 300w" sizes="(max-width: 743px) 100vw, 743px" /><figcaption>Create a New Zone Option on DNS Manager</figcaption></figure></div>



<p><strong>3. </strong>To create a <strong>Primary Zone</strong>, check out the first option and uncheck the last checkbox. Then, click on <strong>Next</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-11.jpg" alt="Selecting the Primary Zone Type on Zone Type screen" class="wp-image-17726" width="570" height="451" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-11.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/2-11-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/2-11-279x220.jpg 279w" sizes="(max-width: 570px) 100vw, 570px" /><figcaption>Selecting the Primary Zone Type on the Zone Type screen</figcaption></figure></div>



<p><strong>4. </strong>On the <strong>Zone Name</strong> console, type your zone name and click on <strong>Next </strong>to continue. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-7.jpg" alt="Naming the the New DNS Primary Zone" class="wp-image-17727" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-7.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/3-7-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-7-279x220.jpg 279w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Naming the New DNS Primary Zone</figcaption></figure></div>



<p><strong>5. </strong>Now, configure the zone file. Choose the first option to create a new zone file, and click on the <strong>Next</strong>. The DNS zone creates a file to save the associated resource records. This file will be saved in the <strong>C:\Windows\System32\dns</strong> directory. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/4-7.jpg" alt="Naming the New Primary DNS Zone file" class="wp-image-17728" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-7.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/4-7-300x235.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-7-279x220.jpg 279w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Naming the New Primary DNS Zone file</figcaption></figure></div>



<p><strong>6. </strong>In this step, configure the <strong>Dynamic Updates</strong>. For the Primary DNS Zone, we have two options, and almost always, we choose the first active option, as shown in the picture. If we select the <strong>Do not allow dynamic updates</strong> option, we must manually update the resource records each time there is a new record, which is impossible in most cases. When it is set, click on the <strong>Next </strong>button. Finally, click on <strong>Finish </strong>on the last page. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/5-9.jpg" alt="Configure Dynamic Update for the New DNS Zone" class="wp-image-17729" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-9.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/5-9-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/5-9-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Configure Dynamic Update for the New DNS Zone</figcaption></figure></div>



<p>That is all with the Primary DNS zone configuration. However, we still need to configure zone transfer. </p>



<h3 class="wp-block-heading">Configure Primary DNS Zone Transfer</h3>



<p>We learned how to create and configure a new Primary DNS zone in Server 2022. But, we still need to configure the zone transfer for our newly created primary DNS zone. The zone transfer configuration specifies the server(s) with which our primary zone must replicate its information. Follow the steps below to configure Zone Transfer. </p>



<p><strong>1. </strong>Right-click on your <strong>DNS Zone</strong> and select the <strong>Properties </strong>option from the list. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="841" height="548" src="https://technig.com/wp-content/uploads/2022/04/1-8.jpg" alt="Going to the Properties of a Zone" class="wp-image-17735" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-8.jpg 841w, https://www.technig.com/wp-content/uploads/2022/04/1-8-300x195.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-8-768x500.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/1-8-210x136.jpg 210w" sizes="(max-width: 841px) 100vw, 841px" /><figcaption>Going to the Properties of a Zone</figcaption></figure></div>



<p><strong>2.</strong> On the zone properties page, select the <strong>Name Servers </strong>tab and click on <strong>Add </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-13.jpg" alt="Adding a New Server for Zone transfer" class="wp-image-17736" width="500" height="616" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-13.jpg 398w, https://www.technig.com/wp-content/uploads/2022/04/2-13-244x300.jpg 244w" sizes="(max-width: 500px) 100vw, 500px" /><figcaption>Adding a New Server for Zone transfer</figcaption></figure></div>



<p><strong>3. </strong>On the <strong>New Name Server Record </strong>screen, type the name or IP address of the secondary server with which you want to replicate this zone&#8217;s resource records. Use the Resolve button to resolve it. Once you have added the secondary server(s), click on the <strong>OK </strong>button. Do not care about the warning sign with the resolved server(s). Finally, close the zone&#8217;s <strong>Properties </strong>window. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-9.jpg" alt="Adding a New Name Server for Zone Transfer" class="wp-image-17737" width="544" height="416" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-9.jpg 527w, https://www.technig.com/wp-content/uploads/2022/04/3-9-300x229.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-9-260x200.jpg 260w" sizes="(max-width: 544px) 100vw, 544px" /><figcaption>Adding a New Name Server for Zone Transfer</figcaption></figure></div>



<p>We are all done with the primary zone. We have created and configured it, and then we configured the zone transfer. It is all set and ready to resolve names and replicate its records with the secondary DNS zone on the Server(s) we have just added. </p>



<h2 class="wp-block-heading">Create and Configure a Secondary DNS Zone</h2>



<p>A secondary DNS zone, as we described earlier, is a read-only copy of the primary DNS zone that updates itself with a replication of the Primary DNS zone records associated with it. It is also very similar in terms of configuration steps. Anyway, let&#8217;s move on and go with those steps to create and configure a Secondary DNS zone in Server 2022.</p>



<p><strong>1.</strong> Open the DNS Manager console on the secondary server (Same as the Primary DNS zone described above) </p>



<p><strong>2. </strong>Create a new DNS zone (Same as the step 2 of the primary DNS zone described above)</p>



<p><strong>3.</strong> Choose the <strong>Secondary Zone</strong> option as shown in the below picture to create a secondary DNS zone. Then, click on the <strong>Next</strong> button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-7.jpg" alt="Choosing The DNS Zone Type for Secondary DNS Zone" class="wp-image-17732" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-7.jpg 498w, https://www.technig.com/wp-content/uploads/2022/04/1-7-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-7-279x220.jpg 279w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Choosing The DNS Zone Type for Secondary DNS Zone</figcaption></figure></div>



<p><strong>4. </strong>Name the Secondary DNS zone. Remember that it is mandatory that the Secondary DNS zone name must be the same as the Primary DNS zone with which you want to associate. That is what makes them correlate with each other. So our secondary DNS name becomes <strong>Zone1 </strong>as of the primary DNS zone. Click on <strong>Next </strong>when it is set. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-8.jpg" alt="Naming the Secondary DNS Zone" class="wp-image-17731" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-8.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/3-8-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-8-279x220.jpg 279w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Naming the Secondary DNS Zone</figcaption></figure></div>



<p><strong>5.</strong> Specify the <strong>Master DNS Server(s)</strong> using their IP addresses or names. Once specified correctly, click on the <strong>Next </strong>button. Finally, click on the <strong>Finish </strong>button on the next page. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-12.jpg" alt="Choosing the Master DNS Server for Secondary DNS Zone" class="wp-image-17733" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-12.jpg 495w, https://www.technig.com/wp-content/uploads/2022/04/2-12-300x237.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/2-12-279x220.jpg 279w" sizes="(max-width: 495px) 100vw, 495px" /><figcaption>Choosing the Master DNS Server for Secondary DNS Zone</figcaption></figure></div>



<p>At this point, we have successfully created and configured the secondary DNS zone. Now, let&#8217;s verify if they work correctly. </p>



<h2 class="wp-block-heading">Verify Primary-Secondary DNS Zones</h2>



<p>We already know the purpose of the primary and secondary DNS zones. So, it is clear that all the resource records from the primary DNS zone should automatically get stored in the secondary DNS zone. Besides learning how to create and configure a DNS Zone in Server 2022, we verify this replication of resources and check if it works. </p>



<p>To verify this configuration, first, we manually create a new record in the primary DNS zone on the DNS server that hosts it (DC1 in our scenario). Then, we check if it is replicated in the secondary DNS zone on the DNS server that hosts our secondary zone (SRV1 in our scenario). Let&#8217;s move on step by step. </p>



<p><strong>1. </strong>On the primary DNS server (DC1 in our example), right-click on the primary zone you have created and choose <strong>New Host (A or AAAA)</strong> option from the list. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-9.jpg" alt="Creating New Record in a DNS Zone" class="wp-image-17738" width="700" height="349"/><figcaption>Creating New Record in a DNS Zone</figcaption></figure></div>



<p><strong>2. </strong>Put the name of the new record in the <strong>Name </strong>box, and put the IP address associated with that name in the <strong>IP address</strong> box. Then, click on the <strong>Add Host</strong> button. <strong>Next</strong>, click on the <strong>OK </strong>button on the message window. Finally, click on the <strong>Done </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-14.jpg" alt="Adding New Host A in a Primary DNS Zone" class="wp-image-17739" width="500" height="473"/><figcaption>Adding New Host A in a Primary DNS Zone</figcaption></figure></div>



<p><strong>3. </strong>On the secondary DNS server (SRV1 in our example), click on the secondary zone and see if the record you have created in the primary zone is added there. Remember that it might take a few seconds to replicate. So, refresh the DNS manager window on the secondary server. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-10.jpg" alt="Replicated DNS Resource Record in the Secondary Zone" class="wp-image-17740" width="696" height="338" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-10.jpg 709w, https://www.technig.com/wp-content/uploads/2022/04/3-10-300x146.jpg 300w" sizes="(max-width: 696px) 100vw, 696px" /><figcaption>Replicated DNS Resource Record in the Secondary Zone</figcaption></figure></div>



<p>This way, we can manually add a DNS record in our primary zone and check if it replicates to the secondary zone.</p>



<h2 class="wp-block-heading">Create and Configure a Stub DNS Zone </h2>



<p>Earlier in this article, we discussed the Stub DNS zone. We know where we use it and what resource records it stores. Now in this section, we dive into the steps on how we can create and configure a Stub zone in Windows Server 2022. Most of the steps are similar to the secondary zone configuration we covered above. So, to keep it short, we will refer to the secondary zone configuration steps for similar ones. </p>



<p><strong>1.</strong> Open DNS Manager console (same as the Step 1 of secondary zone configuration)</p>



<p><strong>2.</strong> Create a new DNS zone (Same as the step 2 of the secondary zone configuration) </p>



<p><strong>3. </strong>Choose the <strong>Stub zone</strong> option on the <strong>Zone Type</strong> window. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-10.jpg" alt="Selecting the Stub Zone Option for New Stub Zone" class="wp-image-17741" width="570" height="410"/><figcaption>Selecting the Stub Zone Option for New Stub Zone</figcaption></figure></div>



<p><strong>4. </strong>Enter the name of the Stub zone. (Same as step 4 of the secondary zone configuration)</p>



<p><strong>5. </strong>Configure zone file. (Same as the step 5 of the <strong>Primary zone</strong> configuration discussed above) </p>



<p><strong>6.</strong> Add the master server (primary server which hosts the primary zone) as we did for the secondary DNS zone. </p>



<p>We configured a Stub Zone following these six steps. It is straightforward and requires almost the same steps as the secondary zone configuration except for steps three and five, where we specify the zone type and configure the zone file. </p>



<h2 class="wp-block-heading">Create and Configure an Active Directory Integrated (ADI) DNS Zone</h2>



<p>We are familiar with the concept of Active Directory Integrated (ADI) DNS Zones, as we discussed earlier in this article. To remind you, the ADI zones can be hosted only on the DNS servers, which are also the domain controller. With that in mind, this section covers the steps on how to create and configure an ADI DNS zone in Windows Server 2022. Let&#8217;s walk through the steps. To keep it short, we will refer to some of the above section&#8217;s steps if there are similar steps to the above sections. </p>



<p><strong>1. </strong>Pull up the DNS Manager console as we did in previous sections. </p>



<p><strong>2.</strong> Create a new DNS zone. (step 2 of the above sections)</p>



<p><strong>3.</strong> Select the <strong>Primary zone</strong> option and check out the last checkbox option for the ADI DNS zone. Click on <strong>Next</strong> afterward. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-11.jpg" alt="Selecting Active Directory Integrated DNS Zone Option " class="wp-image-17748" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-11.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/1-11-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-11-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Selecting Active Directory Integrated DNS Zone Option </figcaption></figure></div>



<p><strong>4. </strong>Select the replication scope for the ADI zone in which it must replicate its resource records. We always use one of the two first options. The first one is to replicate the zone to all servers in the forest, and the second option is to replicate it to all servers in the domain. It depends on your environment and the plan accordingly. When done, click on <strong>Next</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-15.jpg" alt="Selecting the Replication Scope for ADI DNS Zone" class="wp-image-17750" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-15.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/2-15-300x235.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/2-15-279x220.jpg 279w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Selecting the Replication Scope for ADI DNS Zone</figcaption></figure></div>



<p><strong>5.</strong> Type a name for your ADI DNS zone and click on <strong>Next </strong>to continue. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-11.jpg" alt="Naming ADI DNS zone " class="wp-image-17751" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-11.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/3-11-300x236.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-11-279x220.jpg 279w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Naming ADI DNS zone </figcaption></figure></div>



<p><strong>6. </strong>Configure the <strong>Secure Dynamic Update</strong> in this step. For the ADI DNS zone, the first option is also available. Almost always, we use the first option for an ADI zone. It also depends on your plan. Click on the <strong>Next </strong>button when it is set. Then, click on <strong>Finish </strong>in the next window. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/4-8.jpg" alt="Configuring Secure Dynamic updates for ADI DNS zone" class="wp-image-17752" width="570" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-8.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/4-8-300x234.jpg 300w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Configuring Secure Dynamic updates for ADI DNS zone</figcaption></figure></div>



<p>That is all the steps we walk through to create and configure an ADI DNS zone in Windows Server 2022. </p>



<h2 class="wp-block-heading">Summary</h2>



<p>To revise what we covered in this article, we started with an overview of the DNZ zones. First of all, we discussed the Forward Lookup Zone and Reverse Lookup Zone. We covered a brief overview of the four zones we can create and configure in each Forward and Reverse Lookup Zones. Next, in a step-by-step approach, we covered the primary zone creation and configuration. Likewise, we stepped into secondary zone configuration steps. Another small topic we covered was verifying primary-secondary zones. A stub zone configuration was the next section we covered. Finally, we explained the ADI DNS Zone configuration in six steps. </p>



<p>In the end, I would like to share my happiness in having you read our articles. Please feel free and let us know your thoughts and queries regarding our content.</p>
<p>The post <a href="https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/">Create and Configure a DNS Zone in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/create-and-configure-a-dns-zone-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17695</post-id>	</item>
		<item>
		<title>Configure DNS Forwarder and DNS Conditional Forwarder in Server 2022</title>
		<link>https://www.technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/</link>
					<comments>https://www.technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Tue, 10 May 2022 18:36:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Configure DNS Server]]></category>
		<category><![CDATA[DNS Conditional Forwarder]]></category>
		<category><![CDATA[DNS Forwarder]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Server Configuration]]></category>
		<category><![CDATA[DNS Server Guide]]></category>
		<category><![CDATA[DNS Service]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17789</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure DNS Forwarders and DNS Conditional Forwarders" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As essential parts of a DNS Server, the DNS Forwarders and the DNS Conditional Forwarders are the two topics that we will configure after installing the DNS role and configuring the DNS zones. A DNS Forwarder is responsible for serving external DNS requests. We manually configure the DNS Forwarder on our DNS Server and specify [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/">Configure DNS Forwarder and DNS Conditional Forwarder in Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure DNS Forwarders and DNS Conditional Forwarders" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As essential parts of a <a href="https://docs.microsoft.com/en-us/windows-server/networking/dns/dns-top" target="_blank" rel="noreferrer noopener">DNS Server</a>, the DNS Forwarders and the DNS Conditional Forwarders are the two topics that we will configure after <a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener nofollow">installing the DNS role</a> and configuring the DNS zones. A DNS Forwarder is responsible for serving external DNS requests. We manually configure the DNS Forwarder on our DNS Server and specify the DNS server(s) it should refer to for any external DNS requests. A DNS Conditional Forwarder resolves the external DNS requests only for a specific domain that we specify. Mainly, we configure it between partners and trusted organisations. With this brief introduction in mind, we will cover how to configure a DNS Forwarder and a DNS Conditional Forwarder in Windows Server 2022. We will cover each one in a separate section following a straightforward step-by-step approach. </p>



<p>Also, read <a href="https://technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener">Install DNS In Server 2022 Using Server Manager And Powershell</a>.</p>



<h2 class="wp-block-heading">Configure a DNS Forwarder in Server 2022</h2>



<p>We discussed a brief overview of the DNS Forwarder. In this section, we will go step-by-step to see how we can configure it in a Windows Server 2022. </p>



<p><strong>1. </strong>Pull up the <strong>DNS Manager</strong> console. To do so, press down the <strong>Windows Key + R </strong>keys on your keyboard. Then, type<code>dnsmgmt.msc</code>in the <strong>Run </strong>dialogue box and hit enter. An alternative way is to navigate through <strong>Server Manager &gt;&gt;Tools &gt;&gt; DNS.</strong> </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg" alt="Opening DNS Manager Using RUN Command" class="wp-image-17724" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run.jpg 586w, https://www.technig.com/wp-content/uploads/2022/04/DNS-Manager-Run-300x157.jpg 300w" sizes="(max-width: 586px) 100vw, 586px" /><figcaption>Opening DNS Manager Using RUN Command</figcaption></figure></div>



<p><strong>2.</strong> On the DNS Manager console, select the server name on the left pane and double-click on <strong>Forwarders </strong>at the right pane. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-12.jpg" alt="Opening Forwarders on DNS Manager console" class="wp-image-17802" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-12.jpg 696w, https://www.technig.com/wp-content/uploads/2022/04/1-12-300x129.jpg 300w" sizes="(max-width: 696px) 100vw, 696px" /><figcaption>Opening Forwarders on DNS Manager console</figcaption></figure></div>



<p><strong>3. </strong>Select the <strong>Forwarders</strong> tab on the DNS server&#8217;s properties, and click on the <strong>Edit </strong>button, afterwards. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-16.jpg" alt="Editing Forwarders tab on DNS Manager" class="wp-image-17803" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-16.jpg 397w, https://www.technig.com/wp-content/uploads/2022/04/2-16-254x300.jpg 254w" sizes="(max-width: 397px) 100vw, 397px" /><figcaption>Editing Forwarders tab on DNS Manager</figcaption></figure></div>



<p><strong>4.</strong> Now, add the IP address of the DNS server(s) to which you want to forward the DNS external requests. You can add many DNS servers. As of our example, we have added two Google public DNS servers (<strong>8.8.8.8 </strong>and<strong> 8.8.4.4</strong>). Click on a DNS server you have added, and you can set the order or delete it using the buttons on the right pane. Once everything is set, click on the <strong>OK </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-12.jpg" alt="Adding DNS Server(s) to DNS Forwarders" class="wp-image-17804" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-12.jpg 529w, https://www.technig.com/wp-content/uploads/2022/04/3-12-300x248.jpg 300w" sizes="(max-width: 529px) 100vw, 529px" /><figcaption>Adding DNS Server(s) to DNS Forwarders</figcaption></figure></div>



<p><strong>5. </strong>As you can see in the below picture, our two DNS servers are added to DNS Forwarders. Now our DNS server forwards any external DNS requests to one of these two DNS servers. Finally, Click on <strong>OK </strong>to close the window. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/4-9.jpg" alt="DNS Servers Added in DNS Forwarders" class="wp-image-17805" width="500" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-9.jpg 395w, https://www.technig.com/wp-content/uploads/2022/04/4-9-254x300.jpg 254w" sizes="(max-width: 395px) 100vw, 395px" /><figcaption>DNS Servers Added to DNS Forwarders</figcaption></figure></div>



<p>All right. In five simple steps with picture illustration, we have explained how to configure a DNS forwarder in Windows Server 2022. </p>



<h2 class="wp-block-heading">Configure a DNS Conditional Forwarder in Server 2022</h2>



<p>A Conditional Forwarder, as we discussed earlier, resolves the external DNS requests only for a specific domain. We define that external domain in our DNS server. Our DNS server then resolves the external DNS request only for that domain. It forwards any external DNS requests other than for that domain to the DNS server(s) defined in forwarders or to the DNS servers in the root hint. Having said this stuff, let&#8217;s move on and see the steps to configure a DNS Conditional Forwarder in Windows Server 2022. </p>



<p><strong>1.</strong> Open up the <strong>DNS Manager</strong> console (step 1 of the previous section) </p>



<p><strong>2. </strong>Expand the DNS server and right-click on <strong>Conditional Forwarders.</strong> Select the <strong>New Conditional Forwarder</strong> option from the list. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-14.jpg" alt="Selecting Condition Forwarders on DNS Manager Console" class="wp-image-17814" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-14.jpg 678w, https://www.technig.com/wp-content/uploads/2022/04/1-14-300x158.jpg 300w" sizes="(max-width: 678px) 100vw, 678px" /><figcaption>Selecting Condition Forwarders on DNS Manager Console</figcaption></figure></div>



<p><strong>3. </strong>On the <strong>New Conditional Forwarder</strong> window, first, enter the domain&#8217;s name that your DNS server should resolve the request for it. Then, enter the IP address of that domain. Next, if you want to store this conditional forwarder in the active directory, check out the relevant checkbox (labelled 3 in the below picture) and choose the appropriate replication option. Otherwise, leave this option unchecked. Finally, click on the <strong>OK </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-17.jpg" alt="Adding a New Domain to the Conditional Forwarder" class="wp-image-17815" width="600" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-17.jpg 526w, https://www.technig.com/wp-content/uploads/2022/04/2-17-300x252.jpg 300w" sizes="(max-width: 526px) 100vw, 526px" /><figcaption>Adding a New Domain to the Conditional Forwarder</figcaption></figure></div>



<p>These are all the steps required to configure a conditional forwarder on a DNS server with Windows Server 2022. Pretty easy!</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Throughout this article, first, we discussed a brief overview of the DNS Forwarder and DNS Conditional Forwarder. Then, in two separate sections, we covered a step-by-step guide on how to configure a DNS Forwarder and DNS Conditional Forwarder in Windows Server 2022. </p>



<p>I hope you find this article helpful in any way. Make sure to share your thoughts and queries in the comment section below.  </p>



<p>Read More:</p>



<ul class="wp-block-list"><li><a href="https://www.technig.com/tag/dhcp-powershell-commands/" target="_blank" rel="noreferrer noopener">DHCP PowerShell Commands</a>. </li><li><a href="https://technig.com/see-wi-fi-password-on-windows-11/" target="_blank" rel="noreferrer noopener">How To See Wi-Fi Password On Windows 11?</a></li><li><a href="https://technig.com/bypass-windows-11-requirements/">How To Bypass Windows 11 Requirements?</a></li></ul>
<p>The post <a href="https://www.technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/">Configure DNS Forwarder and DNS Conditional Forwarder in Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-dns-forwarder-conditional-forwarder-in-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17789</post-id>	</item>
		<item>
		<title>How to Configure DHCP Failover in Windows Server 2022?</title>
		<link>https://www.technig.com/configure-dhcp-failover-in-windows-server-2022/</link>
					<comments>https://www.technig.com/configure-dhcp-failover-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Mon, 09 May 2022 18:59:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Configure DHCP]]></category>
		<category><![CDATA[Configure DHCP Failover]]></category>
		<category><![CDATA[Configure DHCP Server]]></category>
		<category><![CDATA[DHCP Failover]]></category>
		<category><![CDATA[DHCP Failover Configuration Modes]]></category>
		<category><![CDATA[DHCP Hot Standby]]></category>
		<category><![CDATA[DHCP Load Balance]]></category>
		<category><![CDATA[DHCP Remote Access]]></category>
		<category><![CDATA[DHCP Server Configuration]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Server 2022]]></category>
		<category><![CDATA[Verify DHCP Failover]]></category>
		<category><![CDATA[Windows 2022]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17567</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Configure DHCP Failover in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As a solution to DHCP failure, the DHCP Failover was first introduced in Windows Server 2012 for the high availability of DHCP service. The DHCP high availability is a super important topic in DHCP Server setup and configuration. If the DHCP server fails to lease IP addresses to the clients, the whole network fails. Among [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-dhcp-failover-in-windows-server-2022/">How to Configure DHCP Failover in Windows Server 2022?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Configure DHCP Failover in Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Featured-Image-Final-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As a solution to DHCP failure, the <a href="https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831385(v=ws.11)" target="_blank" rel="noreferrer noopener nofollow">DHCP Failover</a> was first introduced in Windows Server 2012 for the high availability of DHCP service. The DHCP high availability is a super important topic in DHCP Server setup and configuration. If the DHCP server fails to lease IP addresses to the clients, the whole network fails. Among other solutions to this issue, DHCP Failover is preferred and the most used. The way it works is that we have two DHCP servers working together. If one fails, we have the second one that provides the service. This article covers a step-by-step guide on how to configure DHCP Failover in Windows Server 2022. Before that, it covers a brief overview of the DHCP Failover configuration modes. This overview is required to distinguish between DHCP Failover configuration modes and which one to choose. </p>



<p>Before this configuration, you need to have DHCP installed and configured. You also need to have a DHCP scope. For those two topics, read the below articles. </p>



<ul class="wp-block-list"><li><a href="https://www.technig.com/install-and-configure-dhcp-in-windows-server-2022-using-server-manager/" target="_blank" rel="noreferrer noopener nofollow">Install And Configure DHCP In Windows Server 2022 Using Server Manager</a>.</li><li><a href="https://www.technig.com/create-and-configure-a-dhcp-scope-in-windows-server-2022/" target="_blank" rel="noreferrer noopener">Create And Configure A DHCP Scope In Windows Server 2022</a>.</li><li><a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/" target="_blank" rel="noreferrer noopener">Install And Configure DHCP In Windows Server 2022 Using PowerShell</a>. </li></ul>



<h2 class="wp-block-heading">DHCP Failover Configuration Modes</h2>



<p>As mentioned above, two DHCP servers are involved with the DHCP Failover configuration. They work together to make the DHCP service highly available. To define how they should work together, we have two options: the <strong>Load Balance</strong> mode and the <strong>Hot Standby</strong> mode. We must go for the one that best suits our needs in accordance with the environment. </p>



<h3 class="wp-block-heading">1. Load Balance Mode</h3>



<p>Using the <strong>Load Balance</strong> mode, both the DHCP servers concurrently lease IP addresses to the clients. Also referred to it as Active/Active. That means both DHCP servers are active at the same time. They share the DHCP scope with one another, and each one leases IP addresses to a specific number of clients in the network. The number of clients each should serve is defined manually in percentage while we configure DHCP Failover. What happens when one fails? The other one takes the responsibility and leases IP addresses to all the clients. </p>



<h3 class="wp-block-heading">2. Hot Standby Mode</h3>



<p>Using this mode, only one of the DHCP servers is leasing IP addresses to the clients at a time. The primary one leases IPs to the clients. The secondary one is in the Standby mode and updates itself with a replication of the records from the primary server. The secondary one steps in and serves the clients only when the primary server crashes for any reason. This mode is also referred to as Active/Passive. That means only one is active at a time. </p>



<h2 class="wp-block-heading">Step by Step DHCP Failover Configuration in Server 2022</h2>



<p>Now that we are familiar with the DHCP Failover configuration modes, it is time to dive into the steps and practically configure the DHCP Failover on our DHCP Server. </p>



<p><strong>1.</strong> Open DHCP Manager console. To do so, open the <strong>Run </strong>dialogue box using <strong>Windows Key + R</strong> keys on your keyboard and run <code>dhcpmgmt.msc</code>. You may also access the DHCP console by navigating through <strong>Server Manager &gt; Tools &gt; DHCP</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/1-4.jpg" alt="Opening DHCP Manager Console Using Run Command" class="wp-image-17576" width="499" height="273" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-4.jpg 413w, https://www.technig.com/wp-content/uploads/2022/04/1-4-300x164.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Opening DHCP Manager Console Using Run Command</figcaption></figure></div>



<p><strong>2.</strong> On the DHCP console, right-click on <strong>IPv4 </strong>under your domain and choose <strong>Configure Failover</strong> option from the list. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/2-9.jpg" alt="Configure Failover Option on DHCP manager Console" class="wp-image-17577" width="730" height="359"/><figcaption>Configure Failover Option on DHCP manager Console</figcaption></figure></div>



<p><strong>3. </strong>Remove the check for the <strong>Select all </strong>check box, and select the DHCP scope(s) from the list. Then, click on <strong>Next</strong> to continue. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/3-5.jpg" alt="Selecting DHCP Failover Partner Server" class="wp-image-17578" width="523" height="576" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-5.jpg 498w, https://www.technig.com/wp-content/uploads/2022/04/3-5-273x300.jpg 273w" sizes="(max-width: 523px) 100vw, 523px" /><figcaption>Selecting DHCP Failover Partner Server</figcaption></figure></div>



<p><strong>4.</strong> Now, choose the partner server using the <strong>Partner Server </strong>box and <strong>Add Server </strong>button. You can type the name or IP address of the partner server in the <strong>Partner Server </strong>box or browse for it using the <strong>Add Server </strong>button. Click on the <strong>Next </strong>button once set. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/4-5.jpg" alt="Selecting DHCP Failover Partner Server" class="wp-image-17579" width="523" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-5.jpg 497w, https://www.technig.com/wp-content/uploads/2022/04/4-5-273x300.jpg 273w" sizes="(max-width: 497px) 100vw, 497px" /><figcaption>Selecting DHCP Failover Partner Server</figcaption></figure></div>



<p><strong>5.</strong> The last step is to specify the DHCP Failover mode. You can use one of the<strong> Load Balance, </strong>or <strong>Hot Standby </strong>modes discussed earlier. You can set the properties for each one here on this page. Remove the Check for <strong>Enable Message Authentication</strong> check box if you do not use this authentication. Or, set it if you use it. Then, click on <strong>Next</strong>. Click on <strong>Finish </strong>on the next window and close the window using the <strong>Close</strong> button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://technig.com/wp-content/uploads/2022/04/5-7.jpg" alt="Specifying Failover Relationship | Load Balance, Hot Standby" class="wp-image-17580" width="523" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-7.jpg 496w, https://www.technig.com/wp-content/uploads/2022/04/5-7-274x300.jpg 274w" sizes="(max-width: 496px) 100vw, 496px" /><figcaption>Specifying Failover Relationship | Load Balance, Hot Standby</figcaption></figure></div>



<p>That is all the steps we require to Configure DHCP Failover on Windows Server 2022. Just five easy steps to accomplish it. If you switch to the partner server and go to the DHCP console, you will notice the DHCP scope(s) from your primary DHCP Server are replicated into it. Let&#8217;s verify it in a separate section. </p>



<h2 class="wp-block-heading">Verify DHCP Failover Configuration</h2>



<p>To verify if the DHCP Failover configuration works correctly, we have to check the partner server and see if the DHCP scope(s) that we chose are replicated. We have two ways to access the partner server&#8217;s DHCP console. One is to go to that server and navigate all the way to the DHCP Manager console. The second way is to access it remotely from the DHCP console. Let&#8217;s access it remotely and verify our DHCP Failover configuration through the steps below.</p>



<p><strong>1. </strong>On the DHCP console, right-click on <strong>DHCP </strong>at the top and select <strong>Add Server </strong>option. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/6-5.jpg" alt="Access DHCP Server Remotely from DHCP Manager Console" class="wp-image-17583" width="700" height="307"/><figcaption>Access DHCP Server Remotely from DHCP Manager Console</figcaption></figure></div>



<p><strong>2. </strong>On the <strong>Add Server</strong> screen, select the target DHCP Server to access it. If the target DHCP Server is not already in the list, use the first option and the <strong>Browse </strong>button to find it. When you added the target server, click on <strong>OK</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/7-4.jpg" alt="Specify the Remote DHCP Server to Access it." class="wp-image-17584" width="532" height="391" srcset="https://www.technig.com/wp-content/uploads/2022/04/7-4.jpg 434w, https://www.technig.com/wp-content/uploads/2022/04/7-4-300x221.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/7-4-86x64.jpg 86w" sizes="(max-width: 532px) 100vw, 532px" /><figcaption>Specifying the Remote DHCP Server to Access it.</figcaption></figure></div>



<p><strong>3. </strong>Now that the Partner DHCP Server is added to the console, expand it, and you can see that the scope(s) that you chose in the DHCP Failover configuration are replicated and are present in both the servers. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/8-4.jpg" alt="Verifying the DHCP Failover Configuration with Comparing the Replicated Scopes" class="wp-image-17585" width="700" height="365"/><figcaption>Verifying the DHCP Failover Configuration by Comparing the Replicated Scopes</figcaption></figure></div>



<p><strong>4.</strong> One more thing. If you right-click on the DHCP scope(s) configured in DHCP Failover, you will notice the options to <strong>Deconfigure Failover</strong>, <strong>Replicate Scope</strong>, and <strong>Replicate Relationship</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://technig.com/wp-content/uploads/2022/04/9-4.jpg" alt="Verifying DHCP Failover configuration by seeing the Failover Options" class="wp-image-17586" width="700" height="391"/><figcaption>Verifying DHCP Failover configuration by seeing the Failover Options</figcaption></figure></div>



<p>By observing the replicated scope(s) and deconfiguration options for Failover, we can verify that our DHCP Failover configuration is correctly configured. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>In a step by step approach, we covered how to configure a DHCP Failover in Windows Server 2022. We started with an overview of DHCP Failover configuration modes&#8217; concepts. Then, we walked through the steps to practically configure the DHCP Failover. Finally, we remotely accessed our partner DHCP Server and verified the DHCP Failover configuration on it. </p>



<p>As always, I hope this article could be helpful to you. And, if there is any further question and thoughts you might want to share, let us know in the comment section. </p>
<p>The post <a href="https://www.technig.com/configure-dhcp-failover-in-windows-server-2022/">How to Configure DHCP Failover in Windows Server 2022?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-dhcp-failover-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17567</post-id>	</item>
		<item>
		<title>Install DNS in Server 2022 using Server Manager and Powershell</title>
		<link>https://www.technig.com/install-dns-using-server-manager-and-powershell/</link>
					<comments>https://www.technig.com/install-dns-using-server-manager-and-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Tue, 26 Apr 2022 10:18:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DNS Feature]]></category>
		<category><![CDATA[DNS PowerShell Commands]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Service]]></category>
		<category><![CDATA[Install DNS]]></category>
		<category><![CDATA[Install DNS using PowerShell]]></category>
		<category><![CDATA[Remove DNS Using PowerShell]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17605</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install DNS Service in Server 2022 Using Window PowerShell and Server Manager" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>Domain Name System or DNS for short is a fundamental service that resolves names/services to IP addresses and sometimes vice versa. It is a key service that must be running in every network. The very first configuration regarding this topic is installing its capability on the server. Then, there are bundles of configurations and settings [&#8230;]</p>
<p>The post <a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/">Install DNS in Server 2022 using Server Manager and Powershell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install DNS Service in Server 2022 Using Window PowerShell and Server Manager" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>Domain Name System or <a href="https://docs.microsoft.com/en-us/windows-server/networking/dns/dns-top" target="_blank" rel="noreferrer noopener">DNS </a>for short is a fundamental service that resolves names/services to IP addresses and sometimes vice versa. It is a key service that must be running in every network. The very first configuration regarding this topic is installing its capability on the server. Then, there are bundles of configurations and settings to understand and care about. So, as a beginner article regarding DNS, this article covers how to install DNS in Windows Server 2022 using both Server Manager and PowerShell tools. </p>



<p>You may also like to read: <a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Install And Configure DHCP In Windows Server 2022 Using PowerShell</a>.</p>



<h2 class="wp-block-heading">Install DNS Using Server Manager</h2>



<p>Using Server Manager is a user-friendly and easy method to install roles, including DNS, in Windows Server Operating Systems. We just graphically navigate through the options and install it. The steps are listed below. </p>



<p><strong>1. </strong>Open <strong>Server Manager</strong> console. It is present in the <strong>Start Menu</strong> by default. If it is not, search for it. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="696" height="479" src="https://www.technig.com/wp-content/uploads/2022/04/1-5.jpg" alt="Opening Server Manager in Windows Server 2022" class="wp-image-17608" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-5.jpg 696w, https://www.technig.com/wp-content/uploads/2022/04/1-5-300x206.jpg 300w" sizes="(max-width: 696px) 100vw, 696px" /><figcaption>Opening Server Manager in Windows Server 2022</figcaption></figure></div>



<p><strong>2. </strong>On the <strong>Server Manager</strong> console, click on <strong>Manage</strong> in the top-right corner. Then, select <strong>Add Roles and Features</strong> option. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="638" height="289" src="https://www.technig.com/wp-content/uploads/2022/04/2-10.jpg" alt="Add roles and features using Server Manger" class="wp-image-17609" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-10.jpg 638w, https://www.technig.com/wp-content/uploads/2022/04/2-10-300x136.jpg 300w" sizes="(max-width: 638px) 100vw, 638px" /><figcaption>Add roles and features using Server Manager</figcaption></figure></div>



<p><strong>3. </strong>On the <strong>Before You Being</strong> page, just click on <strong>Next </strong>to continue. Choose the <strong>Role-based or feature-based installation</strong> option on Installation Type. Then, click on the <strong>Next </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="786" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/3-6.jpg" alt="Choosing Installation Type for the Role" class="wp-image-17610" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-6.jpg 786w, https://www.technig.com/wp-content/uploads/2022/04/3-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-6-768x547.jpg 768w" sizes="(max-width: 786px) 100vw, 786px" /><figcaption>Choosing Installation Type for the Role</figcaption></figure></div>



<p><strong>4.</strong> On the <strong>Server Selection</strong> section, choose the server on which you want to install DNS and click on the <strong>Next </strong>button, afterwards. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/4-6.jpg" alt="Selecting the Server to Install the DNS Service on it" class="wp-image-17611" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-6.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/4-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-6-768x549.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>Selecting the Server to Install the DNS Service on it</figcaption></figure></div>



<p><strong>5. </strong>In this step, check out the <strong>DNS Serve</strong>r checkbox option on the <strong>Server Roles</strong> section. Click on <strong>Add Features</strong> on the next window that pops up. Finally, click on <strong>Next</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/5-8.jpg" alt="Selecting DNS Role to Install " class="wp-image-17612" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-8.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/5-8-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/5-8-768x549.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>Selecting DNS Role to Install </figcaption></figure></div>



<p><strong>6.</strong> Click on <strong>Next </strong>on both <strong>Features </strong>and<strong> DNS Server</strong> wizards. On the <strong>Confirmation </strong>window, check out the option for the Restart if it needs to during the DNS role installation. And, finally, click on the <strong>Install </strong>button. See the picture below.  </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="783" height="559" src="https://www.technig.com/wp-content/uploads/2022/04/6-6.jpg" alt="Confirming DNS Role Installation on Server" class="wp-image-17613" srcset="https://www.technig.com/wp-content/uploads/2022/04/6-6.jpg 783w, https://www.technig.com/wp-content/uploads/2022/04/6-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/6-6-768x548.jpg 768w" sizes="(max-width: 783px) 100vw, 783px" /><figcaption>Confirming DNS Role Installation on Server</figcaption></figure></div>



<p><strong>7.</strong> Wait for a few moments until the DNS role installation completes. Once completed, click on the <strong>Close </strong>button in the <strong>Result </strong>section. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="555" src="https://www.technig.com/wp-content/uploads/2022/04/7-5.jpg" alt="DNS Installation Result Screen" class="wp-image-17615" srcset="https://www.technig.com/wp-content/uploads/2022/04/7-5.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/7-5-300x212.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/7-5-768x544.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>DNS Installation Result Screen</figcaption></figure></div>



<p>As simple as the above steps, we have installed the DNS Server in Windows Server 2022 using Server Manager. Now, if you open the <strong>Tools </strong>menu on the Server Manager console, you will observe the DNS is present there.</p>



<h2 class="wp-block-heading">Install DNS using Windows PowerShell </h2>



<p>Using <strong>Windows PowerShell</strong> is always a preferred and professional method of accomplishing such tasks. Besides other benefits, it takes us less time. Now, let&#8217;s dive into the brief steps to install DNS using the Windows PowerShell tool. </p>



<p><strong>1. </strong>Open <strong>Windows PowerShell</strong> as administrator. To do so, go to the <strong>Start Menu</strong>, right-click on it and choose <strong>Run as Administrator</strong>. You can also open it using the Run dialogue box by using <code>powershell</code>as command. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="790" height="510" src="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg" alt="Opening Windows PowerShell as administrator " class="wp-image-17469" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg 790w, https://www.technig.com/wp-content/uploads/2022/04/1-3-300x194.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-3-768x496.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/1-3-210x136.jpg 210w" sizes="(max-width: 790px) 100vw, 790px" /><figcaption>Opening Windows PowerShell as an administrator</figcaption></figure></div>



<p><strong>2. </strong>Once you have opened the PowerShell tool, check the DNS if it is available to install. To check the DNS, use the <code>Get-WindowsFeature DNS</code> command. As you can see in the picture below, it is available to install. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="978" height="181" src="https://www.technig.com/wp-content/uploads/2022/04/8-5.jpg" alt="Check DNS Status Using PowerShell Command" class="wp-image-17616" srcset="https://www.technig.com/wp-content/uploads/2022/04/8-5.jpg 978w, https://www.technig.com/wp-content/uploads/2022/04/8-5-300x56.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/8-5-768x142.jpg 768w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption>Checking DNS Feature Status Using PowerShell Command</figcaption></figure></div>



<p><strong>3. </strong>To install DNS run <code>Install-WindowsFeature DNS -IncludeManagementTools</code> PowerShell command. Then, wait for a while until it finishes the installation process. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="978" height="183" src="https://www.technig.com/wp-content/uploads/2022/04/9-5.jpg" alt="Install DNS Using Windows PowerShell Command" class="wp-image-17617" srcset="https://www.technig.com/wp-content/uploads/2022/04/9-5.jpg 978w, https://www.technig.com/wp-content/uploads/2022/04/9-5-300x56.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/9-5-768x144.jpg 768w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption>Install DNS Using Windows PowerShell Command</figcaption></figure></div>



<p><strong>4. </strong>Now that we have installed DNS, once more, run <code>Get-WindowsFeature</code> DNS PowerShell command to verify the installation. You can see in the below picture that it is installed. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="977" height="173" src="https://www.technig.com/wp-content/uploads/2022/04/10-3.jpg" alt="Verify DNS State Using Windows PowerShell Command " class="wp-image-17618" srcset="https://www.technig.com/wp-content/uploads/2022/04/10-3.jpg 977w, https://www.technig.com/wp-content/uploads/2022/04/10-3-300x53.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/10-3-768x136.jpg 768w" sizes="(max-width: 977px) 100vw, 977px" /><figcaption>Verify DNS State Using Windows PowerShell Command </figcaption></figure></div>



<p><strong>5. </strong>It is also the right point to mention how we can uninstall DNS using Windows PowerShell. To uninstall it, run <code>Remove-WindowsFeature DNS</code> PowerShell command. Wait for a moment until it completes the operation. You will receive a message to restart the server if it needs to. you can restart the server using <code>Restart-Computer</code> PowerShell command. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="976" height="258" src="https://www.technig.com/wp-content/uploads/2022/04/11-3.jpg" alt="Uninstalling DNS Using Windows PowerShell Command" class="wp-image-17619" srcset="https://www.technig.com/wp-content/uploads/2022/04/11-3.jpg 976w, https://www.technig.com/wp-content/uploads/2022/04/11-3-300x79.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/11-3-768x203.jpg 768w" sizes="(max-width: 976px) 100vw, 976px" /><figcaption>Uninstalling DNS Using Windows PowerShell Command</figcaption></figure></div>



<p>That is it. We learned how to install and uninstall the DNS in Windows Server 2022 using Windows PowerShell. </p>



<h2 class="wp-block-heading">Summery</h2>



<p>To summarize this article, we have walked through a step-by-step guide on how to install DNS service in Windows Server 2022 using Server Manager and Windows Powershell tools. We covered a detailed illustration to install DNS using Server Manager, first. Then, in a separate section, we discussed the PowerShell commands to install, verify and uninstall DNS in Server 2022. </p>



<p>In the end, I hope you find this article helpful. If you have any further questions, do not hesitate to share us in the comment section. </p>
<p>The post <a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/">Install DNS in Server 2022 using Server Manager and Powershell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/install-dns-using-server-manager-and-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17605</post-id>	</item>
		<item>
		<title>Configure a DHCP Scope in Server 2022 Using PowerShell</title>
		<link>https://www.technig.com/configure-a-dhcp-scope-in-server-2022-using-powershell/</link>
					<comments>https://www.technig.com/configure-a-dhcp-scope-in-server-2022-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Sat, 23 Apr 2022 10:09:43 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Configure DHCP Scope]]></category>
		<category><![CDATA[Create storage pool on Windows Server 2022]]></category>
		<category><![CDATA[DHCP Configuration]]></category>
		<category><![CDATA[DHCP PowerShell Commands]]></category>
		<category><![CDATA[DHCP Scope Commands]]></category>
		<category><![CDATA[DHCP Server]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17409</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure a DHCP Scope Using Windows PowerShell on Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As an essential part of a DHCP Server, we create and configure a DHCP Scope to specify the range of IP addresses from which a DHCP server can assign one to a client in our subnet. That is the primary and well-known use of a DHCP Scope. There are multiple ways to create and configure [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-a-dhcp-scope-in-server-2022-using-powershell/">Configure a DHCP Scope in Server 2022 Using PowerShell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure a DHCP Scope Using Windows PowerShell on Windows Server 2022" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/WinServer2022-5-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>As an essential part of a <a href="https://docs.microsoft.com/en-us/iis/web-hosting/installing-infrastructure-components/dhcp-server" target="_blank" rel="noreferrer noopener">DHCP Server</a>, we create and configure a DHCP Scope to specify the range of IP addresses from which a DHCP server can assign one to a client in our subnet. That is the primary and well-known use of a DHCP Scope. There are multiple ways to create and configure a DHCP Scope in Windows Server OSs including Windows Server 2022. One interesting, easy, and yet professional method is using Windows PowerShell. Throughout this article, we will cover the steps to configure a DHCP Scope in Windows Server 2022 Using PowerShell.</p>



<p>To create and configure a DHCP Scope using the GUI method, read <a href="https://www.technig.com/create-and-configure-a-dhcp-scope-in-windows-server-2022/" target="_blank" rel="noreferrer noopener">Create And Configure A DHCP Scope In Windows Server 2022</a> article. </p>



<p>You may also like to read: <a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/" target="_blank" rel="noreferrer noopener">Install And Configure DHCP In Windows Server 2022 Using PowerShell</a>.</p>



<h2 class="wp-block-heading">DHCP Scope Configuration Steps Using PowerShell</h2>



<p>Using Windows PowerShell, we just write the commands and run them directly. That means, we must know the related commands and have a good knowledge of working with PowerShell. This section will describe all the details to configure a DHCP Scope in Server 2022 using PowerShell in the below simple steps. Let&#8217;s dive into it. </p>



<h3 class="wp-block-heading">Step 1: Open Windows PowerShell </h3>



<p>In the <strong>Start Menu </strong>right-click on <strong>Windows PowerShell</strong> and choose <strong>Run as Administrator.</strong> Search for it if it is not available in the Start Menu. We can also open it from the <strong>Run </strong>by typing <strong>powershell </strong>in the <strong>Run </strong>dialogue box.  </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg" alt="Opening Windows PowerShell as administrator" class="wp-image-17469" width="763" height="493" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg 790w, https://www.technig.com/wp-content/uploads/2022/04/1-3-300x194.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-3-768x496.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/1-3-210x136.jpg 210w" sizes="(max-width: 763px) 100vw, 763px" /><figcaption>Opening Windows PowerShell as an administrator</figcaption></figure></div>



<h3 class="wp-block-heading">Step 2: Create a New DHCP Scope Using PowerShell</h3>



<p>To create a new scope, we use the <strong>Add-DhcpServerv4Scope</strong> PowerShell command. Using this command, we need to specify the following four parameters: </p>



<ul class="wp-block-list"><li>The first one is the scope name. We use the <strong>-Name</strong> parameter name followed by the scope name enclosed in the double quotation. </li><li>Secondly, we specify the start of the range IP address using the <strong>-StartRange </strong>parameter name followed by its value (IP address). </li><li>The third one is to specify the end of the rage IP address using the <strong>-EndRange</strong> parameter name followed by its value (IP address).  </li><li>And, the last one is to specify the subnet mask IP address using <strong>-SubnetMask</strong> parameter name followed by its address. </li></ul>



<p>As of my new scope, the whole command becomes <code>Add-DhcpServerv4Scope -Name "Office B" -StartRange 192.168.1.100 -EndRange 192.168.1.2 -SubnetMask 255.255.255.0</code> See the picture illustration below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="982" height="198" src="https://www.technig.com/wp-content/uploads/2022/04/2-8.jpg" alt="Windows PowerShell Command to Create a New DHCP Scope" class="wp-image-17481" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-8.jpg 982w, https://www.technig.com/wp-content/uploads/2022/04/2-8-300x60.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/2-8-768x155.jpg 768w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption>Windows PowerShell Command to Create a New DHCP Scope</figcaption></figure></div>



<h3 class="wp-block-heading">Step 3: Verify DHCP Scope Using PowerShell</h3>



<p>Now that we have created our new DHCP Scope in step 2, we can verify it using the <code>Get-DhcpServerV4Scope</code>PowerShell command. Using this command, we can see a list of DHCP Scopes available on our DHCP Server. We can see the details for each of the scopes such as <strong>Scop ID</strong> which is most often used for further configuration of a DHCP Scope. See the illustration in the below image. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="945" height="268" src="https://www.technig.com/wp-content/uploads/2022/04/3-4.jpg" alt="Verify DHCP Scope in Server 2022 Using Windows PowerShell" class="wp-image-17484" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-4.jpg 945w, https://www.technig.com/wp-content/uploads/2022/04/3-4-300x85.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-4-768x218.jpg 768w" sizes="(max-width: 945px) 100vw, 945px" /><figcaption>Verify DHCP Scope in Server 2022 Using Windows PowerShell</figcaption></figure></div>



<h3 class="wp-block-heading">Step 4: Add Exclusion Range in a DHCP Scope Using PowerShell</h3>



<p>To add a new Exclusion Range in a DHCP Scope, we use the <strong>Add-DhcpServerv4ExclusionRange</strong> PowerShell command. We specify the scope using the <strong>-ScopeId</strong> property. Then we use the <strong>-StartRange </strong>and <strong>-EndRange</strong> parameters each followed by the IP address that makes up the exclusion range. The command we used to create an exclusion range is<code>Add-DhcpServerv4ExclusionRange -ScopeId 192.168.1.0 -StartRange 192.168.1.150 -EndRange 192.168.1.160</code>. Looking into it, we see that we have created an exclusion range that starts at <strong>192.168.1.150</strong> and ends at <strong>192.168.1.160</strong> in our scope with scope ID <strong>192.168.1.0</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/04/4-4.jpg" alt="Adding Exclusion Range in a DHCP Scope PowerShell Command " class="wp-image-17486" width="840" height="156" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-4.jpg 907w, https://www.technig.com/wp-content/uploads/2022/04/4-4-300x56.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-4-768x143.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption>Adding Exclusion Range in a DHCP Scope PowerShell Command </figcaption></figure></div>



<p>We can also verify the Exclusion Range(s) in a specific DHCP Scope. To do so, use the command <strong>Get-DhcpServerv4ExclusionRange.</strong> We should use the Scope ID with this command to point to our specific Scope. So, our command is <code>Get-DhcpServerv4ExclusionRange -ScopeId 192.168.1.0</code>. As we see, the picture below shows the exclusion range we just created. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="922" height="223" src="https://www.technig.com/wp-content/uploads/2022/04/4-2-1.jpg" alt="Verifying Exclusion Range in DHCP Scope Using PowerShell" class="wp-image-17488" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-2-1.jpg 922w, https://www.technig.com/wp-content/uploads/2022/04/4-2-1-300x73.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-2-1-768x186.jpg 768w" sizes="(max-width: 922px) 100vw, 922px" /><figcaption>Verifying Exclusion Range in DHCP Scope Using PowerShell</figcaption></figure></div>



<h3 class="wp-block-heading">Step 5: Set the Lease Duration Using PowerShell</h3>



<p>Use the <strong>Set-DhcpServerv4Scope</strong> PowerShell command to set the lease duration. We must point to the scope using the<strong> -ScopeId</strong> parameter name followed by its value. Then we just specify the <strong>Lease Duration</strong> using the &#8211;<strong>LeaseDuration</strong> parameter name followed by its value. The format to define the <strong>Lease Duration</strong> value is <strong>day.hours:minutes:seconds</strong>. Saying those explanations, the whole command to define the <strong>Lease Duration</strong>, in our example, is <code>Set-DhcpServerv4Scope -ScopeId 192.168.1.0 -LeaseDuration 10.00:00:00</code>. Also shown in the below image. A duration of 10 days is defined for the Lease Duration in our example. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="980" height="195" src="https://www.technig.com/wp-content/uploads/2022/04/5-6.jpg" alt="Defining Lease Duration for a DHCP Scope using PowerShell" class="wp-image-17500" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-6.jpg 980w, https://www.technig.com/wp-content/uploads/2022/04/5-6-300x60.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/5-6-768x153.jpg 768w" sizes="(max-width: 980px) 100vw, 980px" /><figcaption>Defining Lease Duration for a DHCP Scope using PowerShell</figcaption></figure></div>



<p>Now, to verify the Lease Duration configuration, use <code>Get-DhcpServerv4Scope</code> the command. By default, it is set to 8 days. But as we defined 10 days for it, we can see the changes. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="982" height="235" src="https://www.technig.com/wp-content/uploads/2022/04/6-4.jpg" alt="Verifying DHCP Lease Duration Using PowerShell" class="wp-image-17501" srcset="https://www.technig.com/wp-content/uploads/2022/04/6-4.jpg 982w, https://www.technig.com/wp-content/uploads/2022/04/6-4-300x72.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/6-4-768x184.jpg 768w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption>Verifying DHCP Lease Duration Using PowerShell</figcaption></figure></div>



<h3 class="wp-block-heading">Step 6: Configure the Default Gateway Using PowerShell</h3>



<p>We can specify the <strong>Default Gateway</strong> for a DHCP Scope using the <strong>Set-DhcpServerv4OptionValue</strong> command. Like other steps, we need to point to the Scope using the Scope ID. We use the parameter name <strong>-Router </strong>followed by its value (IP address) to define the <strong>Default Gateway </strong>for a DHCP Scope. In our example, the complete command is <code>Set-DhcpServerv4OptionValue -ScopeId 192.168.1.0 -Router 192.168.1.1</code>.  We set <strong>192.168.1.1</strong> as the<strong> Default Gateway </strong>address for our DHCP Scope. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="982" height="152" src="https://www.technig.com/wp-content/uploads/2022/04/7-3.jpg" alt="Defining Default Gateway Address for a DHCP Scope using PowerShell" class="wp-image-17505" srcset="https://www.technig.com/wp-content/uploads/2022/04/7-3.jpg 982w, https://www.technig.com/wp-content/uploads/2022/04/7-3-300x46.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/7-3-768x119.jpg 768w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption>Defining Default Gateway Address for a DHCP Scope using PowerShell</figcaption></figure></div>



<p>We will verify the Default Gateway configuration at the end of the next step, as we use the same command to verify these two steps.</p>



<h3 class="wp-block-heading">Step 7: Configure DNS Domain and DNS Server Using PowerShell</h3>



<p>As the Default Gateway configuration, we use the <strong>Set-DhcpServerv4OptionValue</strong> PowerShell command to configure the <strong>DNS Domain</strong> and <strong>DNS Server</strong>. We can configure the three of them in one command line using their parameter names and their values. Use <strong>-DnsServer</strong> parameter name followed by its value (IP Address) to configure the DNS Server. Use the <strong>-DnsDomain</strong> parameter name followed by its value enclosed in double quotation to configure the DNS Domain. Remember to address the scope using the <strong>Scope ID</strong> properties. In my example, the whole command becomes <code>Set-DhcpServerv4OptionValue -ScopeId 192.168.1.0 -DnsServer 192.168.1.2 -DnsDomain "Technig.com"</code>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="980" height="129" src="https://www.technig.com/wp-content/uploads/2022/04/8-3.jpg" alt="Configuring DNS Server and DNS Domain in a DHCP Scope Using PowerShell" class="wp-image-17507" srcset="https://www.technig.com/wp-content/uploads/2022/04/8-3.jpg 980w, https://www.technig.com/wp-content/uploads/2022/04/8-3-300x39.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/8-3-768x101.jpg 768w" sizes="(max-width: 980px) 100vw, 980px" /><figcaption>Configuring DNS Server and DNS Domain in a DHCP Scope Using PowerShell</figcaption></figure></div>



<p>To verify the Default Gateway configuration, DNS Server configuration, and DNS Domain configuration, use the <strong>Get-DhcpServerv4OptionValue</strong> PowerShell command followed by the Scope ID properties. In my case, <code>Get-DhcpServerv4OptionValue -ScopeId 192.168.1.0</code> is the whole command line. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="938" height="287" src="https://www.technig.com/wp-content/uploads/2022/04/9-3.jpg" alt="Verify DNS Server, DNS Domain and Default Gateway Configurations Using PowerShell" class="wp-image-17509" srcset="https://www.technig.com/wp-content/uploads/2022/04/9-3.jpg 938w, https://www.technig.com/wp-content/uploads/2022/04/9-3-300x92.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/9-3-768x235.jpg 768w" sizes="(max-width: 938px) 100vw, 938px" /><figcaption>Verify DNS Server, DNS Domain and Default Gateway Configurations Using PowerShell</figcaption></figure></div>



<p>That is all with the DHCP Scope configuration using PowerShell commands. We can do all the settings and configuration, which we could do with the GUI method, using PowerShell. This method may not be user-friendly, but it is a time-saving, professional and maybe elegant method. </p>



<h3 class="wp-block-heading">Delete A DHCP Scope Using PowerShell</h3>



<p>In addition to the above DHCP configuration steps, this is the appropriate point to describe how we can delete a DHCP Scope using Windows PowerShell. To delete a DHCP Scope, use the <strong>-Remove-DhcpServerv4Scope</strong> command followed by the <strong>-ScopeId</strong> properties. Considering the DHCP scope I work with, the complete command is <code>-Remove-DhcpServerv4Scope -ScopeId 192.168.1.10</code>. See the picture below. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="937" height="154" src="https://technig.com/wp-content/uploads/2022/04/10-2.jpg" alt="Removing a DHCP Scope using PowerShell" class="wp-image-17515" srcset="https://www.technig.com/wp-content/uploads/2022/04/10-2.jpg 937w, https://www.technig.com/wp-content/uploads/2022/04/10-2-300x49.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/10-2-768x126.jpg 768w" sizes="(max-width: 937px) 100vw, 937px" /><figcaption>Removing a DHCP Scope using PowerShell</figcaption></figure></div>



<p>Now, to verify if it is deleted, run the <strong>Get-DhcpServerV4Scope</strong> command and there will no longer be that scope available. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="937" height="141" src="https://technig.com/wp-content/uploads/2022/04/11-2.jpg" alt="Verifying DHCP Scope deletion using PowerShell" class="wp-image-17516" srcset="https://www.technig.com/wp-content/uploads/2022/04/11-2.jpg 937w, https://www.technig.com/wp-content/uploads/2022/04/11-2-300x45.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/11-2-768x116.jpg 768w" sizes="(max-width: 937px) 100vw, 937px" /><figcaption>Verifying DHCP Scope deletion using PowerShell</figcaption></figure></div>



<p>As simple as that, we can delete a DHCP Scope and verify the deletion using Windows PowerShell. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>In a step by step approach, we covered how to configure a DHCP Scope in Windows Server 2022 using Windows PowerShell. We discussed the PowerShell command for creating a new DHCP Scope in an initial step. Then we went through the steps to add an exclusion range, the default gateway, DNS Domain, and DNS Server to a DHCP Scope all using the PowerShell command. Of course, we also verified each step. Lastly, we covered how we can remove a DHCP scope using PowerShell.</p>



<p>I hope you found this article helpful to your questions. You can always share us your thoughts and queries in the comment section.</p>
<p>The post <a href="https://www.technig.com/configure-a-dhcp-scope-in-server-2022-using-powershell/">Configure a DHCP Scope in Server 2022 Using PowerShell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-a-dhcp-scope-in-server-2022-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17409</post-id>	</item>
	</channel>
</rss>
