473,698 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ 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 2427
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.dewro te in message
news:uC******** ******@TK2MSFTN GP06.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.Use rname, password no...

VJ

"Stefan Hoffmann" <st************ *@explido.dewro te in message
news:uC******** ******@TK2MSFTN GP06.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.Use rname, 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.Use rname;
You cannot get the Windows Login Password, not available to any program.

VJ

"Stefan Hoffmann" <st************ *@explido.dewro te in message
news:OI******** ******@TK2MSFTN GP03.phx.gbl...
hi VJ,

VJ wrote:
>You can sure get the login name... Environment.Use rname, 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.dewro te in message
news:uD******** ******@TK2MSFTN GP03.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(strUs erName, System.Reflecti on.Missing.Valu e, false, true);

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

Outlook.MailIte m oMsg;
int i;

//Loop through each message
for (i = 1; i < oItems.Count + 1; i++)
{
oMsg = (Outlook.MailIt em)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
2565
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. We want to automatically identify the user through his Windows login/pwd (NTML) He does not need to type it.
4
4830
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 and we want to always redirect a user to a default 'splash' or welcome page that is set to anonymous if they are not logged in. This page would have
1
1743
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 This works fine if Sql Server is set up as Sql and Windows Authentication. If I change the Sql Server to Windows Authentication, I get the following page:
6
7548
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
4216
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 .NET. I could not debug using breakpoints, breakpoints are not getting hit, but the application is working fine with out any issue.
0
1093
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, the new built in membership encrypts passwords (I know you can use the system without encrypting the passwords, but this what i have unfortunetaly gone with), so I can not simply import the data from the old database into the new one.
1
1590
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 database tables. The business objects retrieve the connection string from the web.config and use Integrated Security to connect to the database e.g our connection string looks like the following
3
6220
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 has to tell then them its wrong information but currently it takes then to a next page and then tells them its incorrect information. This is tedious as every time they enter wrong they will be redirected to a different page and then they have to...
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9018
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8858
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4360
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
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 we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.