http://www.perlmonks.org?node_id=29613


in reply to finding NT username

I'd use the Win32 Module that comes with ActivePerl
$LoginName = Win32::LoginName

And just in case you need to check if the user is on NT
if ( Win32::IsWinNT ) { #Do Stuff }


--=Lolindrath=--