Recently installed Server 2003 on the server and have many Win98 clients
attached. Installed DS Client on 98 PC's. Wrote a script logon.bat that
calls logon.vbs. See both below (1 line in the vbs file is remarked out on
purpose but will be used in the future. The remove network drive entries
are to remove any manual mappings that may exist so that we don't have to
physically go to all 65 machines to undo the manual mappings).
The problem is that when users are logging on the network, they get "cannot
find script file z:\logon.vbs." Some users can log off immediately, log
back on and it runs fine. Some have to logoff/logon or restart 3 or 4 times
before it runs right. At first, this problem occurred infrequently, now it
seems to happen almost every time users logon. Can anyone provide some
insight to this? We will be purchasing new PC's over the remaining year but
would like to resolve this issue for the sake of the users. Thank you,
Diane
logon.bat:
@echo off
wscript %0\..\logon.vbs
logon.vbs:
On Error Resume Next
Dim objNetwork, strUserName
Set objNetwork = CreateObject("WScript.Network")
Set strUserName = objNet.UserName
objNetwork.RemoveNetworkDrive "e:","True","True"
objNetwork.RemoveNetworkDrive "f:","True","True"
objNetwork.RemoveNetworkDrive "g:","True","True"
objNetwork.RemoveNetworkDrive "k:","True","True"
objNetwork.MapNetworkDrive "f:" , "\\ds-main\ddisk"
objNetwork.MapNetworkDrive "g:" , "\\ds-main\Public"
'objNetwork.MapNetworkDrive "h:" , "\\ds-main\users\" & strUserName
objNetwork.MapNetworkDrive "k:" , "\\dserver\mdata"
WSCript.Quit
|