Solved

WINDOWS 2000 QUERIES 250 POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Posted on 2006-11-17
3
172 Views
Last Modified: 2010-04-18
Here at work we have a windows 2000 AD infrastructure.   I need to find all users who havent logged in in the past 180 days so I can disable their accounts.  If it was a win 2003 AD then I just run that built in query function and be done with it but its win 2000.  Does anyone know how I can accomplish this or if its even possibel?  Thanks.
0
Comment
Question by:rich872
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Pber earned 125 total points
ID: 18019717
The the lastlogon.vbs script here: http://redmondmag.com/features/article.asp?editorialsid=550

You could also try dsquery from the command line:

dsquery user -inactive 25

Will display users that that have not logged in the last 25 weeks (about 180 days).
0
 
LVL 26

Expert Comment

by:Pber
ID: 18019861
You could also do it in one step:

dsquery user -inactive 25 | dsmod user -disabled yes

You can also limit it to an OU:

dsquery user cn=users,dc=yourdomain,dc=com -inactive 25 | dsmod user -disabled yes


0
 

Author Comment

by:rich872
ID: 18019928
I tried dsquery on the domain controller but it does not recognize the command, I tried from my laptop and I get "windows could not run thise query because you are connected to a domain that does not support this query" Keep in mind this is a win 2000 domain.  I'll try that script next
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now