
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.
İçindekiler
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
- “Çalıştır” (Run) penceresini açın.
adsiedit.msc
yazın ve Enter’a basarak uygulamayı başlatın.
rangeUpper (Schema Version) Değeri
ADSI Edit > Connect to > Schema context
ile bağlantı kurun.- Schema dizinine gidin ve
CN=ms-Exch-Schema-Version-Pt
objesini bulun. - Properties sekmesinde
rangeUpper
değerini gözlemleyin.

objectVersion (Default)
- ADSI Edit > Connect to > Default Naming Context ile bağlantı kurun.
CN=Microsoft Exchange System Objects
nesnesine gidin.- Properties sekmesinde
objectVersion
değerini inceleyin.

objectVersion (Configuration)
- ADSI Edit > Connect to > Configuration context ile bağlantı kurun.
Services > Microsoft Exchange > <Organization Name>
yolunu izleyin.- İlgili objenin Properties sekmesinde
objectVersion
bilgisini kontrol edin.

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.
2 Yorum