<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Get Exchange Schema Version Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/get-exchange-schema-version/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/get-exchange-schema-version/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Tue, 09 Nov 2021 19:39:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>Get Exchange Schema Version Using Powershell</title>
		<link>https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/</link>
					<comments>https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 15:53:17 +0000</pubDate>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Get Exchange Schema Version]]></category>
		<category><![CDATA[Get Exchange Schema Version powershell]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=3295</guid>

					<description><![CDATA[<p>If it has been a while since your last Microsoft Exchange Server install or if you inherited a setup, you might be wondering what&#8217;s the easiest and quickest way to get Exchange schema version. Lucky for you, we&#8217;re in the&#8230; <a href="https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/">Get Exchange Schema Version Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If it has been a while since your last Microsoft Exchange Server install or if you inherited a setup, you might be wondering what&#8217;s the easiest and quickest way to get Exchange schema version.  Lucky for you, we&#8217;re in the business of making things as quick and easy as possible for you.  Today we&#8217;re going to go over the steps to check the schema version using Powershell.</p>
<h2>Requirements</h2>
<ul>
<li>The ActiveDirectory Powershell Module must be installed on the machine running the script</li>
<li>Exchange Server Installed in your Domain</li>
</ul>
<p>&nbsp;<br />
In order for things to run smoothly, we&#8217;ll need to make sure the machine running the script has the ActiveDirectory module installed.  Aside from that, there are no specific permissions needed since this is available as read-only attributes to anyone in the domain. One caveat is that this has only been tested on Domains that have an Exchange Server installed so I&#8217;m sure it will error out if it doesn&#8217;t find the attributes it needs.</p>
<h2>Get Exchange Schema Version Using Powershell</h2>
<p>Here is the quick and easy way for finding exactly which Exchange Schema version you&#8217;re running in your environment.<br />
&nbsp;</p>
<pre class="brush: powershell; title: ; notranslate">

Function Get-ExchangeSchemaVersion {
#requires -Module ActiveDirectory
&lt;#
.SYNOPSIS
    This script check your current Exchange Schema Version.

.DESCRIPTION
    Microsoft Link for Exchange Server Versions
    https://docs.microsoft.com/en-us/exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2016#exchange-active-directory-versions
    https://docs.microsoft.com/en-us/exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019#exchange-active-directory-versions

.NOTES
    Name: Get-ExchangeSchemaVersion
    Author: theSysadminChannel
    Version: 1.0
    LastUpdated: 2021-Nov-9

.LINK
    https://thesysadminchannel.com/get-exchange-schema-version-using-powershell -

.EXAMPLE
    Get-ExchangeSchemaVersion
#&gt;

    [CmdletBinding()]
    param(
        #No Parameters needed in this case.
    )

    BEGIN {
        #Only 2016 and 2019 Version Are Supported to Display Exchange CU Version. 
        $ExchangeVersion = @{
            44798 = 'Exchange 2016 CU22'
            44796 = 'Exchange 2016 CU21'
            44793 = 'Exchange 2016 CU20'
            44791 = 'Exchange 2016 CU19'
            44788 = 'Exchange 2016 CU18'
            44786 = 'Exchange 2016 CU17'
            44783 = 'Exchange 2016 CU12'
            44782 = 'Exchange 2016 CU11'
            44781 = 'Exchange 2016 CU10'
            44779 = 'Exchange 2016 CU6'
            44775 = 'Exchange 2016 CU5'
            44774 = 'Exchange 2016 CU3'
            44773 = 'Exchange 2016 CU2'
            44770 = 'Exchange 2016 CU1'
            44763 = 'Exchange 2016 RTM'
            44594 = 'Exchange 2016 Preview'
            #
            47004 = 'Exchange 2019 CU11'
            47002 = 'Exchange 2019 CU10'
            46999 = 'Exchange 2019 CU9'
            46997 = 'Exchange 2019 CU8'
            46994 = 'Exchange 2019 CU7'
            46992 = 'Exchange 2019 CU6'
            46988 = 'Exchange 2019 CU1'
            46987 = 'Exchange 2019 RTM'

        }
    }

    PROCESS {
        try {
            $DomainController = Get-ADDomain | select -ExpandProperty PDCEmulator
            $ADRootDSE = Get-ADRootDSE -Server $Domaincontroller -ErrorAction Stop

            $UpperObject = &quot;CN=ms-Exch-Schema-Version-Pt,&quot;+$ADRootDSE.SchemaNamingContext
            $RangeUpper = Get-ADObject $UpperObject -Properties RangeUpper | select -ExpandProperty RangeUpper


            $NamingContext = &quot;CN=Microsoft Exchange System Objects,&quot; + $ADRootDSE.DefaultNamingContext
            $ObjectVersion_Default = Get-ADObject $NamingContext -Properties ObjectVersion | select -ExpandProperty ObjectVersion

            $ConfigContext = $ADRootDSE.ConfigurationNamingContext
            $ObjectVersion_Configuration = Get-ADObject -LDAPFilter &quot;(objectClass=msExchOrganizationContainer)&quot; -SearchBase $ConfigContext -Properties ObjectVersion | select -ExpandProperty ObjectVersion

            [PSCustomObject]@{
                ExchangeVersion             = $ExchangeVersion[$RangeUpper + $ObjectVersion_Default + $ObjectVersion_Configuration]
                RangeUpper                  = $RangeUpper
                ObjectVersion_Default       = $ObjectVersion_Default
                ObjectVersion_Configuration = $ObjectVersion_Configuration
            }

        } catch {
            Write-Error $_.Exception.Message
        }
    }

    END {}
}

</pre>
<p>&nbsp;<br />
<a href="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Schema-Version-Powershell.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Schema-Version-Powershell.png" alt="Get Exchange Schema Version Powershell" width="808" height="300" class="aligncenter size-full wp-image-3298" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Schema-Version-Powershell.png?v=1627962763 808w, https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Schema-Version-Powershell-768x285.png?v=1627962763 768w" sizes="(max-width: 808px) 100vw, 808px" /></a></p>
<h2>How to Confirm Exchange Version</h2>
<p>Once you&#8217;ve determined the schema, you can also cross check with the Exchange Version that&#8217;s currently installed in your environment.  I wrote another script to <a href="https://thesysadminchannel.com/get-exchange-cumulative-update-version-and-build-numbers-using-powershell/" rel="noopener" target="_blank">get Exchange Cumulative Update Version and Build Numbers Using Powershell</a> so this will also be useful to determine the footprint.  When I connect to my Exchange Server and run that function, I am showing as having &#8220;Exchange Server 2019 Cumulative Update 1 (CU1)&#8221; installed which coincides with my schema version.</p>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Version-Powershell.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Version-Powershell.png" alt="Get Exchange Version Powershell" width="809" height="301" class="aligncenter size-full wp-image-3303" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Version-Powershell.png?v=1628004924 809w, https://thesysadminchannel.com/wp-content/uploads/2021/08/Get-Exchange-Version-Powershell-768x286.png?v=1628004924 768w" sizes="(max-width: 809px) 100vw, 809px" /></a></p>
<h3>Conclusion</h3>
<p>Hopefully this article was able to relay how to <strong>get Exchange Schema Version Using Powershell</strong> in your environment. If you liked this article, be sure to check out our other <a href="https://thesysadminchannel.com/powershell/" rel="noopener" target="_blank">Powershell Posts</a> as well as our <a href="https://thesysadminchannel.com/exchange-server/" rel="noopener" target="_blank">Exchange Server category</a> items.</p>
<p>The post <a href="https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/">Get Exchange Schema Version Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/get-exchange-schema-version-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3295</post-id>	</item>
	</channel>
</rss>
