Re: Map network drive for user using VB/ASP.NET



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?


.



Relevant Pages

  • Re: troubleshoot a script
    ... I see you use the memberOf attribute. ... ' map appropriate drives. ... The part of the script that will not work for the 3 ...
    (microsoft.public.scripting.vbscript)
  • Unable to remove remembered drives
    ... The script is completely finished and works perfectly if I ... It turned out that it couldn't map the drive for some ... appears I cant remove these remembered drives, ... Set fso = Createobject ...
    (microsoft.public.scripting.vbscript)
  • Drive Mapping Script Not working
    ... I have a script that maps drives based on a machines name here is a sample ... net use and map the share correctly net use reports the share to already be ...
    (microsoft.public.windows.server.scripting)
  • Re: User Independent Mapped Drive
    ... OU that runs a batch file to map the drives. ... server of where they're from. ... script, ...
    (microsoft.public.windows.server.networking)
  • RE: Local user corruption
    ... Can you use a batch file to map the drives as the domain logon script? ... You can use "net use" to map a network drive. ...
    (microsoft.public.windows.server.migration)