You can use NETDOM.EXE to do the trust and NLTEST to do the Windows 2000
trust and site views, we like to use batch files when possible to gather
information quickly.  Then we use a command line utility to send email to
our inboxes.  I am not sure if it fits into the inprocess method you were
looking to envoke though.  Just an idea.

Toddler

-----Original Message-----
From: Robbie Allen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 8:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] find out with VBS: domain trusts


Hi Jens,

Here is a script that uses the WMI Trust Provider to find all trusts for a
given domain (it requires Win Server 2003):
http://www.rallenhome.com/books/adcookbook/source/02/2.21-view_trusts_WMI.vb
s.txt

Here is another example that queries AD directly to get trusts (this will
work with either W2K or Win Server 2003):
http://www.rallenhome.com/books/adcookbook/source/02/2.20-view_trusts.vbs.tx
t

Let me know if you have any questions.

Robbie Allen

> -----Original Message-----
> From: Schwipper, Jens [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 1:39 AM
> To: [EMAIL PROTECTED]
> Subject: [ActiveDir] find out with VBS: domain trusts
> 
> 
> Hi active directories,
> 
> i will find out trust relationships in my tree
> or better: i will display all trust relationships with vbs
> 
> i need all explizit trusts to nt4-domains vbs
> i need all transitive trusts of win2000-domains vbs
> 
> i heard there is a posibility of trust beetween organisations with 
> windows 2003, how can i find out them with vbs
> 
> which role plays the global catalog
> 
> Jens
> List info   : http://www.activedir.org/mail_list.htm
> List FAQ    : http://www.activedir.org/list_faq.htm
> List archive:
> http://www.mail-archive.com/activedir%> 40mail.activedir.org/
> 
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to