?
Solved

Windows Logged-In User name in Windows Application

Posted on 2012-03-21
5
Medium Priority
?
235 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 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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