File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
winserver2012r2-ps/activedirectory
winserver2016-ps/activedirectory
winserver2019-ps/activedirectory
winserver2022-ps/activedirectory Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,13 @@ PS C:\>New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "DC=AppNC" -Server
8888
8989This 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
Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ PS C:\> New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "DC=AppNC" -Serve
8989
9090This 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
Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ PS C:\> New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "DC=AppNC" -Serve
8989
9090This 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
Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ PS C:\> New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "DC=AppNC" -Serve
8989
9090This 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
You can’t perform that action at this time.
0 commit comments