From: LikeToCode on
I have an application that is deployed by Altiris at system startup and
Altiris does not disable the logon like Group Policy does. My application
install is controlled by a vbscript. I would like to display a message (hta
or iexplore window) when someone log on. I have to use Altiris to 'Run' the
starting window silent.
I thought about testing to see if explorer.exe was running but I would have
to check continuously. It would be nice to detect the system logon "message".
I would live to script the gina.dll but I don't know where to begin!!

What would be the best way to detect a windows logon in vbs?

From: Pegasus [MVP] on


"LikeToCode" <LikeToCode(a)discussions.microsoft.com> wrote in message
news:8C03FBDE-DB74-4532-8062-EF611B442229(a)microsoft.com...
> I have an application that is deployed by Altiris at system startup and
> Altiris does not disable the logon like Group Policy does. My application
> install is controlled by a vbscript. I would like to display a message
> (hta
> or iexplore window) when someone log on. I have to use Altiris to 'Run'
> the
> starting window silent.
> I thought about testing to see if explorer.exe was running but I would
> have
> to check continuously. It would be nice to detect the system logon
> "message".
> I would live to script the gina.dll but I don't know where to begin!!
>
> What would be the best way to detect a windows logon in vbs?
>

You could use WMI to detect when userinit.exe or explorer.exe runs - see
here:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/all.mspx

A cleaner method would be to monitor the event logger for a logon event:
http://blogs.technet.com/heyscriptingguy/archive/2005/08/16/how-can-i-monitor-the-event-logs-for-the-occurrence-of-a-specific-event.aspx

From: LikeToCode on
Thanks Pegasus this is what I was looking for! I knew that I was making this
harder than it need to be! :-)