Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

exception error importing into active directory help!

$
0
0

I'm running a script to import user infor from csv into active directory, I'm not sure why i'm getting this error:

 

Get-ADUser : The search filter cannot be recognized
At C:\addupdateadusers.ps1:80 char:28
+         if($user=Get-AdUser <<<<  -filter {sAMAccountName -eq $name})
    + CategoryInfo          : NotSpecified: (:) [Get-ADUser], ADException
    + FullyQualifiedErrorId : The search filter cannot be recognized,Microsoft.ActiveDirectory.Management.Commands.GetADUser

 

does it mean that the saMAccountName in my csv does not match any in active directory ?any help would be appreciated?


Viewing all articles
Browse latest Browse all 6937

Trending Articles