Solved

Windows Logged-In User name in Windows Application

Posted on 2012-03-21
5
223 Views
Last Modified: 2012-08-13
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
Comment
Question by:alfardan
5 Comments
 
LVL 17

Expert Comment

by:Chris Millard
ID: 37746614
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37746628
Environment.UserName
0
 
LVL 17

Expert Comment

by:Chris Millard
ID: 37746637
From what I understand, the Environment.UserName doesn't work on non-domain operating systems
0
 
LVL 10

Expert Comment

by:moon_blue69
ID: 37746646
"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
 

Author Closing Comment

by:alfardan
ID: 37746666
That's the answer that I wanted exactly, thank you
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now