PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

Audit Logon/Logoff events

 
 
Michael
Guest
Posts: n/a
 
      4th Dec 2003
I don't want to use Win2k Security Log file and to audit logon events I have
included in my logon script the following :

echo %username% %time% %date% %clientname% >>
\\servername\foldershared\logon.log

The problem is that every client have to write in that file and they can
modify it.

How can I resolve this problem ?

And how can I audit the Logoff events ?

Thanks


 
Reply With Quote
 
 
 
 
Vera Noest [MVP]
Guest
Posts: n/a
 
      4th Dec 2003
You can define a logoff script in your Local Policy, which also
runs the echo command.

The problem with write access is more difficult. Obviously, users
need the right to modify the file to be able to record their
logon.

It sounds to me as if you have a management and security problem
here, rather than a technical problem. If you really suspect your
users to erase their login information from this file, despite the
fact that they obviously have the right to start a TS session,
then there is more going on.

The echo command gives a list which is more easily readable than
the Security EventLog, I agree. But you could, let's say once a
month, export the logon and logoff events from the Security
EventLog to a tab-delimited textfile, and then do a quick
comparison with that months logon.log. You could easily automate
part of this proces in a script and with some Excel macros.
That would show you if users really are manipulating the logon.log
file. Would this work for you?

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup ---

"Michael" <(E-Mail Removed)> wrote in
news:O7$$(E-Mail Removed):

> I don't want to use Win2k Security Log file and to audit logon
> events I have included in my logon script the following :
>
> echo %username% %time% %date% %clientname% >>
> \\servername\foldershared\logon.log
>
> The problem is that every client have to write in that file and
> they can modify it.
>
> How can I resolve this problem ?
>
> And how can I audit the Logoff events ?
>
> Thanks

 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      12th Dec 2003
My goal is to have a simple list of user logon-logoff (username.
computername, date and time) because the Security EventLog is not easily
readable; I want to trace all the interactive sessions (logon from local
server, network logon from a pc, from a terminal server client, ...).
Is available a tool that do it ?

"Vera Noest [MVP]" <(E-Mail Removed)> ha scritto nel
messaggio news:Xns9447D090A9139veranoesthemutforsse@207.46.248.16...
> You can define a logoff script in your Local Policy, which also
> runs the echo command.
>
> The problem with write access is more difficult. Obviously, users
> need the right to modify the file to be able to record their
> logon.
>
> It sounds to me as if you have a management and security problem
> here, rather than a technical problem. If you really suspect your
> users to erase their login information from this file, despite the
> fact that they obviously have the right to start a TS session,
> then there is more going on.
>
> The echo command gives a list which is more easily readable than
> the Security EventLog, I agree. But you could, let's say once a
> month, export the logon and logoff events from the Security
> EventLog to a tab-delimited textfile, and then do a quick
> comparison with that months logon.log. You could easily automate
> part of this proces in a script and with some Excel macros.
> That would show you if users really are manipulating the logon.log
> file. Would this work for you?
>
> --
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> http://hem.fyristorg.com/vera/IT
> --- please respond in newsgroup ---
>
> "Michael" <(E-Mail Removed)> wrote in
> news:O7$$(E-Mail Removed):
>
> > I don't want to use Win2k Security Log file and to audit logon
> > events I have included in my logon script the following :
> >
> > echo %username% %time% %date% %clientname% >>
> > \\servername\foldershared\logon.log
> >
> > The problem is that every client have to write in that file and
> > they can modify it.
> >
> > How can I resolve this problem ?
> >
> > And how can I audit the Logoff events ?
> >
> > Thanks



 
Reply With Quote
 
Vera Noest [MVP]
Guest
Posts: n/a
 
      13th Dec 2003
Yes, I understand exactly what you want, and have tried to give
you some alternatives.
Why is the echo-command still not enough for you? It seems to do
all what you want, both on logon and logoff. Have you read my
suggestions about your security problem? Again: would that work
for you?

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup ---

"Michael" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> My goal is to have a simple list of user logon-logoff (username.
> computername, date and time) because the Security EventLog is
> not easily readable; I want to trace all the interactive
> sessions (logon from local server, network logon from a pc, from
> a terminal server client, ...). Is available a tool that do it ?
>
> "Vera Noest [MVP]" <(E-Mail Removed)> ha
> scritto nel messaggio
> news:Xns9447D090A9139veranoesthemutforsse@207.46.248.16...
>> You can define a logoff script in your Local Policy, which also
>> runs the echo command.
>>
>> The problem with write access is more difficult. Obviously,
>> users need the right to modify the file to be able to record
>> their logon.
>>
>> It sounds to me as if you have a management and security
>> problem here, rather than a technical problem. If you really
>> suspect your users to erase their login information from this
>> file, despite the fact that they obviously have the right to
>> start a TS session, then there is more going on.
>>
>> The echo command gives a list which is more easily readable
>> than the Security EventLog, I agree. But you could, let's say
>> once a month, export the logon and logoff events from the
>> Security EventLog to a tab-delimited textfile, and then do a
>> quick comparison with that months logon.log. You could easily
>> automate part of this proces in a script and with some Excel
>> macros. That would show you if users really are manipulating
>> the logon.log file. Would this work for you?
>>
>> --
>> Vera Noest
>> MCSE, CCEA, Microsoft MVP - Terminal Server
>> http://hem.fyristorg.com/vera/IT
>> --- please respond in newsgroup ---
>>
>> "Michael" <(E-Mail Removed)> wrote in
>> news:O7$$(E-Mail Removed):
>>
>> > I don't want to use Win2k Security Log file and to audit
>> > logon events I have included in my logon script the following
>> > :
>> >
>> > echo %username% %time% %date% %clientname% >>
>> > \\servername\foldershared\logon.log
>> >
>> > The problem is that every client have to write in that file
>> > and they can modify it.
>> >
>> > How can I resolve this problem ?
>> >
>> > And how can I audit the Logoff events ?
>> >
>> > Thanks

 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      15th Dec 2003
This solution give me some problems :

- security problem : users can modify the log file and comparing the log
file with the security log file is not easy
- concurrent access problem : there are some problems when two o more users
login at the same time (the file is locked)

I am searching for a automatic tool that give me that information filtering
the security log file without do any manual and complex activities.

Thanks,
Michael


It sounds to me as if you have a management and security
> >> problem here, rather than a technical problem. If you really
> >> suspect your users to erase their login information from this
> >> file, despite the fact that they obviously have the right to
> >> start a TS session, then there is more going on.
> >>
> >> The echo command gives a list which is more easily readable
> >> than the Security EventLog, I agree. But you could, let's say
> >> once a month, export the logon and logoff events from the
> >> Security EventLog to a tab-delimited textfile, and then do a
> >> quick comparison with that months logon.log. You could easily
> >> automate part of this proces in a script and with some Excel
> >> macros. That would show you if users really are manipulating
> >> the logon.log file. Would this work for you?
> >>
> >> --


"Vera Noest [MVP]" <(E-Mail Removed)> ha scritto nel
messaggio news:Xns9450771BD3CCveranoesthemutforsse@207.46.248.16...
> Yes, I understand exactly what you want, and have tried to give
> you some alternatives.
> Why is the echo-command still not enough for you? It seems to do
> all what you want, both on logon and logoff. Have you read my
> suggestions about your security problem? Again: would that work
> for you?
>
> --
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> http://hem.fyristorg.com/vera/IT
> --- please respond in newsgroup ---
>
> "Michael" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
>
> > My goal is to have a simple list of user logon-logoff (username.
> > computername, date and time) because the Security EventLog is
> > not easily readable; I want to trace all the interactive
> > sessions (logon from local server, network logon from a pc, from
> > a terminal server client, ...). Is available a tool that do it ?
> >
> > "Vera Noest [MVP]" <(E-Mail Removed)> ha
> > scritto nel messaggio
> > news:Xns9447D090A9139veranoesthemutforsse@207.46.248.16...
> >> You can define a logoff script in your Local Policy, which also
> >> runs the echo command.
> >>
> >> The problem with write access is more difficult. Obviously,
> >> users need the right to modify the file to be able to record
> >> their logon.
> >>
> >> It sounds to me as if you have a management and security
> >> problem here, rather than a technical problem. If you really
> >> suspect your users to erase their login information from this
> >> file, despite the fact that they obviously have the right to
> >> start a TS session, then there is more going on.
> >>
> >> The echo command gives a list which is more easily readable
> >> than the Security EventLog, I agree. But you could, let's say
> >> once a month, export the logon and logoff events from the
> >> Security EventLog to a tab-delimited textfile, and then do a
> >> quick comparison with that months logon.log. You could easily
> >> automate part of this proces in a script and with some Excel
> >> macros. That would show you if users really are manipulating
> >> the logon.log file. Would this work for you?
> >>
> >> --
> >> Vera Noest
> >> MCSE, CCEA, Microsoft MVP - Terminal Server
> >> http://hem.fyristorg.com/vera/IT
> >> --- please respond in newsgroup ---
> >>
> >> "Michael" <(E-Mail Removed)> wrote in
> >> news:O7$$(E-Mail Removed):
> >>
> >> > I don't want to use Win2k Security Log file and to audit
> >> > logon events I have included in my logon script the following
> >> > :
> >> >
> >> > echo %username% %time% %date% %clientname% >>
> >> > \\servername\foldershared\logon.log
> >> >
> >> > The problem is that every client have to write in that file
> >> > and they can modify it.
> >> >
> >> > How can I resolve this problem ?
> >> >
> >> > And how can I audit the Logoff events ?
> >> >
> >> > Thanks



 
Reply With Quote
 
Vera Noest [MVP]
Guest
Posts: n/a
 
      15th Dec 2003
OK, I see. There are numerous 3th party software packages out
there that do what you want, but most do much more and are costly.
All depends on how much you want to pay and how much manual work
you are willing to do to pay less.

Filtering of the EventLog and exporting the information can be
done for free, with nearly any freeware / shareware EventLog
management utility. The Windows 2000 Resource Kit contains a
number of utilities and scripts to automate this:

Windows 2000 Resource Kits - Tools
http://www.microsoft.com/windows2000.../default.asp#s
ection2

TechNet Script Center - Logs
http://www.microsoft.com/technet/treeview/default.asp
url=/technet/scriptcenter/logs/default.asp

If you want total automation, you probably want to search for one
of the numerous user accounting management software, which tend to
cost a lot.

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup ---

"Michael" <(E-Mail Removed)> wrote in
news:e#(E-Mail Removed):

> This solution give me some problems :
>
> - security problem : users can modify the log file and comparing
> the log file with the security log file is not easy
> - concurrent access problem : there are some problems when two o
> more users login at the same time (the file is locked)
>
> I am searching for a automatic tool that give me that
> information filtering the security log file without do any
> manual and complex activities.
>
> Thanks,
> Michael
>
>
> It sounds to me as if you have a management and security
>> >> problem here, rather than a technical problem. If you really
>> >> suspect your users to erase their login information from
>> >> this file, despite the fact that they obviously have the
>> >> right to start a TS session, then there is more going on.
>> >>
>> >> The echo command gives a list which is more easily readable
>> >> than the Security EventLog, I agree. But you could, let's
>> >> say once a month, export the logon and logoff events from
>> >> the Security EventLog to a tab-delimited textfile, and then
>> >> do a quick comparison with that months logon.log. You could
>> >> easily automate part of this proces in a script and with
>> >> some Excel macros. That would show you if users really are
>> >> manipulating the logon.log file. Would this work for you?
>> >>
>> >> --

>
> "Vera Noest [MVP]" <(E-Mail Removed)> ha
> scritto nel messaggio
> news:Xns9450771BD3CCveranoesthemutforsse@207.46.248.16...
>> Yes, I understand exactly what you want, and have tried to give
>> you some alternatives.
>> Why is the echo-command still not enough for you? It seems to
>> do all what you want, both on logon and logoff. Have you read
>> my suggestions about your security problem? Again: would that
>> work for you?
>>
>> --
>> Vera Noest
>> MCSE, CCEA, Microsoft MVP - Terminal Server
>> http://hem.fyristorg.com/vera/IT
>> --- please respond in newsgroup ---
>>
>> "Michael" <(E-Mail Removed)> wrote in
>> news:(E-Mail Removed):
>>
>> > My goal is to have a simple list of user logon-logoff
>> > (username. computername, date and time) because the Security
>> > EventLog is not easily readable; I want to trace all the
>> > interactive sessions (logon from local server, network logon
>> > from a pc, from a terminal server client, ...). Is available
>> > a tool that do it ?
>> >
>> > "Vera Noest [MVP]" <(E-Mail Removed)> ha
>> > scritto nel messaggio
>> > news:Xns9447D090A9139veranoesthemutforsse@207.46.248.16...
>> >> You can define a logoff script in your Local Policy, which
>> >> also runs the echo command.
>> >>
>> >> The problem with write access is more difficult. Obviously,
>> >> users need the right to modify the file to be able to record
>> >> their logon.
>> >>
>> >> It sounds to me as if you have a management and security
>> >> problem here, rather than a technical problem. If you really
>> >> suspect your users to erase their login information from
>> >> this file, despite the fact that they obviously have the
>> >> right to start a TS session, then there is more going on.
>> >>
>> >> The echo command gives a list which is more easily readable
>> >> than the Security EventLog, I agree. But you could, let's
>> >> say once a month, export the logon and logoff events from
>> >> the Security EventLog to a tab-delimited textfile, and then
>> >> do a quick comparison with that months logon.log. You could
>> >> easily automate part of this proces in a script and with
>> >> some Excel macros. That would show you if users really are
>> >> manipulating the logon.log file. Would this work for you?
>> >>
>> >> --
>> >> Vera Noest
>> >> MCSE, CCEA, Microsoft MVP - Terminal Server
>> >> http://hem.fyristorg.com/vera/IT
>> >> --- please respond in newsgroup ---
>> >>
>> >> "Michael" <(E-Mail Removed)> wrote in
>> >> news:O7$$(E-Mail Removed):
>> >>
>> >> > I don't want to use Win2k Security Log file and to audit
>> >> > logon events I have included in my logon script the
>> >> > following
>> >> > :
>> >> >
>> >> > echo %username% %time% %date% %clientname% >>
>> >> > \\servername\foldershared\logon.log
>> >> >
>> >> > The problem is that every client have to write in that
>> >> > file and they can modify it.
>> >> >
>> >> > How can I resolve this problem ?
>> >> >
>> >> > And how can I audit the Logoff events ?
>> >> >
>> >> > Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SecPol Audit Policy: Diff between "Audit account logon events" and "Audit logon events" ? Sebastian Kaist Windows XP Help 2 13th Mar 2009 03:37 PM
How to find user logon+logoff events in event log (after enabling audit)? Michael Walsh Windows XP Help 2 12th Apr 2008 06:48 PM
How to find user logon+logoff events in event log (after enabling audit)? Michael Walsh Windows XP General 1 12th Apr 2008 06:19 PM
Re: Audit Logon/Logoff events Michael Microsoft Windows 2000 Security 3 15th Dec 2003 10:04 PM
Re: Audit Logon/Logoff events Michael Microsoft Windows 2000 3 15th Dec 2003 10:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 PM.