account audit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I'm looking for a utility tool to audit accouts usage in the domain.
With this tool, i can find all the accounts' status in the domain. I can
find how long those accouts were not used (log on), which accouts were
active/inactive, all the accouts' expiration day, the last log on, etc.
Can you give me some advice?
R.L.
 
R L said:
Dear all,

I'm looking for a utility tool to audit accouts usage in the domain.
With this tool, i can find all the accounts' status in the domain. I can
find how long those accouts were not used (log on), which accouts were
active/inactive, all the accouts' expiration day, the last log on, etc.
Can you give me some advice?
R.L.

You could run this batch file. It is written for account names that do
***not*** have embedded spaces.

@echo off
cd /d "%temp%"
net user | more +4 | find /i /v "successfully" >users.1

if exist users.2 del users.2

if exist accounts.1 del accounts.1
for /F "tokens=1" %%n in (users.1) do echo %%n>>users.2
for /F "tokens=2" %%n in (users.1) do echo %%n>>users.2
for /F "tokens=3" %%n in (users.1) do echo %%n>>users.2

type users.2 | sort > users.txt
for /F %%a in (users.txt) do net use %%a >> accounts.1
type accounts.1 | findstr /i "user name account password last member"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top