when i type this command import-csv c:\import\onlyusers.csv | %{ new-qaduser -ParentContainer 'OU=Users,DC=dablock,DC=org' -name $_.name -samAccountName $_.samaccountname -UserPrincipalName $_.userprincipalname -FirstNam e $_.cn -LastName $_.sn -DisplayName $_.givenname -UserPassword $_.Password }
i get the following error New-QADUser : Cannot resolve directory object for the given identity: 'OU=Users,DC=dablock,DC=org'. At line:1 char:52 + import-csv c:\import\onlyusers.csv | %{ new-qaduser <<<< -ParentContainer 'OU=Users,DC=dablock,DC=org' -name $_.name -samAccountName $_.samaccountname -UserPrincipalName $_.userprincipalname -FirstName $_.cn -LastName $_.sn -DisplayNam e $_.givenname -UserPassword $_.Password }
the i try Get-QADObject technical -Type OrganizationalUnit and i get no return. anyone have any ideas? the ou does exist as it is an out of the box AD install. TIA
|