"cmoore01" <cmoore01@xxxxxx> wrote in message
> Need a "best way" to log or monitor a user's last logon and logoff times.
> Not sure if a scheduled job that runs every night to retrieve the
> of LastLogon and LastLogff and write them to a file, or if a logon and
> batch file that wrote to a file would work best. Biggest issue is that I
> not control the domain controllers and cannot load PS on them. My file
> server does have PS loaded and I am currently using PS for some other
> scheduled jobs.
> If scheduled job, example of scripts to run appreciated. If lonon/logoff
> batch files, examples also. Very new to scripting, but learning.
> Any and all help Much Appreciated
Example VBScript programs to retrieve last logon for all users linked here: http://www.rlmueller.net/Last%20Logon.htm
The lastLogoff attribute in AD is not used. If you prefer to use logon and
logoff scripts, I have a VBScript example here: http://www.rlmueller.net/Logon5.htm
You can code a similar logoff script.
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net