On 25 Aug 2006 11:46:51 -0700, "Matt Hickman" wrote in
microsoft.public.win2000.cmdprompt.admin:
>I have a generated list of computernames and I want to determine, from
>the command line, if those individual computers are members of the
>domain or not. Is there a way to do this?
>
>"netdom query /domain:<domainname> workstation" will give me a list of
>workstations, but that gives me more than I want and takes an enormous
>amount of time to complete.
netdom also seems incredibly slow. Have you tried:
dsquery computer -name workstation
It will return the distinguished name if workstation exists, and nothing
if it doesn't.
To get a list of computer accounts, much faster than netdom:
dsquery computer
and to display only the account (computer) name:
dsquery computer -o rdn
or
dsquery computer -o samid
Details at
<http://technet2.microsoft.com/WindowsServer/en/library/46ba1426-43fd-4985-b429-cd53d3046f011033.mspx?mfr=true>.
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"