Quick Actions
New-ADUser
Description
Creates a new Active Directory user.
Command
New-ADUser
Examples
Create a new user with a password prompt
New-ADUser -Name 'Jane Doe' -SamAccountName 'jdoe' -AccountPassword (Read-Host -AsSecureString 'Enter password:') -Path 'OU=Users,DC=example,DC=com' -Enabled $true
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-Name <String> |
string | No | The user's full name. |
-SamAccountName <String> |
string | No | The user's logon name (pre-Windows 2000). |
-UserPrincipalName <String> |
string | No | The user's logon name (UPN). |
-Path <String> |
string | No | The OU where the new user object is created. |
-AccountPassword <SecureString> |
string | No | The user's password. |
-Enabled <Boolean> |
string | No | Specifies if the new account is enabled. |
Command Info
Category:
User Management
Type:
Windows_ad
Views:
12
Status:
Active
Tags
ad
powershell
user
create
new