Discussion Locked

log in script

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,

i have a win 98 client that is connected to a active directory, what i need is a script that can record all the users that logs to the active directory using the win 98 computers.

i tried doing this:
\\\\now.exe %username% -- %computername% >>\\\\logrec.txt

but what happened was that the txt file only records the time stamp, the username and computer does not appear.

please help, thanks

3 replies

by voldar

Hmmm .. first of all, W98 is not creating computer account in the AD tree, in fact it is not part of AD. The only thing u can do is to install the DClient on each user computer so that users with W9x could find objects in an AD environment. As I know (and I am not saying that I know all), to create a GPO policy that applies to W9x computers it's a "dream not yet become true". If anyone knows more I'd be very gratefull to let me know.

by joseph moore

Boy, I don't think that Win98 has the %USERNAME% or %COMPUTERNAME% variables to be able to do this.

Run COMMAND on the Win98 box and type SET to see the variables it supports. Are the ones you need in the list?

You know, it is strange. I do this EXACT same thing you do, using NOW.EXE with the username and computername variables spooling to a file on a server to keep a running log of all user account logins. I like doing it that way instead of auditing Successful Logon Events. I find the logging method to be most useful. Where did you get the idea to do it this way?

This discussion is closed to new replies.