You can use Win32::Lanman to query each domain controller in your domain for
the last logon date/time of a given user. I am not sure if you could track
the same for a workstation, though. If you can you would want to treat the
workstation's name as a user name with a dollar sign. For example if your
machine name is foo then query for the user name of FOO$.

-----Original Message-----
From: John Deretich [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 19, 2002 7:22 AM
To: '[EMAIL PROTECTED]'
Subject: workstation logon


Hello,

does anybody no how to find out using perl,
when was the last time a workstation was logged
on to a domain. I am trying to get a figure of
45 to 90 days, since the last login?

thanks,

John
_______________________________________________
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