Link to home
Start Free TrialLog in
Avatar of alfardan
alfardanFlag for United Arab Emirates

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
Avatar of Chris Millard
Chris Millard
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER CERTIFIED SOLUTION
Avatar of BuggyCoder
BuggyCoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
From what I understand, the Environment.UserName doesn't work on non-domain operating systems
Avatar of moon_blue69
moon_blue69

"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?
Avatar of alfardan

ASKER

That's the answer that I wanted exactly, thank you