Find all computers on the current domain with a name that starts with “wks” :
C:\> dsquery computer -name wks* -desc desktop*
Find all computers in the Aberdeen OU:
C:\> dsquery computer ou=Aberdeen,ou=Workstations,dc=ss64,dc=com
Echo all inactive computer accounts (more than 4 weeks inactive):
C:\> dsquery computer -inactive 4
Disable all inactive computer accounts (more than 4 weeks inactive):
C:\> dsquery computer -inactive 4 | dsmod computer -disabled yes
Créditos: http://ss64.com/nt/dsquery-computer.html
Deixe um comentário