Re: Map network drive for user using VB/ASP.NET
- From: rowe_newsgroups <rowe_email@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 10:19:39 -0700 (PDT)
On Jun 30, 12:21 pm, Brian Nicholson
<BrianNichol...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Brian Nicholson" wrote:
That's exactly what I would like to do, but I don't see how that could be
done with this class (or other methods I've found). If I were to supply an
admin username/password, it would map the drive to that admin user -- I want
to perform this task under an admin account, but the drive should actually be
mapped for another user.
As for doubting the impossibility of doing this without ActiveX, you might
be right -- I think the Microsoft MVP may have misunderstood what I was
trying to do.
Scratch that -- I originally thought that the username and password were for
the destination of the drive mapping, but it makes more sense that the
username and password is to simply supply credentials for mapping the drive
on the local computer. I guess my question then is how do I get this script
to execute on a specified computer other than the web server?
To me, the easiest solutions would be to write a small Window's app
that maps the network drive and then publish that application to your
website. Then, using ClickOnce deployment, all a user would have to do
is click the link, select 'Run', and then the window's app would run
and map the drive. The nice thing is that since it's a Window's app,
you can easily run impersonation and run the "map drive" commands
under an admin account, invisible to the user.
Thanks,
Seth Rowe [MVP]
http://sethrowe.blogspot.com/
.
- References:
- Re: Map network drive for user using VB/ASP.NET
- From: Mr. Arnold
- Re: Map network drive for user using VB/ASP.NET
- From: Mr. Arnold
- Re: Map network drive for user using VB/ASP.NET
- From: Brian Nicholson
- Re: Map network drive for user using VB/ASP.NET
- Prev by Date: Re: Map network drive for user using VB/ASP.NET
- Next by Date: Re: encoding.ascii
- Previous by thread: Re: Map network drive for user using VB/ASP.NET
- Next by thread: Re: Map network drive for user using VB/ASP.NET
- Index(es):
Relevant Pages
|