Create User Accounts With Powershell | Active Directory Automated User Creation

preview_player
Показать описание
Create User Accounts with Powershell - Create your Active Directory Accounts quick and easily with this Powershell Script. In order to create user accounts (without a mailbox enabled, you will need to use the New-ADUser cmdlet. The parameters will specify which properties are added as well which password you would like to use. New-ADUser passwords must be encrypted as a secure string in order for it to successfully create the user.

#PowershellBooks :
Рекомендации по теме
Комментарии
Автор

For the TLDW - 3:24 is where I actually run the demo for the script.

TheSysadminChannel
Автор

Thanks! This is great, I was looking for something like this to reference and play with in my own lab.

Coffeebeamz
Автор

Hello, great video! One mini issue I have with this script. Once I enter the first and last name, it does show the first and last name combined, but then it shows a "colon" after that.. which is making us enter a display name. Should'nt the display name already be automatically entered once we entered the first and last name?

vignesh
Автор

nice script! but i have encourntered a problem, while I make the same user account, I see that it going to use the second letter in my firstname but after entering the password etc etc I get this:

new-ADuser : an attempt was made to add an object to the directory with a name that is already in use

and

get-ADuser : cannot find an object with identity : ... under :

at 5:31 I get the error and you dont

TheGamer
Автор

there is something happening here:

New-ADUser -Name $fullname -GivenName $firstname -Surname $lastname -DisplayName $fullname -SamAccountName $logonname -UserPrincipalName $logonname@$Domain -AccountPassword $password -Enabled $true -Path $OU -Description $Description -Confirm:$false

if you are trying to create the same person, it will write host you that it is going to use the second letter in your name but after entering a password you will get a error referring to that code

TheGamer