File tree Expand file tree Collapse file tree 5 files changed +29
-1
lines changed
winserver2012r2-ps/activedirectory
winserver2016-ps/activedirectory
winserver2022-ps/activedirectory Expand file tree Collapse file tree 5 files changed +29
-1
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 @@ -27,7 +27,7 @@ The **Disable-MMAgent** cmdlet disables any or all of the following features:
2727- Page combining
2828- Application prelaunching
2929
30- For more details on what these features do, see Enable-MMAgent.
30+ For more details on what these features do, see Enable-MMAgent. Note that not all features may be disabled on all editions of Windows.
3131
3232## EXAMPLES
3333
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