Link to home
Start Free TrialLog in
Avatar of Jay Thomas
Jay ThomasFlag for United Kingdom of Great Britain and Northern Ireland

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
ASKER CERTIFIED SOLUTION
Avatar of Miguel Angel Perez Muñoz
Miguel Angel Perez Muñoz
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jay Thomas

ASKER

I'll try thanks .  @ Miguel , I'm not sure what you mean or how I apply what you are saying?
Try below on DC

dsquery computer -o rdn -limit 0 > C:\Computerlist.txt

Open in new window

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