in reply to Win32:Getting the Full Name from User Manager
I'm sure you can clean up the error messages a bit (something with getlasterror? can't quite remember the syntax for that though). But this should do the trick as is..use strict; use Win32; use Win32::Lanman; my %info; my $server="pdc"; my $user="username"; if (Win32::Lanman::NetUserGetInfo($server, $user, \%info)){ print "$info{name} is $info{full_name}"; } else {print Win32::Lanman::GetLastError()}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Win32:Getting the Full Name from User Manager
by OzzyOsbourne (Chaplain) on Nov 09, 2000 at 21:29 UTC | |
by the_slycer (Chaplain) on Nov 09, 2000 at 22:01 UTC | |
by tye (Sage) on Nov 09, 2000 at 22:42 UTC |