Performing tasks on user login/logout
- From: TemporalBeing <gpclock@xxxxxxxxx>
- Date: Fri, 15 Jun 2007 20:13:42 -0000
I want to perform some tasks on users login and logout. What is the
best way to do this?
I've looked at trying to put my "script" in the registry, and know how
to do this for login (Run entries), but can't figure out how to do it
for logout. So I've been thinking of writing a program to monitor for
login/logout and run the tasks that way instead.
I looked at the Task Scheduler, but it can only generate events on
login, not logout.
I looked at WMI, but I seem to only find login/logout info in the MSFT
class, and it's noted as being defined but not implemented.
I could write a GINA module, but that seems like overkill, and then I
have to figure out how to be a pass thru for the GINA so that the
system is as unmodified as possible. I really only want to monitor for
login/logout and run something on behalf of the user.
I looked at the Shell, and various event notification methods but
nothing seems to do this tasks.
I also did a google search and came across the following:
http://www.codeproject.com/system/winlogon_notification_package.asp?df=100&forumid=1802&exp=0&select=1732221
It uses the WinLogon Notification Package, and seems to do something
like what I want. My question is - (a) is it really what I want? (b)
is this the proper method for doing so?
I know how to do the rest of the program set once I figure that out,
and really just want some kind of notification from Windows on when a
user logs in and out, and which user it is that is doing so.
On Unix/Linux this is easy as the various shells (bash, etc.) have
config files that are specifically used during login (e.g. bashrc/
bash_profile) and logout (e.g. bash_logout). What is the proper way to
do this in Window?
Thanks,
Ben
.
- Prev by Date: RE: how can i change access permission in vista c/c++ code please
- Next by Date: Re: Problem in deploying Credential Provider in Vista Ultimate 64.
- Previous by thread: RE: how can i change access permission in vista c/c++ code please
- Next by thread: Re: Custom Authentication Package sample code ?
- Index(es):
Relevant Pages
|