• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

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
0
alfardan
Asked:
alfardan
1 Solution
 
Chris MillardCommented:
0
 
BuggyCoderCommented:
Environment.UserName
0
 
Chris MillardCommented:
From what I understand, the Environment.UserName doesn't work on non-domain operating systems
0
 
moon_blue69Commented:
"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?
0
 
alfardanAuthor Commented:
That's the answer that I wanted exactly, thank you
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now