Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-11-17
3
Medium Priority
?
178 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 500 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Learn about cloud computing and its benefits for small business owners.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

636 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