Active directory 活动目录。检索成员DifferentizedName时发生以下异常:发生操作错误

Active directory 活动目录。检索成员DifferentizedName时发生以下异常:发生操作错误,active-directory,ldap,Active Directory,Ldap,我尝试使用LDAP从AD获取信息。之前,我在localhost:5000上通过DSAMAIN安装了ntds.dit PS C:\Users\Administrator> ([ADSI]"LDAP://localhost:5000/") format-default : The following exception occurred while retrieving member "distinguishedName": "Unknown error (0x80005000)" +

我尝试使用LDAP从AD获取信息。之前,我在localhost:5000上通过DSAMAIN安装了ntds.dit

PS C:\Users\Administrator> ([ADSI]"LDAP://localhost:5000/")
format-default : The following exception occurred while retrieving member "distinguishedName": "Unknown error
(0x80005000)"
    + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedTypeSystemException
    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand
我做错了什么

PS C:\Users\Administrator> ([ADSI]"LDAP://localhost:5000/DC=srv,DC=local")
format-default : The following exception occurred while retrieving member "distinguishedName": "An operations error
occurred.
"
    + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedTypeSystemException
    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand
PS C:\Users\Administrator> [ADSI]::Exists("LDAP://localhost:5000/DC=srv,DC=local")
Exception calling "Exists" with "1" argument(s): "An operations error occurred.
"
At line:1 char:1
+ [ADSI]::Exists("LDAP://localhost:5000/DC=srv,DC=local")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DirectoryServicesCOMException
PS C:\Users\Administrator> [adsi]"LDAP://localhost:5000/RootDSE"

distinguishedName : {}
Path              : LDAP://localhost:5000/RootDSE