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



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/
.



Relevant Pages

  • Re: Map network drive for user using VB/ASP.NET
    ... and map the drive. ... The nice thing is that since it's a Window's app, ... under an admin account, invisible to the user. ... that's how the network admin at my old job mapped user drives. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XP & W2K server User rights need help
    ... before did not install the apps as admin. ... >behaved app. ... >> server non of the users had accounts only the computers ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Administrator Logon to 1 DC only
    ... Okay, no, I am past the limiting admin privileges.... ... Over the weekend I am going to create another DC on VMware Server and then ... app on the DC i.e. making them members of the Builtin administrators group. ... leaving 3rd party app on its own or vice versa. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)
  • Re: BYPASS privilege !!
    ... demarkation between OS Admins and App Admins, ... less simple to stop a Sys Admin from messing with the App (again, ... under/over/around/through the same security. ... Equally obvious, to a user with BYPASS privilege, it matters not how ...
    (comp.os.vms)