Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to check the LDAP version in Windows Server 2003 without running a powershell script?

Thanks, Toast

share|improve this question
Do you mean what version of LDAP your Active Directory installation is using? – squillman Aug 6 '10 at 17:45
Absolutely, forgive me :) – ToastMan Aug 6 '10 at 17:53
up vote 2 down vote accepted

the following vbscript will work :

Set objRootDSE = GetObject("LDAP://RootDSE")

For Each strVersion In objRootDSE.Get("SupportedLDAPVersion")
  Wscript.Echo "LDAP Version: " & strVersion 

returns :

LDAP Version: 3

LDAP Version: 2


share|improve this answer
Many thanks for your excellent help, just a little note: The 'Next' at the very end belongs to a new line, otherwise the script returns a punch to the kidney. Toast. – ToastMan Aug 9 '10 at 19:01

Unless I'm very much mistaken, AD's LDAP supports the LDAPv3 protocol uniformly.

share|improve this answer
I believe that is a well known fact. – ToastMan Aug 6 '10 at 17:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.