Click here to Skip to main content
15,792,510 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am new in VB. We have a situation in which PC is on Domain but there is local account created on PC through which any user can login. I need user to click a button on a form and user need to put their credentials (user name and password) and than their Home Drive Folder created on Active Directory for all users with letter K will open.
So there will be two forms. On first form a button to open mapped drive. 2nd form with User Name and Password text boxes and Domain Name will be supplied in the code. If user name password is correct than K drive folder will open that contains this user files.

Any help will be much appreciated from codeproject beautiful community.

What I have tried:

I have no clue how to start it.
Updated 18-Dec-20 20:52pm
Maciej Los 31-Dec-20 5:18am    
Why do force doors wide open? You can achieve the same via explorer...

In case, you want to do that programmatically, see this: c# - Validate a username and password against Active Directory? - Stack Overflow[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900