Discussion Locked
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I run a query of some sort that allows me to find users that have not logged into the domain for at least 30 days? I would like to lock or delete the account(s) after 30 days of inactivity.
1 reply
by shanghai sam
Without other software you can built your own tool:
1. Use ?dumpel.exe? from Resource kit to export NT Events to a text file. Make a batch file like this:
C:\program files\rksupport\dumpel.exe -f securityevents.txt -s \\ComputerName -l security -t-d 30
2. After you run this batch file you will obtain the securityevents.txt file.
3. Now you can import this file in Excel or Access and apply filters or queries.
Also you can automate this job with task scheduler and you must change the Event Log Settings: Maximum Log Size and Overwrite Events
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending
0 helpful
10 replies
Question Locked
Do You Save Useful Windows Tutorial Videos for Later
0 helpful
7 replies
0 helpful
1 reply
Question Unanswered
Is WSL still relevant in 2026?
0 helpful
0 replies
0 helpful
2 replies