To find all users in only the current domain, who have been inactive for 3 weeks or more, and display their DNs:
dsquery user domainroot -name -inactive 3
To find all users in only the current domain, who have been inactive for 3 weeks or more, and display their DNs:
dsquery user domainroot -name -inactive 3