
<?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>Windows PowerShell Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/windows-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/windows-powershell/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 23 Mar 2024 14:14:34 +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>Windows PowerShell Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/windows-powershell/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Remove Login Password on Windows 11?</title>
		<link>https://www.technig.com/remove-login-password-on-windows-11/</link>
					<comments>https://www.technig.com/remove-login-password-on-windows-11/#respond</comments>
		
		<dc:creator><![CDATA[Habib Sarwari]]></dc:creator>
		<pubDate>Sat, 21 May 2022 06:50:00 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Change User Account Password]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Password Recovery]]></category>
		<category><![CDATA[Password Settings Policy]]></category>
		<category><![CDATA[Recover Password]]></category>
		<category><![CDATA[Reset Lost Password]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows 11 Configuration]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Security]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17990</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window.webp" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Remove Login Password on Windows 11" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window.webp 1200w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-300x158.webp 300w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-1024x538.webp 1024w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-768x403.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>You set the password on your computer to protect your privacy and ensure the safety of your data. However, it might get redundant to enter the password each time you sign in to your computer. You can find numerous articles written about turning off the lock screen password on your computer on google. I checked [&#8230;]</p>
<p>The post <a href="https://www.technig.com/remove-login-password-on-windows-11/">How to Remove Login Password on Windows 11?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window.webp" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Remove Login Password on Windows 11" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window.webp 1200w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-300x158.webp 300w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-1024x538.webp 1024w, https://www.technig.com/wp-content/uploads/2022/05/Registry-Editor-Window-768x403.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>You set the password on your computer to protect your privacy and ensure the safety of your data. However, it might get redundant to enter the password each time you sign in to your computer. You can find numerous articles written about turning off the lock screen password on your computer on google. I checked them, and some may not work on your computer. In the following article, you will learn easy and tested ways to remove (disable) a login password on Windows 11.</p>



<p>Read about: <a href="https://www.technig.com/reset-windows-11-password-from-command-prompt/" target="_blank" rel="noreferrer noopener nofollow">Reset Windows 11 Password from Command Prompt</a></p>



<h2 class="wp-block-heading"><strong>Remove the login password from the registry.</strong></h2>



<p>Working with the registry is a critical process and requires taking extra caution. You can disable the Microsoft account password or local user password with the registry. To disable the login password from the registry, follow the steps below:</p>



<ol class="wp-block-list" type="1"><li>Press the <strong>Windows + R</strong> button to open the run box.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="564" height="331" src="https://www.technig.com/wp-content/uploads/2022/05/Run.png" alt="How to Remove Login Password (Sign in Window) on Windows 11?" class="wp-image-18004" srcset="https://www.technig.com/wp-content/uploads/2022/05/Run.png 564w, https://www.technig.com/wp-content/uploads/2022/05/Run-300x176.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Run-357x210.png 357w" sizes="(max-width: 564px) 100vw, 564px" /><figcaption>Enter the regedit</figcaption></figure></div>


<ol class="wp-block-list" start="2"><li> Write the <strong>Regedit </strong>in the Run box and click ok. Allow the user to make changes.</li><li>Navigate to the following path: <strong>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon</strong></li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/Registry-1-1024x705.png" alt="How to Remove Login Password (Sign in Window) on Windows 11?" class="wp-image-17998" width="768" height="529" srcset="https://www.technig.com/wp-content/uploads/2022/05/Registry-1-1024x705.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Registry-1-300x207.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Registry-1-768x529.png 768w, https://www.technig.com/wp-content/uploads/2022/05/Registry-1.png 1446w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>Registry Editor Window</figcaption></figure></div>


<ol class="wp-block-list" start="4"><li> In the <strong>Winlogon </strong>folder, find the ‘<strong>DefaultUserName</strong>’ string. If you did not find it, create a new String by right-clicking on the Winlogon folder, then<strong> New&gt;String Value</strong>. Rename it with the <strong>DefaultUserName</strong> and double-click on it to open.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/Create-New-String-1-1024x636.png" alt="How to Remove Login Password (Sign in Window) on Windows 11?" class="wp-image-17997" width="768" height="477" srcset="https://www.technig.com/wp-content/uploads/2022/05/Create-New-String-1-1024x636.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-String-1-300x186.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-String-1-768x477.png 768w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-String-1.png 1328w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>Create New String</figcaption></figure></div>


<ol class="wp-block-list" start="5"><li> In the Edit String window, enter your Microsoft account, User Name, or Other ID that you want to disable their password in the Value data and click ok to save the changes.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="570" height="254" src="https://www.technig.com/wp-content/uploads/2022/05/User-Name.png" alt="How to Remove Login Password (Sign in Window) on Windows 11?" class="wp-image-18115" srcset="https://www.technig.com/wp-content/uploads/2022/05/User-Name.png 570w, https://www.technig.com/wp-content/uploads/2022/05/User-Name-300x134.png 300w" sizes="(max-width: 570px) 100vw, 570px" /><figcaption>Write UserName</figcaption></figure></div>


<ol class="wp-block-list" start="6"><li> Find another string with ‘<strong>DefualtPassword</strong>’ or create a new one and rename that as ‘<strong>DefualtPassword</strong>.’</li><li>Double click on the <strong>DefualtPassword</strong> string and enter the password of the related account in the <strong>Value data</strong> and click ok.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/DefaultPassword-1-1024x678.png" alt="Create DefualtPassword String" class="wp-image-18000" width="768" height="509" srcset="https://www.technig.com/wp-content/uploads/2022/05/DefaultPassword-1-1024x678.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/DefaultPassword-1-300x199.png 300w, https://www.technig.com/wp-content/uploads/2022/05/DefaultPassword-1-768x509.png 768w, https://www.technig.com/wp-content/uploads/2022/05/DefaultPassword-1.png 1380w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>Create DefualtPassword String</figcaption></figure></div>


<ol class="wp-block-list" start="8"><li> Now find the ‘<strong>AutoAdminLogon</strong>’ string in the Winlogon folder or create a new one and name it AutoAdminLogon.</li><li>Double click on the ‘AutoAdminLogon’ string, set its value data to 1, and click Ok.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="570" height="251" src="https://www.technig.com/wp-content/uploads/2022/05/AutoAdminLogon.png" alt="AutoAdminLogon Window" class="wp-image-18002" srcset="https://www.technig.com/wp-content/uploads/2022/05/AutoAdminLogon.png 570w, https://www.technig.com/wp-content/uploads/2022/05/AutoAdminLogon-300x132.png 300w" sizes="(max-width: 570px) 100vw, 570px" /><figcaption>AutoAdminLogon String</figcaption></figure></div>


<p>Finally, after the restart, you will automatically log in (Without a password) to your computer.</p>



<h2 class="wp-block-heading"><strong>How to remove the login password with Command Prompt?</strong></h2>



<p>If you are signing into your computer with a local account, removing the password is more effortless. One easy way to remove the local account password is through the CMD.</p>



<ol class="wp-block-list" type="1"><li>Open the command prompt as administrator.</li><li>Write the <strong><code>net user</code></strong> and enter; see the list of all user accounts on your computer.</li><li>Now write <strong><code>net user username *</code></strong> and enter. (instead of the username, write the name of the user you want to disable its password)</li><li>Instead of writing the password for the selected user, enter without writing anything. (they should be blank)</li><li>Do not write anything in the confirmation password, and press enter.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="754" height="136" src="https://www.technig.com/wp-content/uploads/2022/05/Command-Prompt.png" alt="Remove Password with Command Prompt" class="wp-image-18117" srcset="https://www.technig.com/wp-content/uploads/2022/05/Command-Prompt.png 754w, https://www.technig.com/wp-content/uploads/2022/05/Command-Prompt-300x54.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Command-Prompt-750x136.png 750w" sizes="(max-width: 754px) 100vw, 754px" /><figcaption>Reset Password Using CMD</figcaption></figure></div>


<ol class="wp-block-list" start="6"><li> You will see a message saying, ‘<strong>The command was completed successfully</strong>.</li></ol>



<p>You just turned off the lock screen password on Windows 11. Restart your computer, and you will log in without a password.</p>



<h2 class="wp-block-heading"><strong>Disable the login password on Windows 11 from the User Account Panel.</strong></h2>



<p>Another way to disable the user account password on Windows 11 is through the User Account Panel.</p>



<ol class="wp-block-list" type="1"><li>Write the <strong>Netplwiz </strong>in the Run box and click ok. (Or write the <strong>Netplwiz</strong> in the search box and open it)</li><li>Select the intended account from the user account panel, uncheck the box, and click ok. ( If you cannot select the intended account at first, check the above box once, then choose the desired account, and then uncheck the box )</li></ol>


<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/05/User-Account.png" alt="User Account Panel Window" class="wp-image-18118" width="489" height="614" srcset="https://www.technig.com/wp-content/uploads/2022/05/User-Account.png 652w, https://www.technig.com/wp-content/uploads/2022/05/User-Account-239x300.png 239w" sizes="(max-width: 489px) 100vw, 489px" /><figcaption>User Account Panel Window</figcaption></figure></div>


<ol class="wp-block-list" start="3"><li> Enter the account’s password and confirm the password, then click <strong>ok</strong>.</li></ol>


<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/05/Enter-the-password-2.png" alt="Enter the password" class="wp-image-18119" width="482" height="306" srcset="https://www.technig.com/wp-content/uploads/2022/05/Enter-the-password-2.png 643w, https://www.technig.com/wp-content/uploads/2022/05/Enter-the-password-2-300x190.png 300w" sizes="(max-width: 482px) 100vw, 482px" /><figcaption>Enter the Password</figcaption></figure></div>


<p>Finally, restart your computer; you will log in without a password.</p>



<h3 class="wp-block-heading"><strong>Conclusions</strong></h3>



<p>If you get tired of entering the password with each login, you can follow the above methods to remove the login password on Windows 11. I hope the article can help solve your problems.</p>
<p>The post <a href="https://www.technig.com/remove-login-password-on-windows-11/">How to Remove Login Password on Windows 11?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/remove-login-password-on-windows-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17990</post-id>	</item>
		<item>
		<title>How to Add New User Account on Windows Server 2022</title>
		<link>https://www.technig.com/add-new-user-account-on-windows-server-2022/</link>
					<comments>https://www.technig.com/add-new-user-account-on-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Habib Sarwari]]></dc:creator>
		<pubDate>Fri, 20 May 2022 07:04:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Create User Account]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Local Users]]></category>
		<category><![CDATA[User Configuration]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2016]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17889</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Create-User-account.webp" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create New User Account" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Create-User-account.webp 1200w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-300x158.webp 300w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-1024x538.webp 1024w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-768x403.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>Whenever a new server administrator or user comes on board, you need to get him a new user account to let them join the network and start his/her job. In the following article, I will create a new user account by the name of Ali Hasnain using Server Manager and PowerShell. By the end of [&#8230;]</p>
<p>The post <a href="https://www.technig.com/add-new-user-account-on-windows-server-2022/">How to Add New User Account on 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="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Create-User-account.webp" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create New User Account" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Create-User-account.webp 1200w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-300x158.webp 300w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-1024x538.webp 1024w, https://www.technig.com/wp-content/uploads/2022/05/Create-User-account-768x403.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>Whenever a new server administrator or user comes on board, you need to get him a new user account to let them join the network and start his/her job. In the following article, I will create a new user account by the name of Ali Hasnain<strong> </strong>using Server Manager and PowerShell. By the end of this article, I hope you can easily add a new user to <a href="https://www.microsoft.com/en-us/windows-server" target="_blank" rel="noreferrer noopener nofollow">Windows Server</a> 2022.</p>



<p><strong>Related:</strong> <a href="https://technig.com/free-download-windows-server-2022-iso-file/" target="_blank" rel="noreferrer noopener nofollow">Download Windows Server 2022 ISO File for Free</a></p>



<h2 class="wp-block-heading"><strong>Add new user on Windows Server 2022</strong></h2>



<p>You can add a new user account on Windows Server either through PowerShell or Server Manager.</p>



<h3 class="wp-block-heading"><strong>How to add </strong>a new user<strong> using Server Manager?</strong></h3>



<p>To add a new user via the Server Manager, follow the steps below:</p>



<ol class="wp-block-list" type="1"><li>Open the <strong>Server Manager</strong> (You can search it in the Search Box or open it from the Start Menu)</li><li>Click on the <strong>Tools</strong> on the top right-hand side of the Server Manager Dashboard window. Find, <strong>Active Directory Users and Computers</strong> from the drop-down menu and click on it.</li></ol>


<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/05/New-Users-1.png" alt="How to Add New User Account on Windows Server (2022)" class="wp-image-17893" width="407" height="321" srcset="https://www.technig.com/wp-content/uploads/2022/05/New-Users-1.png 543w, https://www.technig.com/wp-content/uploads/2022/05/New-Users-1-300x236.png 300w, https://www.technig.com/wp-content/uploads/2022/05/New-Users-1-279x220.png 279w" sizes="(max-width: 407px) 100vw, 407px" /><figcaption>Add New Users</figcaption></figure></div>


<ol class="wp-block-list" start="3"><li>On the Active Directory Users and Computers window, you will see the domain name on the top left-hand side. Click on the domain name to expand it.</li><li>There are multiple folders (containers) and organizational units. Find the <strong>Users</strong> container and left-click on it. You will see all the existing users and groups.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/New-user-1024x720.png" alt="How to Add New User Account on Windows Server (2022)" class="wp-image-18124" width="768" height="540" srcset="https://www.technig.com/wp-content/uploads/2022/05/New-user-1024x720.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/New-user-300x211.png 300w, https://www.technig.com/wp-content/uploads/2022/05/New-user-768x540.png 768w, https://www.technig.com/wp-content/uploads/2022/05/New-user.png 1126w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>Expand the Domain Name</figcaption></figure></div>


<ol class="wp-block-list" start="5"><li> If you right-click on the Users folder, a right-click menu shows up. Then click on the <strong>New</strong> &gt; <strong>Users</strong> to add a new user.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/Create-New-User-1024x781.png" alt="How to Add New User Account on Windows Server (2022)" class="wp-image-18125" width="768" height="586" srcset="https://www.technig.com/wp-content/uploads/2022/05/Create-New-User-1024x781.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-User-300x229.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-User-768x586.png 768w, https://www.technig.com/wp-content/uploads/2022/05/Create-New-User.png 1134w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>Create New User</figcaption></figure></div>


<ol class="wp-block-list" start="6"><li> Fill in the new user&#8217;s first name, last name, and user login name in the new dialog box and click <strong>next</strong>.</li></ol>


<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/05/Ali-Hasnain-User.png" alt="Fill all the records for new user" class="wp-image-18126" width="491" height="425" srcset="https://www.technig.com/wp-content/uploads/2022/05/Ali-Hasnain-User.png 654w, https://www.technig.com/wp-content/uploads/2022/05/Ali-Hasnain-User-300x260.png 300w" sizes="(max-width: 491px) 100vw, 491px" /><figcaption>Fill the Details</figcaption></figure></div>


<ol class="wp-block-list" start="7"><li> Enter the <strong>new password</strong>, and confirm it. Moreover, there are four options that you can check or uncheck according to your wish. If you want the user to change the password at the next login, tick the first option. Select the second option if you do not allow the user to change the password. You can read each option&#8217;s instructions and act according to your wish.</li></ol>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/Password.png" alt="Fill all the records for new user" class="wp-image-18127" width="488" height="421" srcset="https://www.technig.com/wp-content/uploads/2022/05/Password.png 651w, https://www.technig.com/wp-content/uploads/2022/05/Password-300x259.png 300w" sizes="(max-width: 488px) 100vw, 488px" /><figcaption>Enter the Passwords</figcaption><div>
</div></figure>



<p>You have created a new user account, go back to the <strong>Users </strong>container, and see the new user added to the list. If you want to edit the user information, you can double-click on the user and add or change the user information from the user&#8217;s properties.</p>



<h3 class="wp-block-heading"><strong>How to create a Local User Account on Windows Server from PowerShell?</strong></h3>



<p>The second way to create a user account on Windows Server 2022 is through <strong><a href="https://docs.microsoft.com/en-us/powershell/" target="_blank" rel="noreferrer noopener nofollow">PowerShell</a>.</strong> To do that, you must run <strong>PowerShell ISE</strong> as an administrator. In the PowerShell window, write the following commands and enter:</p>



<p><strong><code>New-LocalUser –Name “Name_of_the_User” –NoPassword &nbsp;</code></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1006" height="120" src="https://www.technig.com/wp-content/uploads/2022/05/Create-new-user-with-powerShell.png" alt="Add User Without Password" class="wp-image-18128" srcset="https://www.technig.com/wp-content/uploads/2022/05/Create-new-user-with-powerShell.png 1006w, https://www.technig.com/wp-content/uploads/2022/05/Create-new-user-with-powerShell-300x36.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Create-new-user-with-powerShell-768x92.png 768w" sizes="(max-width: 1006px) 100vw, 1006px" /><figcaption>Add New User With PowerShell</figcaption></figure></div>


<p>The above command creates a new user without a password. Remember to write the new user&#8217;s name between the quotation marks. If you want to add more details of the new user, such as full name and description, write the command below:</p>



<p><code><strong>New-LocalUser –Name "Name_of_The_User" –FullName "Full_Name_of_User" –Description "write the description for the user" –NoPassword</strong>.</code></p>



<p>This command adds a description and full name for the new user. (Write the description and full name between the quotation marks).</p>



<p>If you want to create a new user with a password, first, you must define a variable ($Password Statement) to store the password securely as a secure string. Write the below command and enter. A password box pops up, enter the password and click <strong>OK</strong>.</p>



<p><strong><code>$Password = Read-Host –AsSecureString</code></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="169" src="https://www.technig.com/wp-content/uploads/2022/05/Password-statement-1024x169.png" alt="Define password statement" class="wp-image-18129" srcset="https://www.technig.com/wp-content/uploads/2022/05/Password-statement-1024x169.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Password-statement-300x50.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Password-statement-768x127.png 768w, https://www.technig.com/wp-content/uploads/2022/05/Password-statement.png 1222w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Create Password Statement</figcaption></figure></div>


<p>The $Password statement defines a variable to save the password as a secure string. Now write the command below to create a new user.</p>



<p><strong><code>New-LocalUser –name “Name_of_User” –Password $Password</code></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="135" src="https://www.technig.com/wp-content/uploads/2022/05/create-user-with-password-3-1024x135.png" alt="Create user with password" class="wp-image-18130" srcset="https://www.technig.com/wp-content/uploads/2022/05/create-user-with-password-3-1024x135.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/create-user-with-password-3-300x39.png 300w, https://www.technig.com/wp-content/uploads/2022/05/create-user-with-password-3-768x101.png 768w, https://www.technig.com/wp-content/uploads/2022/05/create-user-with-password-3.png 1057w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Create User With Password</figcaption></figure></div>


<p>Instead of giving a password directly, you may notice that we used the variable name ($password), and this variable name contains the password.</p>



<p>Now you created a user with PowerShell. To see the list of users, write the command below and enter:</p>



<p><strong><code>Get-LocalUser</code></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="907" height="225" src="https://www.technig.com/wp-content/uploads/2022/05/List-of-users-2.png" alt="List of Users" class="wp-image-18131" srcset="https://www.technig.com/wp-content/uploads/2022/05/List-of-users-2.png 907w, https://www.technig.com/wp-content/uploads/2022/05/List-of-users-2-300x74.png 300w, https://www.technig.com/wp-content/uploads/2022/05/List-of-users-2-768x191.png 768w" sizes="(max-width: 907px) 100vw, 907px" /><figcaption>See List of Users</figcaption></figure></div>


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



<p>In this article, you have learned to create a new user using the Server Manager and PowerShell. You can now create a new user on your Windows Server system and use that account easily to log into your system.</p>



<p>You may like: <a href="https://www.technig.com/disable-server-manager-auto-launch-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">How to Disable Server Manager Auto-Launch in Windows Server 2022</a></p>
<p>The post <a href="https://www.technig.com/add-new-user-account-on-windows-server-2022/">How to Add New User Account on Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/add-new-user-account-on-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17889</post-id>	</item>
		<item>
		<title>Run PowerShell as Administrator in Windows Server 2022</title>
		<link>https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/</link>
					<comments>https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Tue, 17 May 2022 09:46:15 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2016]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17880</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="853" height="510" src="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Run PowerShell as Administrator" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png 853w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-300x179.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-768x459.png 768w" sizes="(max-width: 853px) 100vw, 853px" /></div>
<p>Opening PowerShell as an administrator will give you the ability to execute scripts with administrative rights. To speed up your skills, you have to know how to run PowerShell as an Administrator in different ways, especially if you are using Windows Server 2022. For example, you are running commands in Command Prompt, and you need [&#8230;]</p>
<p>The post <a href="https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/">Run PowerShell as Administrator 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="853" height="510" src="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Run PowerShell as Administrator" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png 853w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-300x179.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-768x459.png 768w" sizes="(max-width: 853px) 100vw, 853px" /></div>
<p>Opening PowerShell as an administrator will give you the ability to execute scripts with administrative rights. To speed up your skills, you have to know how to run PowerShell as an Administrator in different ways, especially if you are using Windows Server 2022. For example, you are running commands in Command Prompt, and you need to open PowerShell. You should be able to open PowerShell directly from Command Prompt instead of minimizing Command Prompt and opening PowerShell in another way.</p>



<h2 class="wp-block-heading">Run PowerShell as Administrator From Graphical User Interface</h2>



<p>The Windows Server 2022 comes with two major types, Desktop Experience, and Core versions. The Desktop Experience editions will allow you to do tasks in a graphical environment, but using the core versions, you have to run PowerShell, and CMD commands.</p>



<p><strong>Start Menu:</strong> to open PowerShell with administrative capabilities from the start menu, click on the <strong>Windows icon</strong> or press the <strong>Windows key</strong>. Right-click on <strong>Windows PowerShell,</strong> then click on <strong>Run as administrator</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="706" height="678" src="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1.png" alt="Run PowerShell as administrator" class="wp-image-17949" srcset="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1.png 706w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1-300x288.png 300w" sizes="(max-width: 706px) 100vw, 706px" /><figcaption>Run PowerShell as administrator from the Start menu.</figcaption></figure></div>



<p><strong>Search Bar:</strong> if for any reason you unpin PowerShell from the Start menu, you can open it from the windows search bar. Type <strong>Windows PowerShell</strong> in the search bar, right-click on it, then click on <strong>Run as administrator</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="549" height="678" src="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1.png" alt="Run PowerShell as administrator" class="wp-image-17951" srcset="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1.png 549w, https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1-243x300.png 243w" sizes="(max-width: 549px) 100vw, 549px" /><figcaption>Run PowerShell as administrator from the Search bar.</figcaption></figure></div>



<p><strong>Windows Run:</strong> press <strong>Win+R</strong> to open the <strong>Run</strong>, type <strong>PowerShell</strong> in it, then press <strong>Ctrl+Shift+Enter</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/05/Run-PowerShell-as-Administrator-from-Run..png" alt="Run PowerShell as Administrator." class="wp-image-17952" width="526" height="293" srcset="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-Run..png 410w, https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-Run.-300x167.png 300w" sizes="(max-width: 526px) 100vw, 526px" /><figcaption>Run PowerShell as administrator from Run.</figcaption></figure></div>



<p>It is easy to run PowerShell using GUI tools, but sometimes you are not in the graphical interface. A good example is Windows Server core editions. You must know how to run PowerShell from the command line interface.</p>



<p>Click on this article to learn <a href="https://technig.com/replace-powershell-with-cmd-window-10/" target="_blank" rel="noreferrer noopener">how to replace PowerShell with cmd in Windows 10?</a></p>



<h2 class="wp-block-heading">Run Powershell as Administrator From Command Line Interface</h2>



<p>In non-GUI windows operating systems, you will have to use Command Prompt and PowerShell to do tasks. There is no Run or Start menu to open PowerShell. You will use Command Prompt.</p>



<p><strong>Command Prompt:</strong> Open Command Prompt, type <strong>PowerShell</strong>, and press Enter key. The<strong> PS</strong> will be added at the beginning of your commands. It means you have opened PowerShell but not as an administrator. Execute the <code>Start-Process PowerShell -Verb runAs</code> command. Enter a username and password with administrative access.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="505" height="165" src="//i0.wp.com/technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1.png" alt="" class="wp-image-18040" srcset="https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1.png 505w, https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1-300x98.png 300w" sizes="(max-width: 505px) 100vw, 505px" /><figcaption>Run PowerShell as administrator from the command prompt.</figcaption></figure></div>



<p><strong>PowerShell:</strong> if you opened PowerShell on your computer and want to open it as administrator. Just execute the <code>Start-Process PowerShell -Verb runAs</code> command, then enter the administrator user name and password.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="494" height="120" src="//i0.wp.com/technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell.png" alt="" class="wp-image-18039" srcset="https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell.png 494w, https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell-300x73.png 300w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>Run PowerShell as administrator from the standard PowerShell.</figcaption></figure></div>



<p>The ability to work in both GUI and CLI is important for everyone using Windows Server. I hope that I can cover every detail about how to run PowerShell as an administrator in Windows Server 2022.</p>



<p>Learn more about <a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started?view=powershell-7.2" target="_blank" rel="noreferrer noopener">PowerShell</a>.</p>
<p>The post <a href="https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/">Run PowerShell as Administrator 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/run-powershell-as-administrator-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17880</post-id>	</item>
		<item>
		<title>How to Join Windows 11 to Domain using PowerShell</title>
		<link>https://www.technig.com/join-windows-11-to-domain-using-powershell/</link>
					<comments>https://www.technig.com/join-windows-11-to-domain-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Habib Sarwari]]></dc:creator>
		<pubDate>Mon, 16 May 2022 07:57:49 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows Configuration]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<category><![CDATA[Windows Settings]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=18045</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Windows 11 Tips" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73.png 1200w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-300x158.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-1024x538.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-768x403.png 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>You can set up a local network with central authentication and join that network to use the shared resources. If you want to join your windows 11 client computer to an active directory domain, and don&#8217;t know where to start, you are in the right place. In these tutorials, you learn how to join the [&#8230;]</p>
<p>The post <a href="https://www.technig.com/join-windows-11-to-domain-using-powershell/">How to Join Windows 11 to Domain 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="1200" height="630" src="https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Windows 11 Tips" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73.png 1200w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-300x158.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-1024x538.png 1024w, https://www.technig.com/wp-content/uploads/2022/05/Screenshot-73-768x403.png 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></div>
<p>You can set up a <a href="https://en.wikipedia.org/wiki/Local_area_network" target="_blank" rel="noreferrer noopener nofollow">local network</a> with central authentication and join that network to use the shared resources. If you want to join your windows 11 client computer to an active directory domain, and don&#8217;t know where to start, you are in the right place.  In these tutorials, you learn how to join the computer running Windows 11 operating system to a domain from PowerShell and computer settings.</p>



<p><strong>Related</strong>: <a href="https://www.technig.com/set-static-ip-address-on-windows-11/" target="_blank" rel="noreferrer noopener nofollow">How to Set Static IP Address on Windows 11</a></p>



<h3 class="wp-block-heading"><strong>Important notes</strong> before joining your computer to a domain!</h3>



<ol class="wp-block-list" type="1"><li>Ensure the network connectivity</li><li>Set a unique name for your client’s computer</li><li>Make sure to have e DNS connection</li><li>Log in as an administrator account</li><li>Know the domain name you want to join</li></ol>



<h2 class="wp-block-heading"><strong>Join Windows 11 computer to a domain from computer settings</strong></h2>



<p>This is a common graphical method to join your computer to the domain environment. To do that, follow the steps below:</p>



<ol class="wp-block-list" type="1"><li>First of all, open the system properties: press <strong>Windows+R</strong> to open the Run and write <strong>sysdm. Cpl </strong>then clicks <strong>ok</strong>.</li><li>Click on the ‘<strong>change</strong>’ button in the system properties dialogue box.</li></ol>


<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/05/System-Properties.png" alt="How to Join Windows 11 to Domain (PowerShell and Settings)" class="wp-image-18046" width="456" height="527" srcset="https://www.technig.com/wp-content/uploads/2022/05/System-Properties.png 608w, https://www.technig.com/wp-content/uploads/2022/05/System-Properties-259x300.png 259w" sizes="(max-width: 456px) 100vw, 456px" /><figcaption>System Properties Window</figcaption></figure></div>


<ol class="wp-block-list" type="1" start="3"><li>Select the radio button before the domain name and input the domain name in the text box; click <strong>ok</strong>.</li></ol>


<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/05/Change-the-Domain.png" alt="How to Join Windows 11 to Domain (PowerShell and Settings)" class="wp-image-18047" width="359" height="443" srcset="https://www.technig.com/wp-content/uploads/2022/05/Change-the-Domain.png 479w, https://www.technig.com/wp-content/uploads/2022/05/Change-the-Domain-243x300.png 243w" sizes="(max-width: 359px) 100vw, 359px" /><figcaption>Enter the Domain Name</figcaption></figure></div>


<ol class="wp-block-list" type="1" start="4"><li>A security window pops up asking for the username and password of the domain you want to join. Write them and enter.</li></ol>


<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/05/Domain-Credential-1.png" alt="How to Join Windows 11 to Domain (PowerShell and Settings)" class="wp-image-18049" width="507" height="430" srcset="https://www.technig.com/wp-content/uploads/2022/05/Domain-Credential-1.png 676w, https://www.technig.com/wp-content/uploads/2022/05/Domain-Credential-1-300x254.png 300w" sizes="(max-width: 507px) 100vw, 507px" /><figcaption>Enter the UserName and Password of the Domain</figcaption></figure></div>


<ol class="wp-block-list" type="1" start="5"><li>A tiny window welcomes you to the domain; click <strong>Ok</strong>.</li><li>A window will prompt you to restart the computer. After the restart, your computer is a member of the network.</li></ol>



<h2 class="wp-block-heading"><strong>How to join your computer to the domain using PowerShell?</strong></h2>



<p>Another easy way to join the Active Directory Domain is through <strong>PowerShell</strong>. You can add your computer to a network using PowerShell with the below steps:</p>



<ol class="wp-block-list" type="1"><li>Search the <strong>Windows PowerShell</strong> in the search box and run it as administrator.</li><li>Write the <strong><code>Add-Computer –DomainName “Domain-Name” –Credential “Domain-UserName”</code></strong> in the PowerShell window and enter.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="949" height="79" src="https://www.technig.com/wp-content/uploads/2022/05/PowerShell-CMD.png" alt="How to Join Windows 11 to Domain (PowerShell and Settings)" class="wp-image-18051" srcset="https://www.technig.com/wp-content/uploads/2022/05/PowerShell-CMD.png 949w, https://www.technig.com/wp-content/uploads/2022/05/PowerShell-CMD-300x25.png 300w, https://www.technig.com/wp-content/uploads/2022/05/PowerShell-CMD-768x64.png 768w" sizes="(max-width: 949px) 100vw, 949px" /><figcaption>Write the Command on the PowerShell</figcaption></figure></div>


<ol class="wp-block-list" type="1" start="3"><li>A tiny window shows up asking to enter the Domain-Password. Enter the password and enter.</li></ol>


<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/05/Credential-Request-Window.png" alt="Credential Request Window" class="wp-image-18052" width="360" height="290" srcset="https://www.technig.com/wp-content/uploads/2022/05/Credential-Request-Window.png 480w, https://www.technig.com/wp-content/uploads/2022/05/Credential-Request-Window-300x242.png 300w" sizes="(max-width: 360px) 100vw, 360px" /><figcaption>Credential Request Window</figcaption></figure></div>


<ol class="wp-block-list" type="1" start="4"><li>Restart your computer, and then you are a member of the network.</li></ol>



<h2 class="wp-block-heading"><strong>How to check if your PC is joined to a domain or Workgroup?</strong></h2>



<p>There are multiple ways to check whether your computer is a domain member or a WORKGROUP. The most accessible and most convenient of them is through Command Prompt:</p>



<ol class="wp-block-list" type="1"><li>Open the Command Prompt from the Start Menu.</li><li>Write the <strong><code>Systeminfo |findstr /I “domain”</code></strong> and enter. In the second line, you will see either the domain is a workgroup or a member of a domain.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="636" height="91" src="https://www.technig.com/wp-content/uploads/2022/05/CMD-Command.png" alt="Command Prompt Window" class="wp-image-18053" srcset="https://www.technig.com/wp-content/uploads/2022/05/CMD-Command.png 636w, https://www.technig.com/wp-content/uploads/2022/05/CMD-Command-300x43.png 300w" sizes="(max-width: 636px) 100vw, 636px" /><figcaption>Write the Code in the CMD and Enter</figcaption></figure></div>


<p>Another way to check if your computer is joined to a domain is through the system properties:</p>



<ol class="wp-block-list" type="1"><li>Go to the <strong>setting</strong> of your computer. Click on the <strong>System</strong>, scroll down, find the <strong>About </strong>option, and click on it.</li><li>Click on the hyperlink “<strong>Domain or Workgroup.</strong>”</li><li>In the system properties dialogue box, click on the change button.</li><li>If the workgroup radio button was selected, you are not a member of any domain. Else, if the domain radio button is selected, you are a member of the domain.</li></ol>



<h3 class="wp-block-heading"><strong>Conclusions</strong></h3>



<p>There are multiple ways to add your computer to a domain. And the easiest and most convenient of them is through PowerShell and computer settings that we talked about. Write your questions in the comment section of this page.</p>
<p>The post <a href="https://www.technig.com/join-windows-11-to-domain-using-powershell/">How to Join Windows 11 to Domain using PowerShell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/join-windows-11-to-domain-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18045</post-id>	</item>
		<item>
		<title>Install Active Directory On Windows Server 2022 Using PowerShell</title>
		<link>https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/</link>
					<comments>https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Sat, 14 May 2022 18:00:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory Installation]]></category>
		<category><![CDATA[Assign IPv4 in PowerShell]]></category>
		<category><![CDATA[Create a Domain]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Server Rename]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17821</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1036" height="577" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install Active Directory Using PowerShell" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235.png 1036w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-300x167.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-1024x570.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-768x428.png 768w" sizes="(max-width: 1036px) 100vw, 1036px" /></div>
<p>Using PowerShell to install Active Directory Domain Services (AD-DS) on Windows Server 2022 helps you install it quickly. It is better to rename your server and assign a static IP address before installing the active directory. Assign Static IPv4 and Rename Server Using PowerShell It is important to assign a static IP address to a [&#8230;]</p>
<p>The post <a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/">Install Active Directory On Windows 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="1036" height="577" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install Active Directory Using PowerShell" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235.png 1036w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-300x167.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-1024x570.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220429_200235-768x428.png 768w" sizes="(max-width: 1036px) 100vw, 1036px" /></div>
<p>Using PowerShell to install Active Directory Domain Services (AD-DS) on Windows Server 2022 helps you install it quickly. It is better to rename your server and assign a static IP address before installing the active directory.</p>



<h2 class="wp-block-heading">Assign Static IPv4 and Rename Server Using PowerShell</h2>



<p>It is important to assign a static IP address to a server computer because dynamic addresses change after some time and it can cause problems. Another important thing is to rename your server before installing the active directory. It will take a long process to rename your server after you install the active directory. Follow the steps below to assign an IPv4 and rename the server.</p>



<p><strong>1. </strong>Run PowerShell as administrator. If you are using GUI versions of Windows Server, press <strong>Win+R</strong> to open the <strong>Run</strong> and type <strong>PowerShell</strong> then hit <strong>Ctrl+Shift+Enter</strong>. If you are using the core version of Windows Server, type PowerShell in the command prompt and hit Enter. The <strong>PS</strong> sign will be added at the beginning of your command which means PowerShell is open. Then execute the command <code>Start-Process PowerShell -Verb Runas</code> to run PowerShell as administrator.</p>



<p><strong>2.</strong> Type the <code>Get-NetConnectioProfile</code> to find the <strong>InterfaceIndex</strong> number.</p>



<div class="wp-block-image"><figure class="alignleft size-full"><img loading="lazy" decoding="async" width="976" height="391" src="https://technig.com/wp-content/uploads/2022/04/Get-Netconnection-Profile.png" alt="PowerShell command &quot;get-netconnectionprofile&quot;" class="wp-image-17822" srcset="https://www.technig.com/wp-content/uploads/2022/04/Get-Netconnection-Profile.png 976w, https://www.technig.com/wp-content/uploads/2022/04/Get-Netconnection-Profile-300x120.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Get-Netconnection-Profile-768x308.png 768w" sizes="(max-width: 976px) 100vw, 976px" /><figcaption>Running the Get-NetConnectionProfile command in Windows PowerShell.</figcaption></figure></div>



<p><strong>3.</strong> InterfaceIndex number for every network adapter is different. When you got the proper InterfaceIndex type the command <code>New-NetIPAddress -InterfaceIndex 6 -IPAddress 192.168.0.2 -PrefixLength 24 -DefaultGateway 192.168.0.1</code> and press Enter key to assign an IPv4 address. This is the network setting for this lab, you should assign an Ip address according to your own network setting.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="188" src="//i0.wp.com/technig.com/wp-content/uploads/2022/04/Set-Ip-address-through-PowerShell-1-1024x188.png" alt="" class="wp-image-17824" srcset="https://www.technig.com/wp-content/uploads/2022/04/Set-Ip-address-through-PowerShell-1-1024x188.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/Set-Ip-address-through-PowerShell-1-300x55.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Set-Ip-address-through-PowerShell-1-768x141.png 768w, https://www.technig.com/wp-content/uploads/2022/04/Set-Ip-address-through-PowerShell-1.png 1062w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>Click to know more about <a href="https://technig.com/configure-ip-address-using-powershell/" target="_blank" rel="noreferrer noopener">How To Configure IP Address With PowerShell?</a></p>



<p><strong>4.</strong> Type the <code>Rename-Computer -NewName "SKO-DC01"</code> command. SKO-DC01 is the name that I assigned to my server, you can type any name instead of that. Your server will be renamed after you restart it.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="189" src="https://technig.com/wp-content/uploads/2022/04/Computer-Rename-PwerShell-1024x189.png" alt="Rename Windows Server 2022 with PowerShell." class="wp-image-17825" srcset="https://www.technig.com/wp-content/uploads/2022/04/Computer-Rename-PwerShell-1024x189.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/Computer-Rename-PwerShell-300x56.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Computer-Rename-PwerShell-768x142.png 768w, https://www.technig.com/wp-content/uploads/2022/04/Computer-Rename-PwerShell.png 1054w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Rename a server using Windows PowerShell.</figcaption></figure></div>



<p>Now that you have configured your Computer Name and IP address, you can install Active Directory on Windows Server 2022 Using PowerShell.</p>



<h2 class="wp-block-heading">Add AD-DS Role And Create a Domain Using PowerShell</h2>



<p>To create a domain controller on Windows Server 2022, you have to install AD-DS (Active Directory Domain Services) role and DNS Server role, it is faster using PowerShell instead of Server Manager. When you installed AD-DS and DNS Server properly, then you can create a domain controller. Follow the steps below to add the AD-DS role and create a domain in Windows Server 2022.</p>



<p><strong>1. </strong>Run PowerShell as administrator. Execute the <code>Get-windowsFeature</code> command in Windows PowerShell. Find the name of <strong>Active Directory Domain Services</strong> for PowerShell commands. In this Server it is <strong>AD-Domain-Services</strong> and it is available for installation.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="969" height="511" src="https://technig.com/wp-content/uploads/2022/04/Get-WindowsFeature-command.png" alt="Windows Server 2022 Features" class="wp-image-17827" srcset="https://www.technig.com/wp-content/uploads/2022/04/Get-WindowsFeature-command.png 969w, https://www.technig.com/wp-content/uploads/2022/04/Get-WindowsFeature-command-300x158.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Get-WindowsFeature-command-768x405.png 768w" sizes="(max-width: 969px) 100vw, 969px" /><figcaption>List of Windows Server 2022 features list in Windows PowerShell.</figcaption></figure></div>



<p><strong>2.</strong> Type <code>Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools</code> command and hit Enter key.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="187" src="https://technig.com/wp-content/uploads/2022/04/Install-Active-Directory-1024x187.png" alt="Install Active Directory with management tools." class="wp-image-17828" srcset="https://www.technig.com/wp-content/uploads/2022/04/Install-Active-Directory-1024x187.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/Install-Active-Directory-300x55.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Install-Active-Directory-768x140.png 768w, https://www.technig.com/wp-content/uploads/2022/04/Install-Active-Directory.png 1124w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Install Active Directory and its management tools.</figcaption></figure></div>



<p><strong>3.</strong> Once the installation is finished, you have to import <strong>ADDS Deployment module</strong> manually by executing the command <code>Import-Module ADDSDeployment</code>. If this is the first domain controller, you must add a new forest by executing the command <code>Install-ADDSForest</code>. Type the <strong>Domain Name </strong>and <strong>DSRM password</strong>. Your domain name should be in this format (a name .lab, .com, or .anything you want). When you see a message that your server will be restarted, type <strong>Y</strong> to restart your server.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="361" src="https://technig.com/wp-content/uploads/2022/04/Set-Domain-Name-and-DSRM-password-1024x361.png" alt="Install Active Directory Domain Services using PowerShell" class="wp-image-17829" srcset="https://www.technig.com/wp-content/uploads/2022/04/Set-Domain-Name-and-DSRM-password-1024x361.png 1024w, https://www.technig.com/wp-content/uploads/2022/04/Set-Domain-Name-and-DSRM-password-300x106.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Set-Domain-Name-and-DSRM-password-768x271.png 768w, https://www.technig.com/wp-content/uploads/2022/04/Set-Domain-Name-and-DSRM-password.png 1223w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Set up a domain in Windows Server 2022 using PowerShell.</figcaption></figure></div>



<p>You might receive some warnings, but don&#8217;t worry the Active Directory Domain Services and DNS Server roles will install. When you receive an error that DNS Server is not installed properly, you can install DNS Server manually and then try again. Check this to know <a href="https://technig.com/install-dns-using-server-manager-and-powershell/" target="_blank" rel="noreferrer noopener">how to install DNS server using PowerShell</a>.</p>



<p>Check this article to know more about the <a href="https://social.technet.microsoft.com/wiki/contents/articles/52765.windows-server-2019-step-by-step-setup-active-directory-environment-using-powershell.aspx" target="_blank" rel="noreferrer noopener">Active Directory</a>.</p>
<p>The post <a href="https://www.technig.com/install-active-directory-on-windows-server-2022-using-powershell/">Install Active Directory On Windows 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/install-active-directory-on-windows-server-2022-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17821</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>
		<item>
		<title>Install and Configure DHCP in Windows Server 2022 Using PowerShell</title>
		<link>https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/</link>
					<comments>https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 09:54:04 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DHCP PowerShell Commands]]></category>
		<category><![CDATA[DHCP Server]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17264</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1103" height="683" src="https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install and Configure DHCP in Windows Server 2022 using Windows PowerShell" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2.jpg 1103w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-300x186.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-1024x634.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-768x476.jpg 768w" sizes="(max-width: 1103px) 100vw, 1103px" /></div>
<p>We have published a step by step guide on how to install and configure DHCP in Server 2022 using Server Manager. This article, in turn, covers an easy and step by step guide on how to install and configure DHCP in Server 2022 using Windows PowerShell. Using PowerShell to perform such technical tasks is always [&#8230;]</p>
<p>The post <a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/">Install and Configure DHCP in Windows 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="1103" height="683" src="https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install and Configure DHCP in Windows Server 2022 using Windows PowerShell" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2.jpg 1103w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-300x186.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-1024x634.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/feature-Image-2-768x476.jpg 768w" sizes="(max-width: 1103px) 100vw, 1103px" /></div>
<p>We have published a step by step guide on <a href="https://www.technig.com/install-and-configure-dhcp-in-windows-server-2022-using-server-manager/" target="_blank" rel="noreferrer noopener">how to install and configure DHCP in Server 2022 using Server Manager</a>. This article, in turn, covers an easy and step by step guide on how to install and configure DHCP in Server 2022 using <a href="https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7.2" target="_blank" rel="noreferrer noopener">Windows PowerShell</a>. Using PowerShell to perform such technical tasks is always a preferred alternative for IT pros. Besides other benefits, using Powershell takes us less time to complete the tasks. It is, of course, a professional way to accomplish almost any task in Windows Server operating systems. </p>



<h2 class="wp-block-heading">Steps to Install and Configure DHCP Using PowerShell</h2>



<p>Generally, the process of DHCP installation and configuration in Windows Server encompasses three tasks: installing the DHCP capability and its management tools, adding security groups, and authorizing DHCP in Active Directory. Let&#8217;s dive into the steps. </p>



<ul class="wp-block-list"><li>Open the <strong>PowerShell </strong>from the <strong>Start Menu.</strong> See the picture below. You can also open it from <strong>Run </strong>using<code>powershell</code>command in the <strong>Run </strong>dialogue box. </li></ul>



<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-1.jpg" alt="Opening PowerShell on Windows Server 2022 | DHCP installation and Configuration using PowerShell" class="wp-image-17324" width="693" height="502" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-1.jpg 725w, https://www.technig.com/wp-content/uploads/2022/04/1-1-300x217.jpg 300w" sizes="(max-width: 693px) 100vw, 693px" /><figcaption>Opening PowerShell on Windows Server 2022</figcaption></figure></div>



<ul class="wp-block-list"><li>Before straightly going to the DHCP installation command, run the<code>Get-WindowsFeature</code>command. This command lists all the features available in Windows Server 2022. It shows the name and installation state of those features. As the picture below shows, we have the <strong>DHCP </strong>feature available to install. </li></ul>



<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/2-2.jpg" alt="Get-WindowsFeatures Windows PowerShell Command and Checking DHCP Feature" class="wp-image-17325" width="719" height="377"/><figcaption>Get-WindowsFeatures Windows PowerShell Command</figcaption></figure></div>



<ul class="wp-block-list"><li>To install DHCP and its management tools, run the command<code>Install-WindowsFeature DHCP -IncludeManagementTools.</code>Wait for a while till it finishes the installation, and you will see the details upon successful installation. </li></ul>



<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/3-2.jpg" alt="DHCP Installation Windows PowerShell Command" class="wp-image-17326" width="738" height="185" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-2.jpg 923w, https://www.technig.com/wp-content/uploads/2022/04/3-2-300x75.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-2-768x192.jpg 768w" sizes="(max-width: 738px) 100vw, 738px" /><figcaption>DHCP Installation Windows PowerShell Command</figcaption></figure></div>



<ul class="wp-block-list"><li>Now, run the<code>netsh DHCP add SecurityGroups</code>command to add the DHCP local security groups.</li></ul>



<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-2.jpg" alt="Windows PowerShell Command to Add DHCP Security Group" class="wp-image-17327" width="738" height="174" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-2.jpg 876w, https://www.technig.com/wp-content/uploads/2022/04/4-2-300x71.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-2-768x181.jpg 768w" sizes="(max-width: 738px) 100vw, 738px" /><figcaption>Windows PowerShell Command to Add DHCP Security Group</figcaption></figure></div>



<ul class="wp-block-list"><li>The next step is to authorize the DHCP server to the Active Directory. To do so, use the command <code>Add-DhcpServerInDC -DnsName ServerName.DomainName.</code>Use your DHCP server name instead of the <strong>ServerName </strong>and your domain name instead of the <strong>DomainName </strong>in the above command. In my case, <strong>technigDC </strong>is the DHCP server name, and Technig.com is the domain name, as shown in the below picture.</li></ul>



<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/5-4.jpg" alt="Window PowerShell Command to Authorize DHCP in Active Directory Domain Services on Windows Server 2022" class="wp-image-17328" width="744" height="193" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-4.jpg 871w, https://www.technig.com/wp-content/uploads/2022/04/5-4-300x78.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/5-4-768x200.jpg 768w" sizes="(max-width: 744px) 100vw, 744px" /><figcaption>Window PowerShell Command to Authorize DHCP in Active Directory Domain Services</figcaption></figure></div>



<ul class="wp-block-list"><li>At this point, we are all done with our DHCP installation and configuration. We can view the authorized DHCP servers in Active Directory using<code>Get-DhcpServerInDC</code>command.</li></ul>



<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/6-2.jpg" alt="Windows PowerShell Command to Check Authorized DHCP Servers in Active Directory" class="wp-image-17329" width="752" height="200" srcset="https://www.technig.com/wp-content/uploads/2022/04/6-2.jpg 864w, https://www.technig.com/wp-content/uploads/2022/04/6-2-300x80.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/6-2-768x205.jpg 768w" sizes="(max-width: 752px) 100vw, 752px" /><figcaption>Windows PowerShell Command to Check Authorized DHCP Servers</figcaption></figure></div>



<p>That is all with DHCP installation and configuration using Windows PowerShell. That simple, it is installed and authorized. </p>



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



<p>Using Windows PowerShell is a professional way of completing configuration tasks on Windows OSs, including Windows Server 2022. Throughout this article, we explained how we can install and configure DHCP on Windows Server 2022 using the PowerShell tool. We saw that we can easily do it using a few simple command lines. </p>



<p>In the end, I hope you found this article helpful. Feel free to put your related questions in the comment section below. </p>
<p>The post <a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/">Install and Configure DHCP in Windows 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/install-and-configure-dhcp-using-powershell-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17264</post-id>	</item>
		<item>
		<title>Most Know Run Commands in Windows 10</title>
		<link>https://www.technig.com/know-run-commands-windows-10/</link>
					<comments>https://www.technig.com/know-run-commands-windows-10/#comments</comments>
		
		<dc:creator><![CDATA[Gull AQA]]></dc:creator>
		<pubDate>Fri, 24 Nov 2017 18:23:44 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Run Commands]]></category>
		<category><![CDATA[Run ShortCuts]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Run Commands]]></category>
		<category><![CDATA[Windows Shortcuts]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=12895</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="400" height="207" src="https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Windows 10 Run Commands" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1.png 400w, https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1-300x155.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></div>
<p>The run dialogue box is the quickest way to access a page. Whether it&#8217;s settings page, control panels or any other programs in windows.  The quickest way without sifting to control panel or settings page. Here is a list of most known run commands in windows that can help you use windows faster and more [&#8230;]</p>
<p>The post <a href="https://www.technig.com/know-run-commands-windows-10/">Most Know Run Commands in Windows 10</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="400" height="207" src="https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Windows 10 Run Commands" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1.png 400w, https://www.technig.com/wp-content/uploads/2017/10/Windows-10-most-know-Run-Commands-1-300x155.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></div><p>The run dialogue box is the quickest way to access a page. Whether it&#8217;s settings page, control panels or any other programs in windows.  The quickest way without sifting to control panel or settings page. Here is a list of most known run commands in windows that can help you use windows faster and more efficient.</p>
<p><strong>Applies To</strong>: Windows Server 2003, Windows Vista, Windows XP, Windows Server 2008, Windows 7,  Windows 8.1 and Windows 10, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2000, Windows Server 2012, Windows Server 2016.</p>
<div class="introduction">
<p>Use this topic to find the documentation resources and other technical information that you need to learn about the command shell, and to automate command-line tasks by using scripts or scripting tools.</p>
<p><span style="font-size: 24px; font-weight: bold;">Most Known Run Commands In windows</span></p>
</div>
<p>To use any of these commands open the run dialogue box by press <strong>Windows</strong> button + <strong>R.</strong></p>
<table style="height: 139px;" width="475">
<tbody>
<tr>
<td style="width: 229px; text-align: center;"><strong>Commands</strong></td>
<td style="width: 230px; text-align: center;"><strong>Action</strong></td>
</tr>
<tr>
<td style="width: 229px; text-align: center;"> \</td>
<td style="width: 230px; text-align: center;"> Open drive C</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;"><strong>.</strong></td>
<td style="width: 230px; text-align: center;">Current home folder</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;"><strong>.. </strong></td>
<td style="width: 230px; text-align: center;">Open users folder</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">cmd</td>
<td style="width: 230px; text-align: center;">Command  prompt</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">powershell</td>
<td style="width: 230px; text-align: center;">Open Powershell</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">calc</td>
<td style="width: 230px; text-align: center;">Open calculator</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">Notepad</td>
<td style="width: 230px; text-align: center;">Open Notepad</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">mspaint</td>
<td style="width: 230px; text-align: center;">Open Paint</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">Control</td>
<td style="width: 230px; text-align: center;"> open control panel page</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">timedate.cpl</td>
<td style="width: 230px; text-align: center;">time and date</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">programs-appwiz.cpl</td>
<td style="width: 230px; text-align: center;">programs and features</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">main.cpl</td>
<td style="width: 230px; text-align: center;">mouse settings</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">winver</td>
<td style="width: 230px; text-align: center;">Windows version</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">taskmgr</td>
<td style="width: 230px; text-align: center;">task manager</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">msinfo32</td>
<td style="width: 230px; text-align: center;">system information</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">control folders</td>
<td style="width: 230px; text-align: center;">File explorer</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">msconfig</td>
<td style="width: 230px; text-align: center;">System Configuration</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">devmgmt.msc</td>
<td style="width: 230px; text-align: center;">Device Management</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">diskmgmt.msc</td>
<td style="width: 230px; text-align: center;">Disk Management</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">compmgmt.msc</td>
<td style="width: 230px; text-align: center;">Computer management</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">lusrmgr.msc</td>
<td style="width: 230px; text-align: center;">Local Users and Groups</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">eventvwr.msc</td>
<td style="width: 230px; text-align: center;">Event Viewer</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">gpedit.msc</td>
<td style="width: 230px; text-align: center;">Group Policy editor</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">perfmon.msc</td>
<td style="width: 230px; text-align: center;">Performance Monitor</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">secpol.msc</td>
<td style="width: 230px; text-align: center;">Local Security settings</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;"> shrpubw</td>
<td style="width: 230px; text-align: center;"> Create a shared Folder</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">osk</td>
<td style="width: 230px; text-align: left;">On-Screen Keyboard</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">mmsys.cpl</td>
<td style="width: 230px; text-align: center;">Sounds and Audio</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">firewall.cpl</td>
<td style="width: 230px; text-align: center;">Firewall</td>
</tr>
<tr>
<td style="width: 229px; text-align: center;">intl.cpl</td>
<td style="width: 230px; text-align: center;">Regional settings</td>
</tr>
</tbody>
</table>
<p>The above are the most useful commands that every day we can use them for quick access. There are hundreds of <a href="https://technet.microsoft.com/en-us/library/cc754340(v=ws.11).aspx" target="_blank" rel="noopener noreferrer">more commands </a>but the above command, but we don&#8217;t use them at all, we don&#8217;t need to remember them at all.</p>
<p>Read Also: <a href="https://www.technig.com/ms-settings-uri-commands-windows-10/" target="_blank" rel="noopener noreferrer">Complete List of Ms-settings URI Commands</a></p>
<p>In the list above may be a have missed some of the most useful (favourites ) commands, if I? please command your favourite command.</p>
<p>The post <a href="https://www.technig.com/know-run-commands-windows-10/">Most Know Run Commands in Windows 10</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/know-run-commands-windows-10/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12895</post-id>	</item>
		<item>
		<title>How to Convert Server 2016 Core to GUI and Vice Versa?</title>
		<link>https://www.technig.com/convert-server-2016-core-gui/</link>
					<comments>https://www.technig.com/convert-server-2016-core-gui/#comments</comments>
		
		<dc:creator><![CDATA[Shams]]></dc:creator>
		<pubDate>Sat, 09 Sep 2017 06:35:02 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Convert Disk]]></category>
		<category><![CDATA[Convert Server Core to GUI]]></category>
		<category><![CDATA[Desktop Experience]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2016]]></category>
		<category><![CDATA[Windows Server 2016 Core]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=10471</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Convert Server 2016 Core to GUI and GUI to Core" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core.jpg 840w, https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Converting Windows Server 2012 Core to GUI is possible with Server Manager and PowerShell. But in Windows Server 2016 you are not able to convert Server 2016 Core to GUI. There is no more option for server 2016 convert from GUI to core or core to GUI. Read the below Windows server released note for [&#8230;]</p>
<p>The post <a href="https://www.technig.com/convert-server-2016-core-gui/">How to Convert Server 2016 Core to GUI and Vice Versa?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Convert Server 2016 Core to GUI and GUI to Core" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core.jpg 840w, https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/Convert-Server-2016-Core-to-GUI-and-GUI-to-Core-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Converting Windows Server 2012 Core to GUI is possible with Server Manager and PowerShell. But in Windows Server 2016 you are not able to convert Server 2016 Core to GUI. There is no more option for server 2016 convert from GUI to core or core to GUI.</p>
<p><figure id="attachment_2830" aria-describedby="caption-attachment-2830" style="width: 992px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/06/Windows-GUI-Shell.jpg"><img loading="lazy" decoding="async" class="wp-image-2830 size-full" src="https://www.technig.com/wp-content/uploads/2015/06/Windows-GUI-Shell.jpg" alt="Convert Server 2016 Core to GUI" width="992" height="190" srcset="https://www.technig.com/wp-content/uploads/2015/06/Windows-GUI-Shell.jpg 992w, https://www.technig.com/wp-content/uploads/2015/06/Windows-GUI-Shell-300x57.jpg 300w, https://www.technig.com/wp-content/uploads/2015/06/Windows-GUI-Shell-768x147.jpg 768w" sizes="(max-width: 992px) 100vw, 992px" /></a><figcaption id="caption-attachment-2830" class="wp-caption-text">Convert Server 2016 Core to GUI</figcaption></figure></p>
<p>Read the below Windows server released note for converting server core to GUI and vice versa.</p>
<p><strong>Note for Windows Server 2016 Installation Options</strong></p>
<p>After the release of <a href="https://blogs.technet.microsoft.com/windowsserver/2015/08/27/windows-server-2016-installation-option-changes/">Windows Server 2016</a> Technical Preview 2 in May, we heard from many of you about a change we made to the Server installation options. In Technical Preview 2, we made Minimal Server Interface the default and renamed the Server installation option to “Server with local admin tools”. The feedback was loud and clear that there are customer segments, most notably small and medium businesses, which require both the full graphical shell on their servers, and also a consistent experience with their Windows client desktops.</p>
<p>Based on your comments, we made the following change in Windows Server 2016 Technical Preview 3. The Server installation option is now “Server with Desktop Experience” and has the shell and Desktop Experience installed by default. This provides a more client-like experience on Windows Server for those that want a full local graphical experience on the server as well as for Remote Desktop Services Host.</p>
<p><strong>As part of this work, some other changes have been made to the installation options. Because of the structural changes required to deliver the Desktop Experience on Server, it will not be possible to convert from Server with Desktop Experience to Server Core. It will also not be possible to convert Server Core up to Server with Desktop Experience.</strong></p>
<p>So, the best option to have a GUI or Server core, you just chose the right option when you attempt to install Windows Server. On a local network server, you can easily install Windows server. But on online Windows dedicated server be careful to choose the right features for Windows Server installation.</p>
<h1>Convert Server 2016 Core to GUI</h1>
<p>Unlike some previous releases of Windows Server, you cannot convert between Server Core and Server with Desktop Experience after installation. If you install Server Core and later decide to use Server with Desktop Experience, you should do a fresh installation (and vice versa). But for Windows server 2012 and Windows server 2012 R2, read this article: <a href="https://www.technig.com/convert-server-core-to-full-gui-and-vice-versa/">Convert Server Core to Full Gui and Vice Versa</a>.</p>
<p>The post <a href="https://www.technig.com/convert-server-2016-core-gui/">How to Convert Server 2016 Core to GUI and Vice Versa?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/convert-server-2016-core-gui/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10471</post-id>	</item>
		<item>
		<title>How to Enable Active Directory Recycle Bin with PowerShell and GUI?</title>
		<link>https://www.technig.com/enable-active-directory-recycle-bin-powershell/</link>
					<comments>https://www.technig.com/enable-active-directory-recycle-bin-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 18:45:27 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Deleted Objects]]></category>
		<category><![CDATA[Enable Recycle Bin]]></category>
		<category><![CDATA[Recover Objects]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=1114</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Enable Active Directory Recycle Bin in Windows Server 2008 R2 - Technig.com" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2.jpg 840w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>In Windows Server 2008 R2 by default the Active Directory Recycle Bin is disabled. You can not recover the deleted objects without Active Directory Recycle Bin enabled. If you want to secure Active Directory environment from deletion of nonrecoverable objects, first you should enable Active Directory Recycle bin. To perform this action, the AD forest functional level [&#8230;]</p>
<p>The post <a href="https://www.technig.com/enable-active-directory-recycle-bin-powershell/">How to Enable Active Directory Recycle Bin with PowerShell and GUI?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Enable Active Directory Recycle Bin in Windows Server 2008 R2 - Technig.com" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2.jpg 840w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-in-Windows-Server-2008-R2-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>In Windows Server 2008 R2 by default the <a href="https://technet.microsoft.com/en-us/library/dd379481(v=ws.10).aspx">Active Directory Recycle Bin</a> is disabled. You can not recover the deleted objects without Active Directory Recycle Bin enabled. If you want to secure Active Directory environment from deletion of nonrecoverable objects, first you should enable Active Directory Recycle bin. To perform this action, the AD forest functional level must set to <a href="https://www.technig.com/?s=Windows+Server+2008+R2">Windows Server 2008 R2</a>.</p>
<p><em><strong>Related</strong></em>: <a href="https://www.technig.com/active-directory-recycle-bin/" target="_blank" rel="noopener noreferrer">Enable AD Recycle Bin in Server 2012 and 2016 using Active directory administrative center</a></p>
<h2>Enable Active Directory Recycle Bin with PowerShell</h2>
<p>Let&#8217;s do it step by step with recommended method of Microsoft using Windows Power Shell command. To do so run PowerShell and import Active Directory module. Type<strong> &#8216;Import-Module ActiveDirectory&#8217; </strong>and press enter like the screenshot.</p>
<p><figure id="attachment_1121" aria-describedby="caption-attachment-1121" style="width: 916px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/01/Import-Active-Directory-Moduls-in-Windows-PowerShell.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-1121" src="http://3.90.216.52/wp-content/uploads/2015/01/Import-Active-Directory-Moduls-in-Windows-PowerShell.jpg" alt="Import Active Directory Moduls in Windows PowerShell" width="916" height="203" srcset="https://www.technig.com/wp-content/uploads/2015/01/Import-Active-Directory-Moduls-in-Windows-PowerShell.jpg 916w, https://www.technig.com/wp-content/uploads/2015/01/Import-Active-Directory-Moduls-in-Windows-PowerShell-300x66.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Import-Active-Directory-Moduls-in-Windows-PowerShell-768x170.jpg 768w" sizes="(max-width: 916px) 100vw, 916px" /></a><figcaption id="caption-attachment-1121" class="wp-caption-text">Import Active Directory Module for Windows PowerShell</figcaption></figure></p>
<p>Now type the following PowerShell command to enable Recycle Bin in active directory.</p>
<p><strong>Enable-ADOptionalFeature -Identity &#8216;CN=Recycle Bin Feature,CN=Optional Features,CN=Directory</strong><br />
<strong>Service,CN=Windows NT,CN=Services,CN=Configuration,dc=one,dc=local&#8217; -Scope ForestOrConfigurationSet -Target one.local</strong></p>
<p><figure id="attachment_1122" aria-describedby="caption-attachment-1122" style="width: 963px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-1122" src="http://3.90.216.52/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin.jpg" alt="Enable Active Directory Recycle Bin" width="963" height="152" srcset="https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin.jpg 963w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-300x47.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Enable-Active-Directory-Recycle-Bin-768x121.jpg 768w" sizes="(max-width: 963px) 100vw, 963px" /></a><figcaption id="caption-attachment-1122" class="wp-caption-text">Enable Active Directory Recycle Bin</figcaption></figure></p>
<p>Do it the same as screenshot and type <strong>Y</strong> in order to accept it.</p>
<blockquote>
<p style="text-align: justify;"><strong>Note</strong>: Remember this action is not reversible, you cant not disable it once you have been enabled in active directory environment.</p>
</blockquote>
<p>So good, the Active Directory Recycle Bin has been enabled successfully. The next step is to know how to recover deleted objects.</p>
<h3>Recover Deleted Objects of Active Directory Using PowerShell</h3>
<p>To recover the deleted objects, you must see the list of deleted objects with &#8216;<strong>Get-ADObject</strong>&#8216; PowerShell Command. Type the following command to display all removed objects.</p>
<p><strong>Get-ADObject -Filter {(isdeleted -eq $true) -and (name -ne &#8220;Deleted Objects&#8221;)} -includeDeletedObjects</strong></p>
<p><figure id="attachment_1123" aria-describedby="caption-attachment-1123" style="width: 965px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/01/Display-Deleted-Active-Directory-Objects.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-1123" src="http://3.90.216.52/wp-content/uploads/2015/01/Display-Deleted-Active-Directory-Objects.jpg" alt="Display Deleted Active Directory Objects" width="965" height="198" srcset="https://www.technig.com/wp-content/uploads/2015/01/Display-Deleted-Active-Directory-Objects.jpg 965w, https://www.technig.com/wp-content/uploads/2015/01/Display-Deleted-Active-Directory-Objects-300x62.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Display-Deleted-Active-Directory-Objects-768x158.jpg 768w" sizes="(max-width: 965px) 100vw, 965px" /></a><figcaption id="caption-attachment-1123" class="wp-caption-text">Display Deleted Active Directory Objects</figcaption></figure></p>
<p>You see the deleted active directory objects. Now you can restore it with &#8216;<strong>Restore-ADObject</strong>&#8216; command.</p>
<p>Now try to restore with the below command.</p>
<p><strong>Get-ADObject -Filter {(isdeleted -eq $true) -and (name -ne &#8220;Deleted Objects&#8221;)} -includeDeletedObjects | Restore-ADObject</strong></p>
<p><figure id="attachment_1124" aria-describedby="caption-attachment-1124" style="width: 968px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/01/Restore-Deleted-Objects-In-Active-Directory-Windows-Server-2008-R2.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-1124" src="http://3.90.216.52/wp-content/uploads/2015/01/Restore-Deleted-Objects-In-Active-Directory-Windows-Server-2008-R2.jpg" alt="Restore Deleted Objects In Active Directory Windows Server 2008 R2" width="968" height="41" srcset="https://www.technig.com/wp-content/uploads/2015/01/Restore-Deleted-Objects-In-Active-Directory-Windows-Server-2008-R2.jpg 968w, https://www.technig.com/wp-content/uploads/2015/01/Restore-Deleted-Objects-In-Active-Directory-Windows-Server-2008-R2-300x13.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Restore-Deleted-Objects-In-Active-Directory-Windows-Server-2008-R2-768x33.jpg 768w" sizes="(max-width: 968px) 100vw, 968px" /></a><figcaption id="caption-attachment-1124" class="wp-caption-text">Restore Deleted Objects In Active Directory Windows Server 2008 R2</figcaption></figure></p>
<p>That is all. Go to active directory users and computers console, then you will see the restored object.</p>
<p><figure id="attachment_1125" aria-describedby="caption-attachment-1125" style="width: 836px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/01/Recoverd-Active-Directory-Objects.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-1125" src="http://3.90.216.52/wp-content/uploads/2015/01/Recoverd-Active-Directory-Objects.jpg" alt="Recoverd Active Directory Objects" width="836" height="240" srcset="https://www.technig.com/wp-content/uploads/2015/01/Recoverd-Active-Directory-Objects.jpg 836w, https://www.technig.com/wp-content/uploads/2015/01/Recoverd-Active-Directory-Objects-300x86.jpg 300w, https://www.technig.com/wp-content/uploads/2015/01/Recoverd-Active-Directory-Objects-768x220.jpg 768w" sizes="(max-width: 836px) 100vw, 836px" /></a><figcaption id="caption-attachment-1125" class="wp-caption-text">Recovered Active Directory Objects</figcaption></figure></p>
<p>Hope this article will help you to restore the deleted Active Directory Objects quickly in the Active Directory environment.</p>
<p>The post <a href="https://www.technig.com/enable-active-directory-recycle-bin-powershell/">How to Enable Active Directory Recycle Bin with PowerShell and GUI?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/enable-active-directory-recycle-bin-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1114</post-id>	</item>
	</channel>
</rss>
