Solved

Windows Logged-In User name in Windows Application

Posted on 2012-03-21
5
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

696 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