Active directory

When you need an actual list of all the servers in your domain when the name of your servers begin with e.g. NB do as follows:

dsquery computer domainroot -name NB* -desc *

You will get a list of all the computers that begin with NBxxxxx

To be more specific you can dig through and get also windows 2000 machines do as follows:

dsquery computer "ou=NewYork,OU=Finance,DC=example,DC=com" -limit 100000 > d:\servers\servers.csv

When you want to see the fsmo roles who has them you can do this:

dsquery server -hasfsmo pdc

Active directory

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License