I am outputting all computer accounts that are inactive in my environment using DSQUERY. dsquery * “ou=domain controllers,dc=mydom,dc=local” -filter “(objectClass=Computer)” -attr name -l -d mydom.local Find DN of Computer Object in Current Domain The DN contains the full directory path of the computer object and can be helpful in locating the computer using the GUI tools in a complex AD structure.