View domain trust in command line

Is there a way to view the domain trust in the command line. My active domain level is 2003 and running windows XP. SP3

You know how you can go to Active dreictory domains and trust and view the trust tab.

I want to know how can i do the same thing in the command line, to view the outgoing and incoming trust.
Who is Participating?
Emmanuel AdebayoConnect With a Mentor Global Windows Infrastructure Engineer - ConsultantCommented:
You can use "netdom trust" command

netdom trustTrustingDomainName/d:TrustedDomainName/verify

For more information on what you can do with netdom,

1.Type "netdom trust | more" at the command prompt without the quote
2. Visit the link

sstretchhAuthor Commented:
every time i try your example, I get an error for parameter is incorrect

if I just want to view the trust on the domain I am on. I can't figure out how to use your example.

One way i found to see my current domain trust is

c:>nltest /domain_trusts

I don't know if there is a way to pick a targert domain I have a trust with to see what their trusts are.
sstretchhConnect With a Mentor Author Commented:
Netdom Query is what i needed. the below example gave me what i was looking for

This example here lets me see the trust of a target domain
>netdom query / trust

This example here shows me the trust of the domain I am currently logged into
>netdom query trust
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
I'm happy that I can assist and that's why we are here, it is not just about the points.
sstretchhAuthor Commented:
and I most really do appreciate the help ! thanks again
sstretchhAuthor Commented:
I gave parital points for leading me in the right direction, but the example didn't work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.