Good Command to Remember

Need to get a list of all the inactive computers in Active Directory?  Type:

dsquery computer -inactive 8 -limit 0

at the command line of your AD server.  where 8 is the number of weeks of inactivity.

  1. Jeremy Hoff says:

    This can be done for users as well:

    dsquery user -inactive 8 -limit 0

  1. There are no trackbacks for this post yet.

Leave a Reply