Just wanted to share a quick one-liner to check Active Directory domain and forest functional level with AD cmdlets:
[PS] C:\ >Get-QADRootDSE | Format-List *
DomainControllerFunctionality : Windows2003
DomainFunctionality : Windows2003
ForestFunctionality : Windows2003
IsGlobalCatalogReady : True
... and so on ...
Quick, easy and comes quite handy. Besides the AD schema info there’s other useful information – so definitely worth adding to your arsenal.
[UPDATE] Shay and MoW both contacted me saying that I did not include the one-liner which would give you the exact version number. Here you go:
(Get-QADObject (Get-QADRootDSE).SchemaNamingContext -IncludedProperties objectVersion).objectVersion
Subscribe by email




0 Responses to “Detect AD schema version from PowerShell”