Windows Server 2025 Domain and Functional Levels domainFunctionality and forestFunctionality attributes
The Active Directory domain and functional levels have changed for Windows Server 2025 with a new functional level being added.
However the documentation for the 3.1.1.3.2.26 domainFunctionality and 3.1.1.3.2.27 forestFunctionality attributes have not been updated.
0 DS_BEHAVIOR_WIN2000
1 DS_BEHAVIOR_WIN2003_WITH_MIXED_DOMAINS
2 DS_BEHAVIOR_WIN2003
3 DS_BEHAVIOR_WIN2008
4 DS_BEHAVIOR_WIN2008R2
5 DS_BEHAVIOR_WIN2012
6 DS_BEHAVIOR_WIN2012R2
7 DS_BEHAVIOR_WIN2016
The new value
10 DS_BEHAVIOR_WIN2025
Notice there is a gap of two numbers for Server 2016 and Server 2019 that didn't have an update to the domain and forest functional levels.
In addition to this the .NET Framework classes have not been updated - both of these commands (shown in Windows PowerShell) return "Unknown" for the domain and forest modes.
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest();
[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()
The PowerShell cmdlets however have been updated.
Get-ADDomain|SELECT DomainMode
Get-ADForest|SELECT ForestMode
If you need to determine the domain functional level without using the PowerShell cmdlets you can still use a directory entry and read the domain functionality property that corresponds to a value listed above.
(New-Object DirectoryServices.DirectoryEntry "LDAP://domainname/RootDSE").Properties["domainFunctionality"];
If you need to determine the forest functional level without using the PowerShell cmdlets you can still use a directory entry and read the forestFunctionality property that corresponds to a value listed above.
(New-Object DirectoryServices.DirectoryEntry "LDAP://forestname/RootDSE").Properties["forestFunctionality"];
Comments
Post a Comment