Try module Win32API::Net
UserGetInfo(server, user, level, hash)
Here is all user information you can get from Windows
Level 3
name, password, passwordAge, priv, homeDir, comment, flags, scriptPath, authFlags, fullName, usrComment, parms, workstations, lastLogon, lastLogoff, acctExpires, maxStorage, unitsPerWeek, logonHours, badPwCount, numLogons, logonServer, countryCode, codePage, userId, primaryGroupId, profile, homeDirDrive, passwordExpired | [reply] [d/l] |
You might also want to take a look at Perl for System Administration in regards to your question-as I recall, it contained some information about managing user account information and directory services, so there is a chance it might prove helpful as well. | [reply] |
I'm surprised no one mentioned Win32::NetAdmin. There's a function called UserGetAttributes that will return everything that's in the Win32API::Net call. Also, just as a note, Windows will not return a password for a user (or at least I've never got it to return it for me). It's just a place holder for the underlying C/C++ call. Hope that helps some.
Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;" | [reply] [d/l] |
On the resource kit:
Usrstat.exe Displays user name, full name, and last logon date and time
for each user account across all domain controllers.
| [reply] |