{"id":195,"date":"2014-08-31T17:45:25","date_gmt":"2014-08-31T21:45:25","guid":{"rendered":"http:\/\/blog.metcorp.org\/?page_id=195"},"modified":"2015-09-30T13:06:57","modified_gmt":"2015-09-30T17:06:57","slug":"schema-versions","status":"publish","type":"page","link":"https:\/\/adsecurity.org\/?page_id=195","title":{"rendered":"Schema Versions"},"content":{"rendered":"<p>Here&#8217;s a PowerShell HashTable pre-built with the Active Directory and Exchange schema versions as of September 2014.<\/p>\n<p><strong>Active Directory (Forest Prep) Schema Versions:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"52\">13<\/td>\n<td width=\"420\">Windows 2000 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">30<\/td>\n<td width=\"420\">Windows 2003 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">31<\/td>\n<td width=\"420\">Windows 2003 R2 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">39<\/td>\n<td width=\"420\">Windows 2008 BETA Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">44<\/td>\n<td width=\"420\">Windows 2008 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">47<\/td>\n<td width=\"420\">Windows 2008 R2 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">51<\/td>\n<td width=\"420\">Windows Server 8 Developer Preview Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">52<\/td>\n<td width=\"420\">Windows Server 8 BETA Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">56<\/td>\n<td width=\"420\">Windows Server 2012 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">69<\/td>\n<td width=\"420\">Windows Server 2012 R2 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"52\">81<\/td>\n<td width=\"420\">Windows Server 2016 Technical Preview Schema<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Exchange (Forest Prep) Schema Versions:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"65\">4397<\/td>\n<td width=\"408\">Exchange 2000 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">4406<\/td>\n<td width=\"408\">Exchange 2000 SP3 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">6870<\/td>\n<td width=\"408\">Exchange 2003 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">6936<\/td>\n<td width=\"408\">Exchange 2003 SP3 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">10637<\/td>\n<td width=\"408\">Exchange 2007 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">11116<\/td>\n<td width=\"408\">Exchange 2007 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">14622<\/td>\n<td width=\"408\">Exchange 2007 SP2 &amp; Exchange 2010 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">14625<\/td>\n<td width=\"408\">Exchange 2007 SP3 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">14726<\/td>\n<td width=\"408\">Exchange 2010 SP1 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">14732<\/td>\n<td width=\"408\">Exchange 2010 SP2 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">14734<\/td>\n<td width=\"408\">Exchange 2010 SP3 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15137<\/td>\n<td width=\"408\">Exchange 2013 RTM Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15254<\/td>\n<td width=\"408\">Exchange 2013 CU1 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15281<\/td>\n<td width=\"408\">Exchange 2013 CU2 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15283<\/td>\n<td width=\"408\">Exchange 2013 CU3 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15292<\/td>\n<td width=\"408\">Exchange 2013 SP1\/CU4 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15300<\/td>\n<td width=\"408\">Exchange 2013 CU5 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15303<\/td>\n<td width=\"408\">Exchange 2013 CU6 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15312<\/td>\n<td width=\"408\">Exchange 2013 CU7 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15312<\/td>\n<td width=\"408\">Exchange 2013 CU8 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15312<\/td>\n<td width=\"408\">Exchange 2013 CU9 Schema<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">15317<\/td>\n<td width=\"408\">Exchange 2016 Preview Schema<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">PowerShell Script Code:<\/span><\/p>\n<blockquote><p>Write-Verbose &#8220;Create Schema Version hashtable `r &#8221;<br \/>\n$SchemaVersionTable =<br \/>\n@{<br \/>\n&#8220;13&#8221; = &#8220;Windows 2000 Schema&#8221; ;<br \/>\n&#8220;30&#8221; = &#8220;Windows 2003 Schema&#8221;;<br \/>\n&#8220;31&#8221; = &#8220;Windows 2003 R2 Schema&#8221; ;<br \/>\n&#8220;39&#8221; = &#8220;Windows 2008 BETA Schema&#8221; ;<br \/>\n&#8220;44&#8221; = &#8220;Windows 2008 Schema&#8221; ;<br \/>\n&#8220;47&#8221; = &#8220;Windows 2008 R2 Schema&#8221; ;<br \/>\n&#8220;51&#8221; = &#8220;Windows Server 8 Developer Preview Schema&#8221; ;<br \/>\n&#8220;52&#8221; = &#8220;Windows Server 8 BETA Schema&#8221; ;<br \/>\n&#8220;56&#8221; = &#8220;Windows Server 2012 Schema&#8221; ;<br \/>\n&#8220;69&#8221; = &#8220;Windows Server 2012 R2 Schema&#8221; ;<br \/>\n&#8220;81&#8221; = &#8220;Windows Server 2016 Technical Preview Schema&#8221; ;<\/p>\n<p>&#8220;4397&#8221; = &#8220;Exchange 2000 RTM Schema&#8221; ;<br \/>\n&#8220;4406&#8221; = &#8220;Exchange 2000 SP3 Schema&#8221; ;<br \/>\n&#8220;6870&#8221; = &#8220;Exchange 2003 RTM Schema&#8221; ;<br \/>\n&#8220;6936&#8221; = &#8220;Exchange 2003 SP3 Schema&#8221; ;<br \/>\n&#8220;10637&#8221; = &#8220;Exchange 2007 RTM Schema&#8221; ;<br \/>\n&#8220;11116&#8221; = &#8220;Exchange 2007 RTM Schema&#8221; ;<br \/>\n&#8220;14622&#8221; = &#8220;Exchange 2007 SP2 &amp; Exchange 2010 RTM Schema&#8221; ;<br \/>\n&#8220;14625&#8221; = &#8220;Exchange 2007 SP3 Schema&#8221; ;<br \/>\n&#8220;14726&#8221; = &#8220;Exchange 2010 SP1 Schema&#8221; ;<br \/>\n&#8220;14732&#8221; = &#8220;Exchange 2010 SP2 Schema&#8221; ;<br \/>\n&#8220;14734&#8221; = &#8220;Exchange 2010 SP3 Schema&#8221; ;<br \/>\n&#8220;15137&#8221; = &#8220;Exchange 2013 RTM Schema&#8221; ;<br \/>\n&#8220;15254&#8221; = &#8220;Exchange 2013 CU1 Schema&#8221; ;<br \/>\n&#8220;15281&#8221; = &#8220;Exchange 2013 CU2 Schema&#8221; ;<br \/>\n&#8220;15283&#8221; = &#8220;Exchange 2013 CU3 Schema&#8221; ;<br \/>\n&#8220;15292&#8221; = &#8220;Exchange 2013 SP1\/CU4 Schema&#8221; ;<br \/>\n&#8220;15300&#8221; = &#8220;Exchange 2013 CU5 Schema&#8221; ;<br \/>\n&#8220;15303&#8221; = &#8220;Exchange 2013 CU6 Schema&#8221; ;<br \/>\n&#8220;15312&#8221; = &#8220;Exchange 2013 CU7\/CU8\/CU9 Schema&#8221;<br \/>\n&#8220;15317&#8221; = &#8220;Exchange 2016 Preview Schema&#8221;<br \/>\n}<\/p>\n<p>========<br \/>\nEXCHANGE<br \/>\n========<br \/>\nWrite-Verbose &#8220;Get Exchange Forest Prep Version&#8221;<br \/>\n$RootDSEExchangerangeUpper = ([ADSI]&#8221;LDAP:\/\/CN=ms-Exch-Schema-Version-Pt,CN=Schema,CN=Configuration,$RootDSE&#8221;).rangeUpper<br \/>\n$RootDSEExchangeobjectVersion = ([ADSI]&#8221;LDAP:\/\/cn=,cn=Microsoft Exchange,cn=Services,cn=Configuration,$RootDSE&#8221;).objectVersion<br \/>\n$ExchangeSchemaVersionName = $SchemaVersionTable.Get_Item(&#8220;$RootDSEExchangerangeUpper&#8221;)<\/p>\n<p>Write-Output &#8220;The current Exchange Schema Version is $RootDSEExchangerangeUpper which is $ExchangeSchemaVersionName `r &#8221;<br \/>\nWrite-Output &#8221; `r &#8221;<\/p>\n<p><em>OR, using the Active Directory Cmdlets:<\/em><br \/>\nimport-module ActiveDirectory<br \/>\n$ADForestConfigurationDN = ((Get-ADForest).PartitionsContainer) -Replace(&#8216;CN=Partitions,&#8217;)<br \/>\n$ExchangeSchemaInfo = Get-ADObject &#8220;cn=ms-exch-schema-version-pt,cn=Schema,$ADForestConfigurationDN&#8221; -properties rangeupper<br \/>\n$ExchangeSchemaVersion = $ExchangeSchemaInfo.rangeupper<br \/>\n$ExchangeSchemaVersionName = $SchemaVersionTable.Get_Item(&#8220;$ExchangeSchemaVersion&#8221;)<br \/>\nWrite-Output &#8220;The current Exchange Schema Version is $ExchangeSchemaVersion which is $ExchangeSchemaVersionName `r &#8221;<br \/>\nWrite-Output &#8221; `r &#8221;<\/p>\n<p>================<br \/>\nACTIVE DIRECTORY<br \/>\n================<\/p>\n<p>Write-Verbose &#8220;Get AD Forest Prep Version&#8221;<br \/>\n$RootDSE= ([ADSI]&#8221;&#8221;).distinguishedName<br \/>\n$RootDSEADObjectVersion =([ADSI]&#8221;LDAP:\/\/$rootDSEschemaNamingContext&#8221;).objectVersion<br \/>\n$ADSchemaVersionName = $SchemaVersionTable.Get_Item(&#8220;$RootDSEADObjectVersion&#8221;)<br \/>\nWrite-Output &#8220;The current AD Schema Version is $RootDSEADObjectVersion which is $ADSchemaVersionName `r &#8221;<br \/>\nWrite-Output &#8221; `r &#8221;<\/p>\n<p><em>OR, using the Active Directory Cmdlets:<\/em><br \/>\nimport-module ActiveDirectory<br \/>\n$ADForestConfigurationDN = ((Get-ADForest).PartitionsContainer) -Replace(&#8216;CN=Partitions,&#8217;)<br \/>\n$ADSchemaInfo = Get-ADObject &#8220;cn=schema,$ADForestConfigurationDN&#8221; -properties objectversion<br \/>\n$ADSchemaVersion = $ADSchemaInfo.objectversion<br \/>\nWrite-Output &#8220;The current AD Schema Version is $RootDSEADObjectVersion which is $ADSchemaVersionName `r &#8221;<br \/>\nWrite-Output &#8221; `r &#8220;<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a PowerShell HashTable pre-built with the Active Directory and Exchange schema versions as of September 2014. Active Directory (Forest Prep) Schema Versions: 13 Windows 2000 Schema 30 Windows 2003 Schema 31 Windows 2003 R2 Schema 39 Windows 2008 BETA Schema 44 Windows 2008 Schema 47 Windows 2008 R2 Schema 51 Windows Server 8 Developer &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/adsecurity.org\/?page_id=195\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-195","page","type-page","status-publish","hentry","nodate","item-wrap"],"_links":{"self":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/pages\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":9,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/pages\/195\/revisions"}],"predecessor-version":[{"id":1972,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/pages\/195\/revisions\/1972"}],"wp:attachment":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}