This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Binding to rootDSE

Hello,

Came across some odd behaviour of some really basic functionality that has me scratching my head.

This very simple example code is not currently working for me:

$rootDSE = [ADSI]"EDMS://rootDSE"
#$rootDSE
# Generates the following error:
# format-default : The following exception occurred while retrieving member "distinguishedName": "Unknown error (0x800426c7)"
#    + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedTypeSystemException
#    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand

$rootDSE | Format-List -Property *
# Succeeds, but does not return any properties

$rootDSE.GetInfoEx(@("edsvaServiceFullDns"),0)
# Generates the following error:
# # The following exception occurred while retrieving member "GetInfoEx": "Unknown error (0x800426c7)"
# At line:1 char:22
# + $rootDSE.GetInfoEx(@("edsvaServiceFullDns"),0)
# +                      ~~~~~~~~~~~~~~~~~~~~~
#     + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException
#     + FullyQualifiedErrorId : CatchFromBaseGetMember

$rootDSE.Get("edsvaServiceFullDns")
# Unable to succeed since GetInfoEx() is failing.

It also fails if I provide a server name in the LDAP path. This is level 101 stuff but cannot figure out why it's failing. Even tried VBS (using Sargay's eample posted here, and that's failing too.

Anyone see that I am doing something incredibly stupid?

Thanks,
Shawn.

Parents Reply Children
No Data