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.

https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/6dd88965-8feb-4369-ae7e-075985da8071


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"];



 While you're here -
Why not check out our 
Active Directory Documentation Tool?




Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

When using the "Send to compressed (zipped) folder" context menu item nothing happens