How to Log logins

  • Thread starter Thread starter Jason M
  • Start date Start date
J

Jason M

Is it possible to create a log of everytime a person logs in or logs out of
their computer which is running XP Pro? Or is there someway you can setup
the Event Viewer to log or display this info?
 
Jason M said:
Is it possible to create a log of everytime a person logs in or logs out
of their computer which is running XP Pro? Or is there someway you can
setup the Event Viewer to log or display this info?


--

Jason Michel
(e-mail address removed)
(remove ns. for direct email)

Put the following lines into the files
c:\Windows\logon.bat and c:\Windows\logoff.bat:

@echo off
%date% %time%: User %UserName% logged on >> c:\Windows\logs.txt

@echo off
%date% %time%L User %UserName% logged off >> c:\Windows\logs.txt

Now invoke these files by following this path:
Control Panel / Administrative Tools / Group Policy /
User Configuration / Windows Settings / Scripts (Logon/Logoff)
 
Jason,

Not sure of the event viewer way but yes you can do it

Some firewalls log logins
Use the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
registry key could be used to run something

Of course there are many other ways too
 

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

Similar Threads

Can't get a log started 7
login and logout logging 1
Access control 9
XP Pro Login Issue 1
Locking up at Log in Screen 4
Windows restarts immediately after login 3
windows login issues 2
Event Logs 2

Back
Top