Solved

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

Posted on 2006-11-17
3
174 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

786 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