
<?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>Create User Account Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/create-user-account/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/create-user-account/</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>Create User Account Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/create-user-account/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<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" fetchpriority="high" 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 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 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>How to Create User Account Using PowerShell?</title>
		<link>https://www.technig.com/create-user-account-using-powershell/</link>
					<comments>https://www.technig.com/create-user-account-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Thu, 02 Jun 2016 10:05:56 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Create User Account]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2012 R2]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=876</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create User Account Using PowerShell In Windows Server - Technig.com" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_.jpg 840w, https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>How to create User Account using PowerShell in Active Directory. I&#8217;m using Windows Server 2012 R2, but this article will work with Windows Server 2008 to Server 2012 R2 or Server 2016. A simple description about PowerShell. Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built [&#8230;]</p>
<p>The post <a href="https://www.technig.com/create-user-account-using-powershell/">How to Create User Account 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="840" height="420" src="https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Create User Account Using PowerShell In Windows Server - Technig.com" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_.jpg 840w, https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/Create-User-Account-Using-Windows-PowerShell-In-Windows-Server-2012-R2-Technig.com_-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>How to create User Account using PowerShell in Active Directory. I&#8217;m using Windows Server 2012 R2, but this article will work with Windows Server 2008 to Server 2012 R2 or Server 2016.</p>
<p>A simple description about PowerShell. <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" target="_blank" rel="noopener noreferrer">Windows PowerShell </a>is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and CIM enabling management of remote Linux systems and network devices.</p>
<p>So if you have problem with creating objects in Active Directory with GUI, read the article: <a href="https://www.technig.com/create-objects-active-directory/" target="_blank" rel="noopener noreferrer">How to Create Objects in Active Directory</a>?</p>
<h1>Create User Account using PowerShell</h1>
<p>In Windows Server run PowerShell and import Active Directory module or run <strong>Active directory module for Windows PowerShell</strong> from <strong>Tools</strong> in Server manager dashboard.</p>
<p><figure id="attachment_938" aria-describedby="caption-attachment-938" style="width: 539px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-Module-for-Windows-PowerShell.jpg"><img loading="lazy" decoding="async" class="wp-image-938 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-Module-for-Windows-PowerShell.jpg" alt="Active Directory Module for Windows PowerShell" width="539" height="153" srcset="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-Module-for-Windows-PowerShell.jpg 539w, https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-Module-for-Windows-PowerShell-300x85.jpg 300w" sizes="(max-width: 539px) 100vw, 539px" /></a><figcaption id="caption-attachment-938" class="wp-caption-text">Active Directory Module for Windows PowerShell</figcaption></figure></p>
<p>Type <strong>&#8216;Import-Module activedirectory&#8217;</strong> and press <strong>enter</strong> to import the AD PowerShell module. This action will load all Active Directory commands for using in the current PowerShell window.</p>
<p><figure id="attachment_940" aria-describedby="caption-attachment-940" style="width: 698px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Import-Active-Directory-module1.jpg"><img loading="lazy" decoding="async" class="wp-image-940 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/Import-Active-Directory-module1.jpg" alt="Import Active Directory module" width="698" height="143" srcset="https://www.technig.com/wp-content/uploads/2014/12/Import-Active-Directory-module1.jpg 698w, https://www.technig.com/wp-content/uploads/2014/12/Import-Active-Directory-module1-300x61.jpg 300w" sizes="(max-width: 698px) 100vw, 698px" /></a><figcaption id="caption-attachment-940" class="wp-caption-text">Import Active Directory module</figcaption></figure></p>
<p>If you close the current PowerShell window, the Active Directory module will also exit and unload from PowerShell.</p>
<p>Type<strong> Get-Module</strong> and press <strong>enter</strong> to insure that module loaded successfully.</p>
<p><figure id="attachment_941" aria-describedby="caption-attachment-941" style="width: 973px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Loaded-modules.jpg"><img loading="lazy" decoding="async" class="wp-image-941 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/Loaded-modules.jpg" alt="Create User Account " width="973" height="222" srcset="https://www.technig.com/wp-content/uploads/2014/12/Loaded-modules.jpg 973w, https://www.technig.com/wp-content/uploads/2014/12/Loaded-modules-300x68.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/Loaded-modules-768x175.jpg 768w" sizes="(max-width: 973px) 100vw, 973px" /></a><figcaption id="caption-attachment-941" class="wp-caption-text">Loaded modules</figcaption></figure></p>
<p>To see and list all active directory commands (<strong>CmdLet</strong>), just type <strong>&#8216;Get-Command -Module activedirectory&#8217;</strong> and press enter then once explore all commands.</p>
<p><figure id="attachment_942" aria-describedby="caption-attachment-942" style="width: 780px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-PowerShell-Commands.jpg"><img loading="lazy" decoding="async" class="wp-image-942 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-PowerShell-Commands.jpg" alt="Active Directory PowerShell Commands" width="780" height="657" srcset="https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-PowerShell-Commands.jpg 780w, https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-PowerShell-Commands-300x253.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/Active-Directory-PowerShell-Commands-768x647.jpg 768w" sizes="(max-width: 780px) 100vw, 780px" /></a><figcaption id="caption-attachment-942" class="wp-caption-text">Active Directory PowerShell Commands</figcaption></figure></p>
<p>We need to create User Account with <strong>New-ADUser</strong> command. Type the below command and press enter.</p>
<p><strong>PS C:\&gt; New-ADUser -Name &#8220;Mehdi Hussaini&#8221; -GivenName Mehdi -Surname Hussaini -SamAccountName Mehdi -UserPrincipalName Mehdi@technig.local -AccountPassword (ConvertTo-SecureString -AsPlainText &#8220;PassW0rD&#8221; -Force ) -Enabled $true -ChangePasswordAtLogon $true</strong></p>
<p><figure id="attachment_943" aria-describedby="caption-attachment-943" style="width: 996px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/New-ADUser-Command.jpg"><img loading="lazy" decoding="async" class="wp-image-943 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/New-ADUser-Command.jpg" alt="New-ADUser Command" width="996" height="114" srcset="https://www.technig.com/wp-content/uploads/2014/12/New-ADUser-Command.jpg 996w, https://www.technig.com/wp-content/uploads/2014/12/New-ADUser-Command-300x34.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/New-ADUser-Command-768x88.jpg 768w" sizes="(max-width: 996px) 100vw, 996px" /></a><figcaption id="caption-attachment-943" class="wp-caption-text">New-ADUser Command</figcaption></figure></p>
<p>To get help for a command type &#8216;<strong>Get-Help</strong> <strong>New-ADUser -full&#8217;</strong> or &#8211;<strong>example</strong>.  The &#8211;<strong>full</strong> option will show you by details but the &#8211;<strong>example</strong> just show some examples for command.</p>
<p>To see if the user (<strong>Hehdi</strong>) has created or not, simply type &#8216;<strong>Get-ADUser -Identity Mehdi&#8217; </strong>and press enter.</p>
<p><figure id="attachment_944" aria-describedby="caption-attachment-944" style="width: 700px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Get-ADUser.jpg"><img loading="lazy" decoding="async" class="wp-image-944 size-full" src="https://www.technig.com/wp-content/uploads/2014/12/Get-ADUser.jpg" alt="Get-ADUser Command " width="700" height="218" srcset="https://www.technig.com/wp-content/uploads/2014/12/Get-ADUser.jpg 700w, https://www.technig.com/wp-content/uploads/2014/12/Get-ADUser-300x93.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" /></a><figcaption id="caption-attachment-944" class="wp-caption-text">Get-ADUser Command</figcaption></figure></p>
<p>For getting full information about a user, type &#8216;<strong>Get-ADUser -Identity -Properties *&#8217;</strong> then press enter.</p>
<p>That&#8217;s all, simple and easy. But it&#8217;s better to know the below Active Directory CmdLets for managing user account also.</p>
<p><strong>1.</strong> To enable an Account type: <strong>&#8216;Enable-ADAccount -Identity mehdi&#8217;. </strong>This will enable the disabled user account immediately.</p>
<p><strong>2.</strong> Disable an Account: &#8216;<strong>Disable-ADAccount -Identity Mehdi&#8217;</strong></p>
<p><figure id="attachment_947" aria-describedby="caption-attachment-947" style="width: 626px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Disable-User-Account-with-PowerShell.jpg"><img loading="lazy" decoding="async" class="wp-image-947 size-full" src="http://3.90.216.52/wp-content/uploads/2014/12/Disable-User-Account-with-PowerShell.jpg" alt="Disable User Account with PowerShell" width="626" height="263" srcset="https://www.technig.com/wp-content/uploads/2014/12/Disable-User-Account-with-PowerShell.jpg 626w, https://www.technig.com/wp-content/uploads/2014/12/Disable-User-Account-with-PowerShell-300x126.jpg 300w" sizes="(max-width: 626px) 100vw, 626px" /></a><figcaption id="caption-attachment-947" class="wp-caption-text">Disable User Account with PowerShell</figcaption></figure></p>
<p><strong>3.</strong> Reset the password of an account.</p>
<div class="bs-shortcode-alert alert alert-success"><span style="color: #800000;">PS C:\&gt; Set-ADAccountPassword -Identity mehdi -Reset</span><br />
<span style="color: #800000;">Please enter the desired password for &#8216;CN=Mehdi Hussaini,CN=Users,DC=Technig,DC=local&#8217;</span><br />
<span style="color: #800000;">Password: ********</span><br />
<span style="color: #800000;">Repeat Password: ********</span><br />
<span style="color: #800000;">PS C:\&gt;</span></div>
<p><figure id="attachment_946" aria-describedby="caption-attachment-946" style="width: 748px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Modify-User-Account-with-PowerShell.jpg"><img loading="lazy" decoding="async" class="wp-image-946 size-full" src="http://3.90.216.52/wp-content/uploads/2014/12/Modify-User-Account-with-PowerShell.jpg" alt="Modify User Account with PowerShell" width="748" height="119" srcset="https://www.technig.com/wp-content/uploads/2014/12/Modify-User-Account-with-PowerShell.jpg 748w, https://www.technig.com/wp-content/uploads/2014/12/Modify-User-Account-with-PowerShell-300x48.jpg 300w" sizes="(max-width: 748px) 100vw, 748px" /></a><figcaption id="caption-attachment-946" class="wp-caption-text">Modify User Account with PowerShell</figcaption></figure></p>
<p><strong>4.</strong> Remove a User Account:<strong> &#8216;Remove-ADUser -Identity Mehdi&#8217;</strong></p>
<p><figure id="attachment_948" aria-describedby="caption-attachment-948" style="width: 809px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/12/Delete-User-Account-with-PowerShell.jpg"><img loading="lazy" decoding="async" class="wp-image-948 size-full" src="http://3.90.216.52/wp-content/uploads/2014/12/Delete-User-Account-with-PowerShell.jpg" alt="Delete User Account with PowerShell" width="809" height="138" srcset="https://www.technig.com/wp-content/uploads/2014/12/Delete-User-Account-with-PowerShell.jpg 809w, https://www.technig.com/wp-content/uploads/2014/12/Delete-User-Account-with-PowerShell-300x51.jpg 300w, https://www.technig.com/wp-content/uploads/2014/12/Delete-User-Account-with-PowerShell-768x131.jpg 768w" sizes="(max-width: 809px) 100vw, 809px" /></a><figcaption id="caption-attachment-948" class="wp-caption-text">Delete User Account with PowerShell</figcaption></figure></p>
<p>OK. Now you can create, modify, enable, disable, and delete a user account from active directory with Windows PowerShell within Windows Servers. Hope you enjoy to create user account using PowerShell</p>
<p>The post <a href="https://www.technig.com/create-user-account-using-powershell/">How to Create User Account Using PowerShell?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/create-user-account-using-powershell/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">876</post-id>	</item>
	</channel>
</rss>
