Adding users
Run the following command:
Note: Change lines Such as the path to you CSV file
Import-Csv "PATH.TO.YOUR.CSV.FILE" | ForEach-Object { New-ADUser -Name "$($_.FirstName) $($_.LastName)" -GivenName $_.FirstName -Surname $_.LastName -SamAccountName $_.SamAccountName -UserPrincipalName $_.UserPrincipalName -AccountPassword (ConvertTo-SecureString $_.Password -AsPlainText -Force) -Enabled $true}