How To: Find Unused User Accounts

| | No TrackBacks
In many domain-controlled environments, especially in large companies, "dormant" (unused" user accounts may start to appear. Such accounts' activity should be well-monitored, but first they should be found out.

The simplest way is to use the standard 'dsquery' command-line utility to filter out users by a given criteria. For example, the command

dsquery computer -inactive NumberOfWeeks

where NumberOfWeeks is an integer value. The above example will list all the users that haven't logged in for the specified time interval.

Note that the above assumes you're using Windows Server 2003-level environment. If yours still has Windows 2000 computers in it, or is running in mixed-mode functional level, try this command instead:

dsquery computer -stalepwd NumberOfDays

No TrackBacks

TrackBack URL: /blog/mt-tb.cgi/67

blog comments powered by Disqus

About this Entry

This page contains a single entry by Konstantin Boyandin published on January 18, 2010 2:35 PM.

Hidden Partition May Make Setup Fail was the previous entry in this blog.

How To: User Remote Desktop Client From Command Line is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.