Is it possible to use the DSQuery command to pull back the number of computers in a particular folder? Or if I give it the start of how we name our computers, could it pull back how many start with a particular prefix? (Ours start SiteName-RoomNumber-ComputerNumber, if I give it SiteName-RoomNumber could it come back and tell me there are 10 machines that start with a particular prefix?)

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment



yes using dsquery computer -name

Searches for computers whose name attributes (value of CN attribute) matches <Name>. For example, "jon*" or "*ith" or "j*th".

Answered 12/05/2013 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity