Win32::LoginName() [download]
In reply to Re: Windows Logon ID capture by marto in thread Windows Logon ID capture by dtharby