c:\users\user1>netdom query
The syntax of this command is:
NETDOM QUERY [/domain:domain] [/server:server]
[/userd:user] [/passwordd:[password | *]]
[/verify] [/reset] [/direct] [/securepasswordprompt]
WORKSTATION | SERVER | DC | OU | PDC | FSMO | TRUST
NETDOM QUERY Queries the domain for information
/DOMAIN Specifies the Domain on which to query for the information
/UserD User account used to make the connection with the domain
specified by The/domain argument
/PasswordD Password of the user account specified by/userd. A * means
To prompt for the password
/server Name of a specific domain controller that should is used to
Perform the query.
/verify for computers, verifies the secure channel between the
Computer and the domain controller is operating properly.
For trusts, verifies the the trust between domains are
Operating properly. Only outbound trust would be verified. The
User must has domain administrator credentials to get
Correct verification results.
/reset resets the secure channel between the computer and the domain
Controller Valid for computer enumeration
/direct applies only to a trust query, lists only the Direct trust
Links and omits the domains indirectly trusted through
Transitive links. Do not use with/verify.
/securepasswordprompt
Use secure credentials popup to specify credentials. This
option should is used when smartcard credentials need
Specified. This option was only at effect when the password
Value is supplied as *
WORKSTATION Query The domain for the list of workstations
SERVER Query The domain for the list of servers
DC Query The domain for the list of domain Controllers
OU Query The domain for the list of organizational Units under
which the specified user can create a machine object
PDC Query the domain for the current Primary domain Controller
FSMO Query the domain for the current list of FSMO owners
TRUST Query The domain for the list of its trusts
The Trust verify command checks only direct, outbound, Windows trusts. To
Verify an inbound trust, use the NETDOM Trust command which allows
Specify credentials for the trusting domain.
NETDOM Help Command | More displays help one screens at a time.
The command completed successfully.
c:\users\user1>netdom query FSMO
Schema Master abc-dom01.test.com
Domain naming master Abc-dom01.test.com
PDC abc-dom01.test.com
RID Pool Manager abc-dom01.test.com
Infrastructure Master abc-dom01.test.com
The command completed successfully.
c:\users\user1>netdom query/d:test.com workstation
List of workstations with accounts in the domain:
Abc-app01
Abc-app02
Abc-db01
Abc-app04
Abc-app06
Abc-win7v2 (Workstation or Server)
The command completed successfully.
c:\users\user1>netdom query/d:test.com server
List of servers with accounts in the domain:
Abc-win7v2 (Workstation or Server)
The command completed successfully.
c:\users\user1>netdom query/d:test.com Trust
Direction trusted\trusting domain Trust type
========= ======================= ==========
The command completed successfully.
Netdom Query Basic usage