DSQUERY COMPUTER – start querying AD for computer objects
“OU=expert,DC=serc,DC=col” – start search in this OU
-name * – get specified computer name, in case you are using * (asterisk) then it means, any name
-scope subtree – search also in all subOUs, not only oin specified one
-limit 0 – by default DSQUERY will return the firs 100 found objects, you can overwrite it using any other value or 0. 0 means return all of them
> d:\ComputersinOU.TXT – this says, redirect all output to text file on D-Drive instead of displaying their names on a screen