Greg, so that I understand
how it works. My script is passing
one machine name at a time into the function.
Because I'm doing this, the function is looking
somewhere else besides at the machine level?
So to make this work, the script has to be run
at each individual workstation?

thanks,

John

-----Original Message-----
From: Martin, Greg (CSC) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 7:19 PM
To: 'John Deretich '; 'Perl-Win32-Admin-Request (E-mail) '
Subject: RE: win32::netadmin::loggedonusers


 
John, NT does not maintain central database of logon/off events.  Each event
is tracked by the domain controller that handles it but that information is
not pulled together in anyone place.  This may be handled differently by
Win2k.Active Directory.  You'd have to check all domain controllers in order
to find the real status and that will be tainted because the user could have
disconnected their laptop while logged in and have never notified a Dc that
they logged off

I suspect this function was designed for a single workstation/server where
the status of a user is a little better defined that it is from the domain
level.

\\Greg

-----Original Message-----
From: John Deretich
To: Perl-Win32-Admin-Request (E-mail)
Sent: 3/11/03 8:57 PM
Subject: win32::netadmin::loggedonusers

Hi,

I was wonder if anyone was familiar with
win32::netadmin::loggedonusers.

When I run this at night, the function
tells me that the user is still logged on
but he isn't. Can anyone tell me why?

Here's a snippet of my code that
I'm running:

 Win32::NetAdmin::LoggedOnUsers($Machines, \%users);
        if ( my ($user, $info) =  ( sort each %users ) ) {
                  ($u, $domain, $logon_server) = split(/;/, $info);
                    if ($u !~ /\$/i) {
                       write(LOGGEDONUSERS);             
                       }
           }
       else {
 
        }
 
please advise,

John

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



************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.


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

Reply via email to