Connecting a user to a network share using .NET

1142380 pts.
Tags:
.NET
Network Share Access
My friend is trying to connect to a network share but he doesn't have any rights, name or password. Is there a way to connect him through .NET? He's a network enabled service user too. Thank you.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

To connect via code, he will have to provide a valid username and pw.  Under the covers, .NET will make the same authorization calls to Windows that are made when trying to map a drive via the UI.  In short, if he can’t get to it through the UI, he can’t get to it via .NET.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: