PC Review


Reply
Thread Tools Rate Thread

How to log users log-on-off time

 
 
Miha
Guest
Posts: n/a
 
      11th Mar 2008
Hi

Is it possible in Win2003 domain environment to get infromations when users
log-on and log-off into their computers?
My boss wants that when a user log-on and log-off into his computers, he
automatically gets an e-mail with the following data:
- user that has logged on/off
- the time of log-on/off
Can this be arranged via GPO or do we need custom VBS script? If so, does
anyone have it allready?
Thank you all in advance.
Regards,
Miha

 
Reply With Quote
 
 
 
 
sammy
Guest
Posts: n/a
 
      11th Mar 2008
On Mar 11, 8:24 am, "Miha" <miha.ber...@email.si> wrote:
> Hi
>
> Is it possible in Win2003 domain environment to get infromations when users
> log-on and log-off into their computers?
> My boss wants that when a user log-on and log-off into his computers, he
> automatically gets an e-mail with the following data:
> - user that has logged on/off
> - the time of log-on/off
> Can this be arranged via GPO or do we need custom VBS script? If so, does
> anyone have it allready?
> Thank you all in advance.
> Regards,
> Miha


Sounds like you'll wanna tweak the login and logout scripts.
For the info itself, look at some of system tools as www.systinternals.com
such as psloggedon
 
Reply With Quote
 
 
 
 
Corey Thomas - MCSE/MCSA/MCDBA
Guest
Posts: n/a
 
      11th Mar 2008
You can write two scripts to send emails. One for log on and one for log
off. Then you can add these to a GPO and apply it to your users.

Here is some sample code on using CDO to email within a script:

http://www.microsoft.com/technet/scr....mspx?mfr=true


-Corey



"Miha" wrote:

> Hi
>
> Is it possible in Win2003 domain environment to get infromations when users
> log-on and log-off into their computers?
> My boss wants that when a user log-on and log-off into his computers, he
> automatically gets an e-mail with the following data:
> - user that has logged on/off
> - the time of log-on/off
> Can this be arranged via GPO or do we need custom VBS script? If so, does
> anyone have it allready?
> Thank you all in advance.
> Regards,
> Miha
>

 
Reply With Quote
 
Miha
Guest
Posts: n/a
 
      11th Mar 2008
Great, thank you all for help!
Regards,Miha
"Corey Thomas - MCSE/MCSA/MCDBA"
<(E-Mail Removed)> wrote in message
news:CC2352D6-9728-468E-B365-(E-Mail Removed)...
> You can write two scripts to send emails. One for log on and one for log
> off. Then you can add these to a GPO and apply it to your users.
>
> Here is some sample code on using CDO to email within a script:
>
> http://www.microsoft.com/technet/scr....mspx?mfr=true
>
>
> -Corey
>
>
>
> "Miha" wrote:
>
>> Hi
>>
>> Is it possible in Win2003 domain environment to get infromations when
>> users
>> log-on and log-off into their computers?
>> My boss wants that when a user log-on and log-off into his computers, he
>> automatically gets an e-mail with the following data:
>> - user that has logged on/off
>> - the time of log-on/off
>> Can this be arranged via GPO or do we need custom VBS script? If so, does
>> anyone have it allready?
>> Thank you all in advance.
>> Regards,
>> Miha
>>


 
Reply With Quote
 
Albert Kikkert
Guest
Posts: n/a
 
      11th Mar 2008
Maybe it would be better when you configure your logon and logoff script to
add a line with the desired data (username, time of logon/logoff,
domain,action, ect ect) to a file on a server share and name the file after
the computer.

For instance you create a (hidden?)share and let every script report to a
file in that share.

You'd have something like this:

\\MyServer\PClogs$\%computername%.txt

Your boss will have a complete listing of all used computers, the frequency
of use and which user logs on to that computer.
This is a much easier way of checking and archiving this kind of data.

Just my 2 cents. :-)

Albert.




"Miha" <(E-Mail Removed)> wrote in message
news:ACFD3783-48C7-4958-99FD-(E-Mail Removed)...
> Hi
>
> Is it possible in Win2003 domain environment to get infromations when
> users log-on and log-off into their computers?
> My boss wants that when a user log-on and log-off into his computers, he
> automatically gets an e-mail with the following data:
> - user that has logged on/off
> - the time of log-on/off
> Can this be arranged via GPO or do we need custom VBS script? If so, does
> anyone have it allready?
> Thank you all in advance.
> Regards,
> Miha



 
Reply With Quote
 
Corey Thomas - MCSE/MCSA/MCDBA
Guest
Posts: n/a
 
      11th Mar 2008
That's what we do. We log the user name, date, time, and computer name back
to a file on a server share. Each file is named by the user's login. Each
time the script runs, it opens the file and appends the info so we can keep a
running record.

I'm trying to get upper management to invest in a SQL server so we can save
the info there for better SOX compliance and more robust features.


-Corey


"Albert Kikkert" wrote:

> Maybe it would be better when you configure your logon and logoff script to
> add a line with the desired data (username, time of logon/logoff,
> domain,action, ect ect) to a file on a server share and name the file after
> the computer.
>
> For instance you create a (hidden?)share and let every script report to a
> file in that share.
>
> You'd have something like this:
>
> \\MyServer\PClogs$\%computername%.txt
>
> Your boss will have a complete listing of all used computers, the frequency
> of use and which user logs on to that computer.
> This is a much easier way of checking and archiving this kind of data.
>
> Just my 2 cents. :-)
>
> Albert.
>
>
>
>
> "Miha" <(E-Mail Removed)> wrote in message
> news:ACFD3783-48C7-4958-99FD-(E-Mail Removed)...
> > Hi
> >
> > Is it possible in Win2003 domain environment to get infromations when
> > users log-on and log-off into their computers?
> > My boss wants that when a user log-on and log-off into his computers, he
> > automatically gets an e-mail with the following data:
> > - user that has logged on/off
> > - the time of log-on/off
> > Can this be arranged via GPO or do we need custom VBS script? If so, does
> > anyone have it allready?
> > Thank you all in advance.
> > Regards,
> > Miha

>
>
>

 
Reply With Quote
 
Paul Weterings
Guest
Posts: n/a
 
      12th Mar 2008
Corey Thomas - MCSE/MCSA/MCDBA wrote:
> That's what we do. We log the user name, date, time, and computer name back
> to a file on a server share. Each file is named by the user's login. Each
> time the script runs, it opens the file and appends the info so we can keep a
> running record.
>
> I'm trying to get upper management to invest in a SQL server so we can save
> the info there for better SOX compliance and more robust features.
>
>
> -Corey
>
>
> "Albert Kikkert" wrote:
>
>> Maybe it would be better when you configure your logon and logoff script to
>> add a line with the desired data (username, time of logon/logoff,
>> domain,action, ect ect) to a file on a server share and name the file after
>> the computer.
>>
>> For instance you create a (hidden?)share and let every script report to a
>> file in that share.
>>
>> You'd have something like this:
>>
>> \\MyServer\PClogs$\%computername%.txt
>>
>> Your boss will have a complete listing of all used computers, the frequency
>> of use and which user logs on to that computer.
>> This is a much easier way of checking and archiving this kind of data.
>>
>> Just my 2 cents. :-)
>>
>> Albert.
>>
>>
>>
>>
>> "Miha" <(E-Mail Removed)> wrote in message
>> news:ACFD3783-48C7-4958-99FD-(E-Mail Removed)...
>>> Hi
>>>
>>> Is it possible in Win2003 domain environment to get infromations when
>>> users log-on and log-off into their computers?
>>> My boss wants that when a user log-on and log-off into his computers, he
>>> automatically gets an e-mail with the following data:
>>> - user that has logged on/off
>>> - the time of log-on/off
>>> Can this be arranged via GPO or do we need custom VBS script? If so, does
>>> anyone have it allready?
>>> Thank you all in advance.
>>> Regards,
>>> Miha

>>
>>


What's wrong with Auditing the logons on the domain controller? Simply
define the domain GPO to audit user logon. It won't be sending any mail
though.
 
Reply With Quote
 
Albert Kikkert
Guest
Posts: n/a
 
      13th Mar 2008

"Paul Weterings" <(E-Mail Removed)> wrote in message
news:47d71040$0$13879$(E-Mail Removed)...
>
> What's wrong with Auditing the logons on the domain controller? Simply
> define the domain GPO to audit user logon. It won't be sending any mail
> though.


1) the boss doesn't get email
2) the boss needs administrative priviliges
3) the security log will have no history unless you make it very very big.
4) there is a lot of overkill in the information. The boss most probably
doesn't know jack from reading sec. logs.



 
Reply With Quote
 
AndrewOfAzotus
Guest
Posts: n/a
 
      14th Apr 2008
I'm new here, but I put together a couple of scripts just recently to add a
record to an access database when a user logged on and then add the logoff
time to that same record when they logoff again but they could, just as
easily, put the info into a spreadsheet for statistical analysis, perhaps a
better idea than emails or a basic text file.
 
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
Does Windows XP Pro. log the time and date users log onto the OS? =?Utf-8?B?Um9iZXJ0MjU=?= Windows XP Security 1 24th Oct 2007 11:43 AM
how do i get a log log plot without taking log =?Utf-8?B?c3Jp?= Microsoft Excel Charting 2 29th Sep 2005 04:25 AM
Need help with a log off/log on problem...can log off then log on dif. user and system will be slow loading user settings, then play start up music, then show wallpaper, then freeze. Ralph Malph Windows XP General 2 9th Feb 2005 07:05 AM
Unable to access "Change the way users log on and log off" =?Utf-8?B?bWlscG9vbA==?= Windows XP Performance 4 31st Jan 2005 10:41 PM
Users get secruity log full error message when trying to log on =?Utf-8?B?Qm9va2VyVw==?= Windows XP Help 1 13th Jan 2005 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.