Solved

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

Posted on 2006-11-17
3
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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