Re: Map network drive for user using VB/ASP.NET
- From: rowe_newsgroups <rowe_email@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 12:51:36 -0700 (PDT)
On Jun 30, 3:11 pm, Brian Nicholson
<BrianNichol...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Patrice" wrote:
And the user would just choose from predefined mapping in this page ? Don't
you have a logon script in place ? IMO it would be much better to do that
from a logon script (using kixtart, you can test in which group the user is
to map the appropriate drives). If not already done I would recommend also
having always the same letter mapped to the same location.
Your logon script (example taken from the
http://www.bluestream.org/Windows/LoginScripting.htmlink I posted ealier)
could look like :
IF INGROUP("Accounting")
USE T: "\\SERVER1\TAXSOFT"
ENDIF
etc...
IMO you should direct your admins to an admin group so that they can see how
it is usually done using a login script. It may require a bit of work to put
that in place especially if all users have used random letters for a given
location accross your company, but then it will basically done
automatically once the rules are defined making this much easier to handle
for both admins and users.
For example when you put a new location or if you migrate content from one
server to another your admins will have just to update the logon script and
this is done for all users concerned with these changes the next time they
log. You won't have to tell each targeted user to go to a web page to hand
select the new mapping(s). Etc...
--
Patrice
Well not the users themselves mapping the drives -- the IT department would
still do that. I'm basically making an IT admin page where the most commonly
used administrative functions are grouped together so they don't have to
branch out all over the place to perform various tasks.
It sounds like it will have to be done from a logon script, like you said;
I'm still hoping to use ASP.NET if possible as a means to populate the
script, then perhaps use WMI to make the changes.
I'd say the best you can hope for is to create an ASP.NET page that
takes information from the user and then generates the script that
needs to be ran from a login script. Simplest way would be to just
output the script into a textbox on the page so that the user could
tweak the script manually if need be.
Also, if the login script that is to be ran has any logic behind it
(say every morning the script to run is pulled from a network file
path) then your ASP.NET page could modify that file so that the next
time the new file is copied over for users to run it would contain
your updated version. I don't really know if this would work, like I
said I'm not a net admin so I'm not sure if this option is even
viable.
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
- From: Patrice
- Re: Map network drive for user using VB/ASP.NET
- From: Brian Nicholson
- Re: Map network drive for user using VB/ASP.NET
- From: Patrice
- Re: Map network drive for user using VB/ASP.NET
- Prev by Date: Re: encoding.ascii
- Next by Date: Re: Re: What's the VB9 equivalent for this code
- 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
|