有一个姓氏、名字的 csv,并且似乎无法将用户解析为他们的 SamAccountName。无论我如何尝试,我都会收到以下错误。下面是错误。
我试图不使用 quest cmdlet。
Get-ADUser : Cannot find an object with identity: 'doe, john' under: 'DC=corp,DC=company,DC=ORG'.
At line:1 char:11
+ get-aduser <<<< "doe, john"
+ CategoryInfo : ObjectNotFound: (doe, john:ADUser) [Get-ADUse
r], ADIdentityNotFoundException
+ FullyQualifiedErrorId : Cannot find an object with identity: 'doe, john' under: 'DC=corp,DC=company,DC=ORG'.,Microsoft.ActiveDirectory.Management.
Commands.GetADUser