473,696 Members | 1,955 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 2426
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
4829
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
9145
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9010
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
8853
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...
0
7703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
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
4356
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
4611
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2319
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1992
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.