Those of you out there with relatively large domains can understand what a pain it is to search through AD Sites and Services to find which site a domain controller belongs to.
Being that I am very impatient I decided enough was enough and figured out how to use a tool called nltest. It can do all sorts of things, but for now check this out:
nltest /server:<servername> /dsgetsite
Not only can you run this against a DC, you can run it against any computer in your domain to find which site it belongs to.
Wanna know the Schema version of your Active Directory?
One simple way is to logon to a domain controller and go to HKLM\System\CurrentControlSet\Services\NTDS\Parameters and look at the data portion for
the "System Schema Version" entry which sometimes, in some situations of which I'm not aware of but I've heard on the street, it's called the "Schema Version" entry.
Then check it against the following:
13 = 2000
30 = 2003
31 = 2003 R2
44 = 2008
?? = 2008 R2
Is there a pattern that I'm just not seeing?
--UPDATE--
You can look in ADSIEdit too. Just look at the objectVersion in the properties of CN=Schema,CN=Configuration,DC=your,DC=domain,DC=com.