login.vbs doesn't always execute
Posted on 2006-03-22
This question relates to a windows 2000 server running AD. I have my OU set up to execute a simple vbs script to map network drives and printers when users sign into our network. we only have about 5 computers in the building. I just set this up a few months back, and I suspect I know where my problem lies...but before I tell you that let me explain what is going on.
We bought a new Dell 1800 poweredge server, and I wanted to move from the .bat login scripts to the more powerful vbs ones. so I made the following script:
on error resume next
WshShell.Run "NET TIME \\HARLEY /SET /YES", 0, TRUE
Set wshNetwork = CreateObject("Wscript.Network")
wshNetwork.MapNetworkDrive "p:", "\\harley\user folders"
wshNetwork.MapNetworkDrive "k:", "\\harley\kci files"
wshNetwork.MapNetworkDrive "s:", "\\harley\software"
wshNetwork.addwindowsprinterconnection "\\harley\Ricoh RPCS"
wshNetwork.setdefaultprinter "\\harley\Ricoh RPCS"
When it runs, it runs perfectly...but occasionally I'll hear complaints that the K and S drives did not map. The P I think is redundant in this script because in the user profiles page I map a user home directory to P as well.
Here is what I suspect is the problem. I bought Mcafee Active Virus scan SMB edition, it is 8.0i with patch 11 installed for those familiar with it. Could this be blocking the vbs script from executing when the computers login? I checked the logs and can't seem to find anything hinting to it, but right around the time this started happening was when we loaded mcafee SMB edition.
I'm just looking to get this resolved as soon as possible. It isn't hampering the ability to perform routine tasks on the network, but it does get annoying when users start to work and then realize they can't save data to the drive in question.