eric said:
Hi all
1 Windows2003 forest-1tree-multiple childdomains
Is there any quick way to obtain a list of all the childdomain "domain
functional level" ? ie "windows 2000 mixed or windows2000 native" or
"windows server 2003"
I know the root is at "windows server 2003" domain functional level.
thx
Many ways are available; the following sprung to mind (note that
"ldifde" command below should be entered on one line only / copy and
paste it and modify the "dc=" components of the -d argument as
necessary) -
ldifde -d cn=partitions,cn=configuration,dc=mset,dc=local -r
"(|(systemFlags=3)(systemFlags=-2147483648))" -l
msds-behavior-version,dnsroot,ntmixeddomain,nETBIOSName -p subtree-f con
... or ...
ldifde -d cn=partitions,cn=configuration,dc=<forest root DN> -r
"(|(systemFlags=3)(systemFlags=-2147483648))" -l
msds-behavior-version,dnsroot,ntmixeddomain,nETBIOSName -p subtree -f
con
The pertinent part of the result appears as follows -
Writing out entries.dn: CN=Partitions,CN=Conf...<snip>
changetype: add
msDS-Behavior-Version: 2
.dn: CN=MSET,CN=Partitions,CN=Conf...<snip>
changetype: add
msDS-Behavior-Version: 2
dnsRoot: mset.local
nETBIOSName: MSET
nTMixedDomain: 0
msDS-Behavior-Version: 2
... or ...
Writing out entries.dn: CN=Partitions,CN=Conf...<snip>
changetype: add
msDS-Behavior-Version: 2 <forest functional level>
[[0=2000/1=Interim/2=2003 Native]]
.dn: CN=MSET,CN=Partitions,CN=Conf...<snip>
changetype: add
dnsRoot: <DNS name of domain>
nETBIOSName: <NetBIOS name of domain>
nTMixedDomain: <1 = mixed mode / 0 = native mode>
msDS-Behavior-Version: <0=2000/1=Interim/2=2003 Native>
[[line above is domain functional level]]
If "msDS-Behavior-Version" is omitted for a particular domain, equate
that to a zero.
HTH