Jay Thomas
asked on
Find a server in AD with only part of its name
Hi all,
can't remember the query to run in order to find all servers using only part of the name. We know it has "hyp" in the name but not the rest. Does anyone know?
Thanks
can't remember the query to run in order to find all servers using only part of the name. We know it has "hyp" in the name but not the rest. Does anyone know?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try below on DC
dsquery computer -o rdn -limit 0 > C:\Computerlist.txt
ASKER
Hi lahesh. Where in the command are we specifying part of the name? Won't your command display all names in AD?
-o rdn will export the all computers netbios name in active directory
The command has to be run on domain controller from elevated command prompt
The command has to be run on domain controller from elevated command prompt
ASKER