Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Re: Last Logon and Logoff for a specific user

Reply
 
Old 07-29-2008   #1 (permalink)
Richard Mueller [MVP]


 
 

Re: Last Logon and Logoff for a specific user


"cmoore01" <cmoore01@xxxxxx> wrote in message
news:A0E18C03-3BAA-4B47-9547-9957659C5F35@xxxxxx
Quote:

> 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
> attributes
> of LastLogon and LastLogff and write them to a file, or if a logon and
> logoff
> batch file that wrote to a file would work best. Biggest issue is that I
> do
> 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.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Problem with WMI User Logoff VB Script
Detailed Status Messages - Logon, Logoff, and Shutdown Tutorials
logon and logoff need Vista account administration
need to have a web based time sheet appear at logon and logoff Vista security
Logoff a local user PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46