The good(?) news is that you can find out what screen saver the user has set via the 
remote HKEY_USERS registry hive.  If you user Win32::TieRegistry, it should be in 
"\\$compname\\HKEY_USERS\\$userguid\\Control Panel\\Desktop\\"  with a value of 
SCRNSAVE.EXE and a datum of the path to the screen saver.  ($compname is the netbios 
name without leading backslashes.  $userguid is the GUID of the user currently logged 
in.)

Also, have you considered using Win32::PerfLib for retrieving remote process lists?  
It's definitely faster, and retrieves only what you need.

HTH :)


-----Original Message-----
From: Thomson Steven R Contr AFRL/VSIO [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 5:25 PM
To: Patrick J. LoPresti; [EMAIL PROTECTED]
Subject: RE: Idle Users


One of the e-mails that I received as a reply suggested checking for the
time a screen saver has been active.  This will work for me because, we
mandate a screen saver activate after 10 minutes through a GPO.  I use one
of the pslist from winternals to capture the running processes.  If the
windows screen saver is used, it shows up as logon.scr.  If people are using
Webshots or Demotivator type screen savers then it shows up with
something.SC.  So I use a regex to capture the elapsed time.  I am always
seeking an easier way to do things.  I then have to determine the next half
of the equation, and that is how do I want to logoff the user.  Hope this
helps.  Like you, I could not find it in WMI, yet. 


Steven Thomson
Unisys
AFRL E-Mail and Lan Support
505-853-3148
[EMAIL PROTECTED] 
-----Original Message-----
From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 1:24 PM
To: Tim Johnson
Cc: Thomson Steven R Contr AFRL/VSIO;
[EMAIL PROTECTED]
Subject: Re: Idle Users

I looked for a while and could not find it.  So it is not a simple question.

This is one of those rare occasions where I would be glad to be proven wrong
:-).

 - Pat

"Tim Johnson" <[EMAIL PROTECTED]> writes:

> I think that if you poke around in WMI for a while you will find the 
> idle timer...
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to