Skip to content

Instantly share code, notes, and snippets.

@ScriptingPro
Last active February 5, 2019 19:35
Show Gist options
  • Save ScriptingPro/2119634011b66f369268c02fd41ad766 to your computer and use it in GitHub Desktop.
Save ScriptingPro/2119634011b66f369268c02fd41ad766 to your computer and use it in GitHub Desktop.
different ways to get configurationNamingContext
[ADSI]"LDAP://RootDSE" | fl *
([ADSI]"LDAP://RootDSE").configurationNamingContext
([ADSI]"LDAP://RootDSE").get("configurationNamingContext")
# Domain Distinguished Name
([ADSI]"LDAP://RootDSE").defaultNamingContext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment