Skip to content

Commit 4d57076

Browse files
authored
Merge pull request MicrosoftDocs#2809 from msbemba/patch-126
Update New-ADUser.md
2 parents 82d919c + 4f2a29a commit 4d57076

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-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

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

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

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

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

94101
### -AccountExpirationDate

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

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

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

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

94101
### -AccountExpirationDate

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

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

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

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

94101
### -AccountExpirationDate

0 commit comments

Comments
 (0)