vbs script for mapping network folders
Posted on 2004-11-25
I am managing a network of 250 users and 15 servers. I copied a script in vbs and created a test OU and put the script under the logon icon in group policy. Then i put myself in the container and my computer in the OU. I logoff the server and reboot my computer. Once i logon to my computer i get an error message stating that "an attempt was made to remember a drive that had previously been remembered" . I then go to the OU in question and go into group policy and enable the "no override" link option check box. I did this because there is a logon script at the domain level that maps drives for users throughout the domain. The vbs script that I am having a problem with on the server at the OU level works fine because i double clicked it on my desktop and all the drive mappings are created.
Here is the script:
Set objNet = CreateObject("Wscript.Network")
objNet.MapNetworkDrive "G:", "\\sdc2fp00\labrma00$"
objNet.MapNetworkDrive "H:", "\\sap3p600\ttplus$"
objNet.MapNetworkDrive "I:", "\\sap3p600\cdi$"
objNet.MapNetworkDrive "J:", "\\sdc2fp00\corporate$"
objNet.MapNetworkDrive "K:", "\\sap3p600\monarch$"
objNet.MapNetworkDrive "W:", "\\sap3p600\cinfo$"
My question is by enabling the "no override" option in group policy I am preventing domain logon scripts to run at the specific OU. If this is so then why does this script not work at the OU level?