Many times I saw on forums that people ask, how to check current schema version. They want to know if they need to extend it before adding new server OS as Domain Controller. I decided to write this short post about that (yes, I know that in the Internet is many other sites with this topic 🙂 but I wanted to show this my way)
Let’s start. We have few possibilities to check that
- GUI console (ADSI Editor)
- Microsoft DS Tools (dsquery command)
- 3rd party tools (i.e. adfind from Joe Ware)
I will show you how you can check schema version using all of mentioned options
On Windows Server 2003 to be able to run this console (adsiedit.msc) you need to install first Windows Server 2003 Support Tools from the first server installation CD. You can find them in a location of your CD/DVD-ROM drive in SupportTools directory, install suptools.msi file.
Whereas on Windows Server 2008 you need to add “Active Directory Domain Services Tools” from Control Panel -> RSAT -> Role Administration Tools (on a DC these tools are available by default, when you pormote server as Domain Controller, they are installed automatically)
When you have done adding necessary tools to your system, you can start ADSI Editor. To do that in run box type adsiedit.msc and press enter
You should see ADSI Edit, now. To check schema version, select “Schema” well know Naming Context in left pane, expand it and select schema container
Click on it right mouse button and choose “Properties“. In “Attribute Editor” search for objectVersion attibute and check its value. That value is current schema version.
Schema version of
- 13 – Windows 2000 Server
- 30 – Windows Server 2003 (realease 1)
- 31 – Windows Server 2003 R2 (release 2)
- 44 – Windows Server 2008 (release 1)
- 47 – Windows Server 2008 R2 (release 2)
- 51 – Windows Server 8 Developers Preview (new server edition; now only in Developer’s preview for MSDN subscribers)
- 52 – Windows Server 8 Beta (publicly available)
- 56 – Windows Server 2012 (release 1)
- 69 – Windows Server 2012 R2 (release 2)
- 72 – Windows Server Technical Preview (2014)
- 81 – Windows Server Technical Preview 2 (2015)
- 82 – Windows Server 2016 Technical Preview 3 (2015)
- 85 – Windows Server 2016 Technical Preview 4 (2015)
- 87 – Windows Server 2016
Microsoft DS Tools
Another short and also simple method for achiving that are Microsoft DS Tools and to be more specific – dsquery command.
DS Tools are available on each Domain Controller or workstation/server with Administrative/RSAT Tools installed.
To start checking schema version from command-line type
dsquery * “cn=schema,cn=configuration,dc=domain,dc=local” -scope base -attr objectVersion
An output of that command will show you schema version value
3rd party tool ADFIND
This tool is completely free and can be downloaded from http://www.joeware.net/freetools/tools/adfind/index.htm
This is very poweful tool which can be used for other Active Direcrory/LDAP queries, not only for schema version. I learnt using the tool on Experts-Exchange forum from Mike (mkline71) who really knows how to use that :]
When you downloaded ADFIND open command-line and go to folder where it is saved and run this syntax
adfind -sc schver
and that’s all, review its output. You will see everything what you want to know about schema version
Enjoy checking schema version.
Author: Krzysztof Pytko