rich872
asked on
WINDOWS 2000 QUERIES 250 POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
dsquery user -inactive 25 | dsmod user -disabled yes
You can also limit it to an OU:
dsquery user cn=users,dc=yourdomain,dc=