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?
|