hidden hit counter
Welcome to WindowsForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Drive Mapping Script

 
   Windows XP (Home) -> Security Admin RSS
Next:  Whoam...  
Author Message
RAY75

External


Since: Aug 19, 2004
Posts: 17



(Msg. 1) Posted: Mon Dec 13, 2004 8:17 am
Post subject: Drive Mapping Script
Archived from groups: microsoft>public>windowsxp>security_admin (more info?)

Hey Wizards,

I have a VB script that maps network drives. I wanted the script to auth. a
user to AD as well. Can someone help?

Dim objNet
on error resume next
Set objNet = CreateObject("Wscript.Network")
on error resume next
objNet.MapNetworkDrive "l:", "\\server\userfolder"
on error resume next
objNet.MapNetworkDrive "m:", "\\server2\app\userfolder"
WSCript.Quit

 >> Stay informed about: Drive Mapping Script 
Back to top
Login to vote
Torgeir Bakken 1

External


Since: Mar 22, 2004
Posts: 748



(Msg. 2) Posted: Mon Dec 13, 2004 2:35 pm
Post subject: Re: Drive Mapping Script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ray wrote:

 > Hey Wizards,
 >
 > I have a VB script that maps network drives. I wanted the script to auth. a
 > user to AD as well. Can someone help?
 >
 > Dim objNet
 > on error resume next
 > Set objNet = CreateObject("Wscript.Network")
 > on error resume next
 > objNet.MapNetworkDrive "l:", "\\server\userfolder"
 > on error resume next
 > objNet.MapNetworkDrive "m:", "\\server2\app\userfolder"
 > WSCript.Quit
Hi

The MapNetworkDrive method supports adding username and password
as parameters.

WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
<a rel="nofollow" style='text-decoration: none;' href="http://msdn.microsoft.com/downloads/list/webdev.asp" target="_blank">http://msdn.microsoft.com/downloads/list/webdev.asp</a>



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/technet/scriptcenter/default.mspx" target="_blank">http://www.microsoft.com/technet/scriptcenter/default.mspx</a>

 >> Stay informed about: Drive Mapping Script 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Mapping Drive All User Question - Is it possible to map a drive for all users on a local policy or a AD policy? I cannot find it in Group Policy with mmc. Thank you.

Change s/n script - can any one tell me exactly what text i need to put in to note pad to create a script what changes the s/n of windows xp every time you logon thanks Matthew Lynch 8)

802.1x Client Script - 802.1x is in use at our company. I am trying to do an automated, unattended build. There are some network locations I need to get to, in order to fully automate this bui.d 802.1x is preventing me from getting where I need to go. I have the..

Script run on log off/standby/resume - Hi, Is it possible to have Windows run a script when the computer enters Standby mode, is woken up from Standby mode, or the user is switched? Thanks, steev

internet script error - I have a problem with internet script error window popping up stating all different lines etc its fairly new problem is it a virus or a program error? please help -- Colt Free
   Windows XP (Home) -> Security Admin All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Win 2000/NT/98/ME
 Windows Vista!


[ Contact us | Terms of Service/Privacy Policy ]