Title: RE: Event log question

I am sure there are many ways to do it, but this is the method I use.

$UserFullName = &UserID2FullName($UserDomain,$UserID);

sub UserID2FullName {
        my ($Domain, $ID) = @_;
        if (Win32::AdminMisc::UserGetAttributes($Server,$ID,$FullName,$Password,$PasswordAge,$Privilege,$HomeDir,$Comment,$Flags,$ScriptPath)) {

                print "\nThe full name is: $FullName";
        } # end of if we can resolve the name
        else {
                $FullName = "Could not resolve";
        } # end of else I don't know who this is
        return $FullName;
} # end of sub UserID2FullName

> -----Original Message-----
> From: Jeffrey Chauncey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 3:16 PM
> To: '[EMAIL PROTECTED]'
> Subject: Event log question
>
>
> Good day...
>
> How do I convert the user returned in the hash to the username?
>
> Thanks in advance for your assistance.
>
> Jeffrey
>
>

Reply via email to