Tuesday, October 11, 2016

View Schema Version PowerShell

Hi folks,

I have recently discovered a nice way to retrieve schema version using PowerShell. Earlier I published how to do it using dsquery command. However with dsquery you need to remember the DN for your forest. This one-liner makes life a lot easier:

Get-ADObject (get-adrootdse).schemaNamingContext -Property objectVersion

About each version of Windows Server in schema you can read here.

Enjoy!