Re: quick way to know which childdomain still in w2000?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dean Wells [MVP] (dwells_at_mask.msetechnology.com)
Date: 09/15/04


Date: Tue, 14 Sep 2004 21:28:11 -0400

Joe Richards [MVP] wrote:
> With Adfind the command would look like (all one line)
>
> adfind -config -rb cn=partitions -f
> "(|(systemFlags=3)(systemFlags=-2147483648))" msds-behavior-version
> dnsroot ntmixeddomain nETBIOSName
>
> and wouldn't have to be modified per forest, same command, every
> forest. :o)
>
> output would be something like
>
>
>
>
> [Tue 09/14/2004 18:26:48.37] +
> F:\DEV\ForHP\Perl\ADStory>adfind -config -rb cn=partitions -f
> "(|(systemFlags=3)(systemFlags=-2147483648))" msds-behavior-version
> dnsroot ntmixeddomain nETBIOSName
>
> AdFind V01.20.00cpp Joe Richards (joe@joeware.net) August 2004
>
> Using server: 2k3dc01.joe.com
> Base DN: cn=partitions,CN=Configuration,DC=joe,DC=com
>
> dn:CN=Partitions,CN=Configuration,DC=joe,DC=com
>> msDS-Behavior-Version: 2
>
> dn:CN=CHILD1,CN=Partitions,CN=Configuration,DC=joe,DC=com
>> dnsRoot: child1.joe.com
>> nETBIOSName: CHILD1
>> nTMixedDomain: 0
>> msDS-Behavior-Version: 2
>
> dn:CN=JOE,CN=Partitions,CN=Configuration,DC=joe,DC=com
>> dnsRoot: joe.com
>> nETBIOSName: JOE
>> nTMixedDomain: 0
>> msDS-Behavior-Version: 2
>
>
> 3 Objects returned
>
> [Tue 09/14/2004 18:27:10.12] +
> F:\DEV\ForHP\Perl\ADStory>
>
>
>
> I think I would personally set the filter to be
>
> (systemFlags=3)
>
> which would look like
>
> [Tue 09/14/2004 18:28:30.30] +
> F:\DEV\ForHP\Perl\ADStory>adfind -config -rb cn=partitions -f
> "(systemFlags=3)" msds-behavior-version dnsroot ntmixeddomain
> nETBIOSName
> AdFind V01.20.00cpp Joe Richards (joe@joeware.net) August 2004
>
> Using server: 2k3dc01.joe.com
> Base DN: cn=partitions,CN=Configuration,DC=joe,DC=com
>
> dn:CN=CHILD1,CN=Partitions,CN=Configuration,DC=joe,DC=com
>> dnsRoot: child1.joe.com
>> nETBIOSName: CHILD1
>> nTMixedDomain: 0
>> msDS-Behavior-Version: 2
>
> dn:CN=JOE,CN=Partitions,CN=Configuration,DC=joe,DC=com
>> dnsRoot: joe.com
>> nETBIOSName: JOE
>> nTMixedDomain: 0
>> msDS-Behavior-Version: 2
>
>
> 2 Objects returned
>

That was my first attempt also ... until I realized it caused the forest
functional level to be omitted from the result set ... which may be
useful in this context.

-- 
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e    t h e    m a s k    t o    s e n d    e m a i l 


Relevant Pages