in reply to finding NT username
$LoginName = Win32::LoginName [download]
if ( Win32::IsWinNT ) { #Do Stuff } [download]