473,473 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

getting windows login details

How do you get the Windows login and password of the person who is
logged in? Is it possible?
*** Sent via Developersdex http://www.developersdex.com ***
Mar 13 '07 #1
8 2414
hi Mike,

Mike P wrote:
How do you get the Windows login and password of the person who is
logged in? Is it possible?
No.

mfG
--stefan <--
Mar 13 '07 #2

"Stefan Hoffmann" <st*************@explido.dewrote in message
news:uC**************@TK2MSFTNGP06.phx.gbl...
hi Mike,

Mike P wrote:
>How do you get the Windows login and password of the person who is
logged in? Is it possible?
No.
Well, yes to username, but not password. The password is collected in a
window on a trusted secure desktop that no other program can access.
>
mfG
--stefan <--

Mar 13 '07 #3
VJ
You can sure get the login name... Environment.Username, password no...

VJ

"Stefan Hoffmann" <st*************@explido.dewrote in message
news:uC**************@TK2MSFTNGP06.phx.gbl...
hi Mike,

Mike P wrote:
>How do you get the Windows login and password of the person who is
logged in? Is it possible?
No.

mfG
--stefan <--

Mar 13 '07 #4
hi VJ,

VJ wrote:
You can sure get the login name... Environment.Username, password no...
And what will be the (Boolean) result of Yes And No?
>>How do you get the Windows login and password of the person who is
logged in? Is it possible?
No.
scnr
--stefan <--
Mar 13 '07 #5
VJ
Sorry Stefan I did not understand your question

Here is what I meant to say,

You can get the Windows Login Name using the statement
string currentUser = Environment.Username;
You cannot get the Windows Login Password, not available to any program.

VJ

"Stefan Hoffmann" <st*************@explido.dewrote in message
news:OI**************@TK2MSFTNGP03.phx.gbl...
hi VJ,

VJ wrote:
>You can sure get the login name... Environment.Username, password no...
And what will be the (Boolean) result of Yes And No?
>>>How do you get the Windows login and password of the person who is
logged in? Is it possible?
No.

scnr
--stefan <--

Mar 13 '07 #6
hi VJ,

VJ wrote:
Sorry Stefan I did not understand your question
The original question:
>>>>How do you get the Windows login and password of the person who is
logged in? Is it possible?
He asks for login _and_ password.

btw, I can only imagine one situation for what you will use such an
information... call me paranoid.
mfG
--stefan <--
Mar 13 '07 #7
VJ
sure... understand.

VJ

"Stefan Hoffmann" <st*************@explido.dewrote in message
news:uD**************@TK2MSFTNGP03.phx.gbl...
hi VJ,

VJ wrote:
>Sorry Stefan I did not understand your question
The original question:
>>>>>How do you get the Windows login and password of the person who is
>logged in? Is it possible?
He asks for login _and_ password.

btw, I can only imagine one situation for what you will use such an
information... call me paranoid.
mfG
--stefan <--

Mar 13 '07 #8
I have managed to do what I was trying to do without the password, with
the following code :

oNS.Logon(strUserName, System.Reflection.Missing.Value, false, true);

Now I need to do something a bit more difficult, I need to create a new
folder called archive programmatically and move the emails in my inbox
to it in a for loop.

Outlook.MailItem oMsg;
int i;

//Loop through each message
for (i = 1; i < oItems.Count + 1; i++)
{
oMsg = (Outlook.MailItem)oItems.Item(i);

//move msg to archive folder
}
*** Sent via Developersdex http://www.developersdex.com ***
Mar 13 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bob | last post by:
hi, I want to redirect my user to another page. With ASP (not .Net) and IIS 5.0, under windows 2000 server. We have installed the component WinHTTP that is used to manipulate http requests. ...
4
by: Dave | last post by:
Hi, Is there anyway to mimic forms authentication's loginUrl and RedirectFromLoginPage functionality using Windows authentication? We are developing intranet sites using basic authentication...
1
by: Thomas Scheiderich | last post by:
I am having a problem connecting to an Sql Server using Windows Authentication. I am using the following command: server=Raptor;uid=tfs;password=tol1ee;database=ABC;Network Library =dbmssocn ...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
0
by: TheDude5B | last post by:
Hi, I have a problem with existing customers from an old site, coming to my new asp.net 2.0 site with the user roles and membership, and trying to login with their old details. As you know,...
1
by: admlangford | last post by:
Hello, we have an ASP.NET website which uses NT authentication to authenticate against an AD server. We then have a set of business objects which are used to store / retrieve information into...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.