Hello All,
The below small pice of code when excutred gives me the o/p for the current
loggen in user as
"username: CN=userid,OU=Users,OU=xyz,OU=abcd,DC=in,DC=abcdef,DC=com" .
I need this info for another user .. Not the current loggen in user. How do I
do it.
Thanks in Advance for the help
use Win32::OLE;
my $sysinfo = Win32::OLE->new('ADSystemInfo') || die ("Can't get sysinfo:
".Win32::OLE->LastError()."\n");
my $username = $sysinfo->{username};
print "username: $username\n";
Thanks and Regards
Maxmelbin Neson
-----------------------------------------------------------------------------------------------------------------
Robert Bosch Engineering and Business Solutions Limited
Engineering Services - Methods and Tools (RBEI/EMT4)
123 Industrial Layout - Hosur Road - Bangalore 560 095 - INDIA
Telephone: +91 80 6657-4743 Fax: +91 80 6657-1404
[email protected]
www.bosch.com
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs