Home > OS >  Powershell to create user has been an error... To solve!
Powershell to create user has been an error... To solve!

Time:10-12

New - ADUser - path "ou=sales, dc, dc=com"
- AccountPassword (ConvertTo - SecureString P @ ssw0rd - AsPlainText - force)
- the Name "Maria Smith" - Givenname Maria
- Surname Smith `
- the DisplayName "Maria Smith" - SamAccountName "Maria. Smith
"- UserPrincipalName "[email protected]"
1 - Enabled 1 - ChangePasswordAtLogon

CodePudding user response:

http://mcmvp.blog.51cto.com/5497438/960949/
  • Related