Discussion Locked

Deleting computer Accounts

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to delete some old computer accounts under NT 4.0. How do I know a particular account has not been used in a while. I have a few hundred accounts to go through and not all computers a logged on all the time, so I don't want to inadvertently delete an active account.

11 replies

by cliff680

What you should do is go through them and deactivate them for a couple of weeks first. If there aren't any issues, delete them.

by bentgellerich

What will happen to the user when they try to log on using a computer that has been temporarly deactivated?

I don't want to inconvenience anyone.

by cliff680

It won't let them in, it would say account deactivated or something along those lines.

by dynamo2003

NT Resource Kit has few utilities that gives use statistics regarding logons and last logon. For, example usrstat.exe but try disabling the account for a period of time rather deleting in one go.

by rsp

NTUSER.EXE from pedestalsoftware.com can give you information on computer accounts. Here's a command-line that will dump all expired accounts using that utility (make sure you write it all on one line):

for /f %i in ('ntuser show MYDOMAIN\*$') do@(ntuser show MYDOMAIN\%i | find "PASSWORD_EXPIRED"|find /i "True" >nul) && echo %i

by rsp

Easier command-line:

ntuser -s MYPDC show MYDOMAIN\*$ -where "password_expired==1"

This discussion is closed to new replies.