dsquery -o {dn | rdn} Specifies output format Finding a Computer Account Click Start, and then click Run. In the Open box, type cmd. At the command prompt, type the following command: dsquery computer -name name To find all groups in the current domain whose name starts with "PC" dsquery group domainroot -name PC* "dsquery... Continue Reading →
query computers in Active directory
##Make Sure to the following commands on AD and Run as administrator ##How to query inactive computers in AD And increase the View limit open CMD then dsquery computer -inactive 8 -limit 400"### How to disable the inactive computers OPen CMD then "dsquery computer -inactive 8 -limit 400| dsmod computer -disabled yes" ###If you need to... Continue Reading →