User Login/Logout

  • Thread starter Thread starter Shail
  • Start date Start date
S

Shail

Hi Experts,

I have one query related to system login and logout.

Q. Can it be possible when any user login to the system...the username,
compname & current date & time should get stored in the database. Also
when user logouts then only current time should get stored in the
database?

The above process should happen on Login and logout/shutdown
options which user is going to selects.

Thanks,
Shailesh
 
Shail said:
Hi Experts,

I have one query related to system login and logout.

Q. Can it be possible when any user login to the system...the username,
compname & current date & time should get stored in the database. Also
when user logouts then only current time should get stored in the
database?

The above process should happen on Login and logout/shutdown
options which user is going to selects.

Thanks,
Shailesh

You could launch logon-logoff scripts via Group Policy:
Run GPEDIT.MSC, then open up
- Local Computer Policy
- Computer Configuration
- Windows Settings
- Scripts (Startup / Shutdown)

Your script needs only two lines:
@echo off
echo %date% %time:~0,5% PC=%ComputerName% User=%UserName% >>
\\SomeServer\SomeShare\logon.txt

If you have many PCs (>20) then you will need to modify
the script in order to deal with cases where two users log on
or log off at exactly the same time.
 
Only if you can find an application that writes data in .mdb format.
 

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