Get Schema version of one or all domain controllers in a domain

Single Domain Controller: To find out the current schema version by inspecting the objectVersion property of CN=Schema,CN=Configuration, For example, to find out the current schema version, use a tool like ADSIEDIT or dsquery, e.g.: CMD:

PowerShell:

Multiple Domain Controllers: During a schema update or just as a pre-check it is important to find […]