alfardan
asked on
Windows Logged-In User name in Windows Application
Hi
I have a Windows-Application written in vb.net, how do I get the windows-authenticated logged-in user id?
I'm using vs2010
I have a Windows-Application written in vb.net, how do I get the windows-authenticated logged-in user id?
I'm using vs2010
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
From what I understand, the Environment.UserName doesn't work on non-domain operating systems
"whoami" will return the currently logged in user -> this is from a command line. Will it help you to find a way to write your script?
ASKER
That's the answer that I wanted exactly, thank you
http://www.developerfusion.com/code/4409/get-current-username-in-vbnet/