Query the domain for information.
Syntax NETDOM QUERY [/Domain:domain] [/Server:server] [/UserD:user] [/PasswordD:[password | *]] [/Verify] [/RESEt] [/Direct] [/SecurePasswordPrompt] WORKSTATION | SERVER | DC | OU | PDC | FSMO | TRUST Key: /Domain 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. Specifying a * will prompt for the password. /Server Name of a specific domain controller that should be used to perform the query. /Verify For computers, verify that the secure channel between the computer and the domain controller is operating properly. For trusts, verify that the the trust between domains is operating properly. Only outbound trust will be verified. The user must have domain administrator credentials to get correct verification results. /RESEt Reset the secure channel between the computer and the domain controller; valid only for computer enumeration /Direct For a TRUST query: list only the direct trust links and omit the domains indirectly trusted through transitive links. Do not use with /Verify. /SecurePasswordPrompt Use secure credentials popup to specify credentials. This option should be used when smartcard credentials need to be specified. This option is only in 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 you to specify credentials for the trusting domain.
Netdom options can be abbreviated to just the UPPER case letters, e.g. /PasswordD can be supplied as just /PD
“I do not seek, I find” ~ Pablo Picasso
NETDOM ADD - Add a workstation or server account to the domain
NETDOM REMOVE - Remove a workstation or server from the domain.
PowerShell: Get-ADComputer - Get one or more computers from Active Directory.