PC Review


Reply
Thread Tools Rate Thread

Drive mapping on logon script problem

 
 
Angel Martires
Guest
Posts: n/a
 
      19th Nov 2003
In the network logon script, there some SHARES that are
mapped to a drive letter like the one below:
-----------------------------------------------------------
----------
MapDrive "H:","\\FS1\TAXAPPS"
MapDrive "I:","\\FS1\APPS"
MapDrive "J:","\\FS1\DATA"

Function MapDrive(Drive, Share)
If FileSysObj.DriveExists(share)=True Then
If FileSysObj.DriveExists(Drive)=True Then
WSHNetwork.RemoveNetworkDrive Drive
End If

WSHNetwork.MapNetworkDrive Drive, Share
End If
End Function
-----------------------------------------------------------
---------


The workstation logging on to network are Windows 2000.
This works just fine.

The server FS1 was recently replaced with a server FS3.
So, I modified the logon script to reflect the change as
shown below.

MapDrive "H:","\\FS3\TAXAPPS"
MapDrive "I:","\\FS3\APPS"
MapDrive "J:","\\FS3\DATA"

Now, when the workstations logon, after the script is read
the drives are still mapped to the FS1 server. In order
for the workstatioin to see the new mapping, I have go to
the workstatation and right-click on the "network
neighborhood" and select "Disconnect network drive", then
restart or relogon to reread the logon script.

I don't want to go to each workstation and do this
(there's 300 of them). I'm looking for a way to solve
this problem using script. It seem to me that the
WSHNetwork.RemoveNetworkDrive Drive line above should
already taken care of this, but it's not. There is an
optional parameter for the RemoveNetworkDrive
bUpdateProfile. I wonder it this can help. I just don't
know how to use it.

Is there anyone who can help me with this?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon script for different user/same mapping =?Utf-8?B?RGVyZWs=?= Microsoft Windows 2000 Active Directory 1 22nd Nov 2004 01:17 PM
Automatically Mapping A Drive Using A Logon Script - Win XP Home =?Utf-8?B?Q2FybG9zIE1hbGRvbmFkbw==?= Windows XP Security 1 14th Apr 2004 11:40 PM
Logon script not mapping drives Steele Microsoft Windows 2000 Group Policy 1 13th Feb 2004 11:39 PM
Drive Mapping Logon Script Jim Microsoft Windows 2000 CMD Promt 2 5th Nov 2003 06:59 PM
DRIVE MAPPING LOGON PROBLEM Gary Davidson Windows XP Networking 1 10th Sep 2003 01:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.