Re: Map network drive for user using VB/ASP.NET
- From: "Patrice" <http://www.chez.com/scribe/>
- Date: Mon, 30 Jun 2008 18:37:05 +0200
You would have to send a client side script inside your web page. This
script would use the WScript.Network object to map the drive. You'll need
also to alter security settings - possibly done by your admin at an
entreprise level - to be able to do that (for example adding your intranet
site to the trusted sites).
Not sure why you need to do that but my personal preference would be to have
the admin team creating a mapping strategy and have the network drives
mapped automatically using the logon script (possibly depending about the
group in which the user is). Try for example
http://www.bluestream.org/Windows/LoginScripting.htm
As said earlier you may want to elaborate about your final goal...
--
Patrice
"Brian Nicholson" <BrianNicholson@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de groupe de discussion :
5F0F2AA9-0E78-46D2-8DFD-C4F8DDD3E9EE@xxxxxxxxxxxxxxxx
"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?
.
- 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: Re: Problems with programmatically added control - can't get properties, can't even reference control!
- 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
|