Logging login logout
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Logging login logout

 
Post new topic   Reply to topic    Windows Server Forum Index -> General Discussion
Author Message
d-man
Guest





Posted: Thu Nov 10, 2005 1:51 am    Post subject: Logging login logout Reply with quote

I just installed windows 2003 and runs AD. How do I log to a log file when
user log on to the domain and log off from the domain? This seems like really
easy task, but I don't know where to add this. I run a logon scrip on every
login and try to add a text file to save it to file. didnot work

echo %username% logon time $time>>login.log

how do I do this?

Thank you in advance

d-man
Back to top
Josiah Smith
Guest





Posted: Fri Nov 11, 2005 9:50 pm    Post subject: RE: Logging login logout Reply with quote

Write a C++ program (free Borland C++ command line compiler
"http://www.borland.com/bcppbuilder/freecompiler/" with VIDE free IDE
"http://www.objectcentral.com/vide" and
"http://www.objectcentral.com/vide/help/videdoc/bcc32.html") that queries
username and appends to a log file on the server, then have a group policy to
run that at login for all users.

Scripting may be easier, but I'm not familiar with it at all.

~Josiah

"d-man" wrote:

Quote:
I just installed windows 2003 and runs AD. How do I log to a log file when
user log on to the domain and log off from the domain? This seems like really
easy task, but I don't know where to add this. I run a logon scrip on every
login and try to add a text file to save it to file. didnot work

echo %username% logon time $time>>login.log

how do I do this?

Thank you in advance

d-man
Back to top
d-man
Guest





Posted: Sat Nov 12, 2005 1:50 am    Post subject: RE: Logging login logout Reply with quote

thanks for your help. can you please help me bit more..

i want run this on every user that login to AD from workstations. so where
would I run this program?

"Josiah Smith" wrote:

Quote:
Write a C++ program (free Borland C++ command line compiler
"http://www.borland.com/bcppbuilder/freecompiler/" with VIDE free IDE
"http://www.objectcentral.com/vide" and
"http://www.objectcentral.com/vide/help/videdoc/bcc32.html") that queries
username and appends to a log file on the server, then have a group policy to
run that at login for all users.

Scripting may be easier, but I'm not familiar with it at all.

~Josiah

"d-man" wrote:

I just installed windows 2003 and runs AD. How do I log to a log file when
user log on to the domain and log off from the domain? This seems like really
easy task, but I don't know where to add this. I run a logon scrip on every
login and try to add a text file to save it to file. didnot work

echo %username% logon time $time>>login.log

how do I do this?

Thank you in advance

d-man
Back to top
Todd J Heron
Guest





Posted: Sat Nov 12, 2005 5:50 pm    Post subject: Re: Logging login logout Reply with quote

"d-man" <dman@discussions.microsoft.com> wrote...
Quote:
thanks for your help. can you please help me bit more..

i want run this on every user that login to AD from workstations. so where
would I run this program?

Put the program into the All Users\Startup Group ---> C:\Documents and
Settings\All Users\Start Menu\Programs\Startup\

--
Todd J Heron, MCSE
Windows Server 2003/2000/NT; CCA
----------------------------------------------------------------------------
This posting is provided "as is" with no warranties and confers no rights
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB