Solved

Windows Logged-In User name in Windows Application

Posted on 2012-03-21
5
232 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

Suggested Solutions

Title # Comments Views Activity
How we can add Dten600.dll in GAC in c#. 18 54
PowerShell:  Use of subproperties in a Select statement 7 68
Data Analysis 7 59
Open telerik datetime picker programmatically 13 42
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 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