Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
scripts
hosting
jscript
remote
scripting.wsh
scriptlets
vbscript
virus.discussion
  
 
date: Mon, 30 Jun 2008 10:30:00 -0700,    group: microsoft.public.scripting.wsh        back       


Using ASP.NET/WMI to remotely map a network drive   
Hello; I am a summer intern working on an IT admin page for our helpdesk.  
One of the requested features of this page was the ability to map network 
drives by specifying the machine/user, the path to the network share, and the 
drive to map to.  I originally posted this question in ASP.NET/VB forums, but 
I was told to ask in a WMI forum for help to update user profiles to perform 
this.  I could probably generate something that works on the web server 
without a problem, but how could I get these scripts to run on other 
computers?
date: Mon, 30 Jun 2008 10:30:00 -0700   author:   Brian Nicholson

Re: Using ASP.NET/WMI to remotely map a network drive   
"Brian Nicholson"  wrote in 
message news:C90BEDE0-9E99-4299-9BFD-C3F05A29CC6E@microsoft.com...
> Hello; I am a summer intern working on an IT admin page for our helpdesk.
> One of the requested features of this page was the ability to map network
> drives by specifying the machine/user, the path to the network share, and 
> the
> drive to map to.  I originally posted this question in ASP.NET/VB forums, 
> but
> I was told to ask in a WMI forum for help to update user profiles to 
> perform
> this.  I could probably generate something that works on the web server
> without a problem, but how could I get these scripts to run on other
> computers?

ASP is a server-side technology, so all of the scripting is run on the 
server. In order to have a web page that maps a share on the client's 
machine, you would have to emit some client-side script, whether vbscript, 
jscript, or something else. Then you will have to deal with the security 
issues of having a web site modifying the client environment. Even in a 
closed intranet environment, reducing browser security to allow this kind of 
thing without prompting the user is not advised.

/Al
date: Mon, 30 Jun 2008 21:38:12 -0600   author:   Al Dunbar aam

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us