Exchange Server

Active Directory ile Exchange Server Şema Kontrolü

Microsoft Exchange Server kurulumuna başlamadan önce yapılması gereken önemli adımlardan biri, Active Directory şemasının uygun şekilde genişletilip hazırlandığından emin olmaktır. Bu adım, Exchange Server ile Active Directory arasındaki uyumluluğu sağlamak için kritik öneme sahiptir.

Bu yazıda, mevcut Active Directory yapınızda Exchange Server’a ait Schema Version, ObjectVersion (Default) ve ObjectVersion (Configuration) değerlerinin nasıl kontrol edileceğini hem PowerShell hem de ADSI Edit aracılığıyla göstereceğiz.

Exchange Server Schema Versiyonlarının listesini makalemden takip edebilirsiniz.

PowerShell ile Exchange Server Schema Sürümü Nasıl Kontrol Edilir?

Exchange ortamınızı güncellemeye başlamadan önce, şema sürümünüzü kontrol etmek en doğru yaklaşımdır. Aşağıdaki PowerShell scripti ile bu bilgileri Active Directory üzerinden alabilirsiniz:

# Validate Active Directory module availability
if (-not (Get-Module -ListAvailable -Name ActiveDirectory)) {
    throw "The 'ActiveDirectory' module is not available. Please install RSAT or import the module manually."
}

Import-Module ActiveDirectory -ErrorAction Stop

function Get-ExchangeSchemaVersion {
    $schemaContext = (Get-ADRootDSE).SchemaNamingContext
    $schemaDn = "CN=ms-Exch-Schema-Version-Pt,$schemaContext"
    $schemaObj = Get-ADObject -Identity $schemaDn -Properties rangeUpper
    return $schemaObj.rangeUpper
}

function Get-ExchangeDomainObjectVersion {
    $domainContext = (Get-ADRootDSE).DefaultNamingContext
    $domainDn = "CN=Microsoft Exchange System Objects,$domainContext"
    $domainObj = Get-ADObject -Identity $domainDn -Properties objectVersion
    return $domainObj.objectVersion
}

function Get-ExchangeConfigurationVersion {
    $configContext = (Get-ADRootDSE).ConfigurationNamingContext
    $filter = "(objectClass=msExchOrganizationContainer)"
    $configObj = Get-ADObject -LDAPFilter $filter -SearchBase $configContext -Properties objectVersion
    return $configObj.objectVersion
}

function Show-ExchangeAdVersions {
    Write-Host "`n=================== Exchange AD Version Details ===================" -ForegroundColor Cyan
    Write-Host ("Schema Version (rangeUpper):".PadRight(40) + (Get-ExchangeSchemaVersion))
    Write-Host ("Domain Object Version:".PadRight(40) + (Get-ExchangeDomainObjectVersion))
    Write-Host ("Configuration Object Version:".PadRight(40) + (Get-ExchangeConfigurationVersion))
    Write-Host "===================================================================" -ForegroundColor Cyan
}

# Execute
Show-ExchangeAdVersions

Bu script çalıştırıldığında şu bilgileri elde edersiniz:

objectVersion (Configuration): Configuration naming context altındaki Exchange Organization objesindeki objectVersion.

rangeUpper: ms-Exch-Schema-Version-Pt nesnesindeki şema versiyonu.

objectVersion (Default): Microsoft Exchange System Objects konteynerindeki objectVersion.

ADSI Edit ile Exchange Server Schema Sürümü Nasıl Kontrol Edilir?

PowerShell kullanmak istemiyorsanız, aynı bilgileri ADSI Edit aracı ile manuel olarak da kontrol edebilirsiniz.

ADSI Edit, Windows Server üzerindeki Active Directory yapılarını yönetmek için kullanılan bir araçtır ve LDAP (Lightweight Directory Access Protocol) üzerinden doğrudan Active Directory nesnelerine erişim sağlar.

Nasıl Kontrol Edilir?

Microsoft Exchange Server kurulumuna başlamadan önce yapılması gereken önemli adımlardan biri, Active Directory şemasının uygun şekilde genişletilip hazırlandığından emin olmaktır. Bu adım, Exchange Server ile Active Directory arasındaki uyumluluğu sağlamak için kritik öneme sahiptir.

Bu yazıda, mevcut Active Directory yapınızda Exchange Server’a ait Schema Version, ObjectVersion (Default) ve ObjectVersion (Configuration) değerlerinin nasıl kontrol edileceğini hem PowerShell hem de ADSI Edit aracılığıyla göstereceğiz.

Ayrıca, her Exchange Server sürümüne ait versiyon numaralarını da listeledik.


PowerShell ile Exchange Server Schema Sürümü Nasıl Kontrol Edilir?

Exchange ortamınızı güncellemeye başlamadan önce, şema sürümünüzü kontrol etmek en doğru yaklaşımdır. Aşağıdaki PowerShell scripti ile bu bilgileri Active Directory üzerinden alabilirsiniz:

# Validate Active Directory module availability
if (-not (Get-Module -ListAvailable -Name ActiveDirectory)) {
    throw "The 'ActiveDirectory' module is not available. Please install RSAT or import the module manually."
}

Import-Module ActiveDirectory -ErrorAction Stop

function Get-ExchangeSchemaVersion {
    $schemaContext = (Get-ADRootDSE).SchemaNamingContext
    $schemaDn = "CN=ms-Exch-Schema-Version-Pt,$schemaContext"
    $schemaObj = Get-ADObject -Identity $schemaDn -Properties rangeUpper
    return $schemaObj.rangeUpper
}

function Get-ExchangeDomainObjectVersion {
    $domainContext = (Get-ADRootDSE).DefaultNamingContext
    $domainDn = "CN=Microsoft Exchange System Objects,$domainContext"
    $domainObj = Get-ADObject -Identity $domainDn -Properties objectVersion
    return $domainObj.objectVersion
}

function Get-ExchangeConfigurationVersion {
    $configContext = (Get-ADRootDSE).ConfigurationNamingContext
    $filter = "(objectClass=msExchOrganizationContainer)"
    $configObj = Get-ADObject -LDAPFilter $filter -SearchBase $configContext -Properties objectVersion
    return $configObj.objectVersion
}

function Show-ExchangeAdVersions {
    Write-Host "`n=================== Exchange AD Version Details ===================" -ForegroundColor Cyan
    Write-Host ("Schema Version (rangeUpper):".PadRight(40) + (Get-ExchangeSchemaVersion))
    Write-Host ("Domain Object Version:".PadRight(40) + (Get-ExchangeDomainObjectVersion))
    Write-Host ("Configuration Object Version:".PadRight(40) + (Get-ExchangeConfigurationVersion))
    Write-Host "===================================================================" -ForegroundColor Cyan
}

# Execute
Show-ExchangeAdVersions

Bu script çalıştırıldığında şu bilgileri elde edersiniz:

  • rangeUpper: ms-Exch-Schema-Version-Pt nesnesindeki şema versiyonu.
  • objectVersion (Default): Microsoft Exchange System Objects konteynerindeki objectVersion.
  • objectVersion (Configuration): Configuration naming context altındaki Exchange Organization objesindeki objectVersion.

ADSI Edit ile Exchange Server Schema Sürümü Nasıl Kontrol Edilir?

PowerShell kullanmak istemiyorsanız, aynı bilgileri ADSI Edit aracı ile manuel olarak da kontrol edebilirsiniz.

ADSI Edit’i Başlatma

  1. “Çalıştır” (Run) penceresini açın.
  2. adsiedit.msc yazın ve Enter’a basarak uygulamayı başlatın.

rangeUpper (Schema Version) Değeri

  1. ADSI Edit > Connect to > Schema context ile bağlantı kurun.
  2. Schema dizinine gidin ve CN=ms-Exch-Schema-Version-Pt objesini bulun.
  3. Properties sekmesinde rangeUpper değerini gözlemleyin.
RANGEuPPER
Active Directory ile Exchange Server Şema Kontrolü 5

objectVersion (Default)

  1. ADSI Edit > Connect to > Default Naming Context ile bağlantı kurun.
  2. CN=Microsoft Exchange System Objects nesnesine gidin.
  3. Properties sekmesinde objectVersion değerini inceleyin.
objectversion
Active Directory ile Exchange Server Şema Kontrolü 6

objectVersion (Configuration)

  1. ADSI Edit > Connect to > Configuration context ile bağlantı kurun.
  2. Services > Microsoft Exchange > <Organization Name> yolunu izleyin.
  3. İlgili objenin Properties sekmesinde objectVersion bilgisini kontrol edin.
objectversionconfiguration
Active Directory ile Exchange Server Şema Kontrolü 7

Bu kontroller, ortamınızda Exchange Server yüklemeden önce Active Directory sürüm uyumluluğunu sağlamak için kritik öneme sahiptir.

Yardıma ihtiyacınız olursa yorumlarda belirtebilirsiniz.

İlgili Makaleler

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Başa dön tuşu