John,

This is due to a bug in the underlying API that populates this information.  Microsoft 
de-valued the call with Windows XP, but still maintains legacy (aka broken) support 
for it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netwkstasetinfo.asp

NetWkstaSetInfo

The NetWkstaSetInfo function is obsolete. The function configures a workstation with 
information that remains in effect after the system has been reinitialized.

James Krummel

-----Original Message-----
From: John Deretich <[EMAIL PROTECTED]>
To: "Perl-Win32-Admin-Request \(E-mail\)" <[EMAIL PROTECTED]>
Subject: win32::netadmin::loggedonusers
Date: Tue, 11 Mar 2003 17:57:00 -0800

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

Reply via email to