Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: new-aduser error

$
0
0

$FileToImport = “C:\NewHires.csv”
import-csv $FileToImport |ForEach-Object { New-QADUser -name $_.name -FirstName $_.FirstName -LastName $_.LastName -SamAccountName $_.Samaccountname -Email $_.email`
-userpassword $_.password -HomeDirectory $_.homedirectory -HomeDrive “U:” -Displayname $_.displayname -title $_.title -Department $_.department -office $_.office -streetaddress $_.streetaddress -city $_.city `
-description ‘Class_06-02′ -stateorprovince $_.stateorprovince -postalcode $_.postalcode -UserPrincipalName $_.UserPrincipalName -ParentContainer your.domain/ou/users}
# requires quest snap in


Viewing all articles
Browse latest Browse all 13067

Trending Articles