| Author |
Message |
d-man
Guest
|
Posted:
Thu Nov 10, 2005 1:51 am Post subject:
Logging login logout |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
"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 |
|
 |
|
|
|
|