The following should do what you need:

#!perl

use Win32::Perms;
$username=Win32::Perms::ResolveAccount('S-1-5-21-3725260815-71594873-113
1426265-1002');
print "User: $username\n";

Scott Campbell
Senior Software Developer
Somix Technologies
(207) 324-8805
http://www.somix.com




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Robert-Jan Mora
Sent: Friday, December 27, 2002 2:44 AM
To: Dave Roth; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Win32::AdminMisc module or Win32::Perms


Hello all,

Is it possible to resolve SID's from textfiles to usernames? I'm trying
to parse SID's from the MessageText part of the Eventlog. It isn't
working right now so any help is appreciated.

Thankz in Advance.

_______________________________________________
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