====== Add Windows Users ======
FIXME Incomplete and needs verification
===== CLI =====
==== Users ====
https://windowsreport.com/net-user-command-pc/
https://www.lifewire.com/net-user-command-2618097
==== Groups ====
https://www.windows-commandline.com/add-user-to-group-from-command-line/
===== Add Bulk Active Directory Users =====
==== PowerShell ====
https://www.youtube.com/watch?v=Wc-WQrvw2fE
https://msdn.microsoft.com/en-us/powershell/reference/4.0/microsoft.powershell.utility/import-csv
Create a ''users.csv'' file to import from with the first line:
GivenName,Surname,Name,DisplayName,SamAccountName,UserPrincipalName
{{ :computing:windows:users_add_csv.png?750 |users.csv}}
:!: Be sure to install the Windows Feature named ''Windows PowerShell Integrated Scripting Environment (ISE)''.
:!: Run the ''Active Directory Module for Windows PowerShell'' with admin privileges.
**Start -> Administrative Tools -> Right-Click on Active Directory Module for Windows PowerShell -> Run as Administrator**
Test the import:
PS C:\Users\Administrator> Import-Csv .\users.csv
Import the users:
PS C:\Users\Administrator> Import-Csv .\users.csv | New-ADUser -Enabled $True -AccountPassword (ConvertTo-SecureString Pass123 -AsPlainText -force) -ChangePasswordAtLogon $True -City Tucson -State AZ
==== AD Bulk Admin Tool ====
https://sourceforge.net/projects/adbulkadmin/
This is a bulk administration tool for an AD administrator to administer a large number of Active Directory users.
You can use it to:
* Check a large number of users
* Create a large number of users
* Reset a large number of users' passwords
* Enable or disable a large number of users
* Set a large number of users' properties
* Check groups
* Add users to group or remove users from group