Create a new User in AD with Powershell

From The IT Community
Jump to: navigation, search

'Create a new User

New-ADUser -Name benutzer -Path 'OU=ABC,OU=ABCD,OU=AT,DC=at,DC=ABCD,DC=ABCD,DC=com' -ChangePasswordAtLogon 0 -City Vienna -Description ABCDEF -DisplayName "Test, Monika" -GivenName Monika -Surname Test -UserPrincipalName -state "Vienna" -Country AT -PostalCode A-9999 -StreetAddress "abcdstreet"

Set-ADUser mtest -Enabled 1

Was this article helpful? Then please donate to keep The IT Community alive...

If you found this article helpful please share it, comment and help others by writing your own article.

Translate this page: