Skip to content

Commit 56097e3

Browse files
authored
Update New-ADUser.md
Updated 2012r2 version of the document
1 parent 86152d1 commit 56097e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docset/winserver2012r2-ps/activedirectory/New-ADUser.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ PS C:\>New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "DC=AppNC" -Server
8888

8989
This command creates an **inetOrgPerson**-class user named ChewDavid on an AD LDS instance.
9090

91+
### Example 4: Create a user and set password
92+
```
93+
PS C:\> New-ADUser -Name "ChewDavid" -Accountpassword (Read-Host -AsSecureString "AccountPassword") -Enabled $true
94+
```
95+
96+
This command creates a new user named ChewDavid and sets the account password.
97+
9198
## PARAMETERS
9299

93100
### -AccountExpirationDate

0 commit comments

Comments
 (0)