Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
home drive migration 16 77
Dcdiag failures on some of my domain controllers 12 59
Not a Schema Admin?  Schema Role on Non-AD Controller? 7 46
DHCP server 6 51
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

18 Experts available now in Live!

Get 1:1 Help Now