11/9/2023 0 Comments Linux command for mac address![]() ![]() ![]() C:\Tools>dsquery computer -limit 0 ou=depts,ou=12,dc=34,dc=56,dc=78,dc= 90 >c:\tools\computers_all.l og The results show way too much information and I want to filter out everything except the hostname. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |