spikes 0 Junior Poster

Hi,
i have recently created a logon script for a department where i work, weird thing is it wont run. the script is sitting in netlogon on the AD controler with all of the other scripts.

before this script each person had there own script named after the user id, all i have done is take one of these working scripts add a few drives and printers and renamed it researchdept.vbs. then under AD listed it as the logon script for eact person of that department.

below is the script.

----------------------------------------------------------

Set Network = WScript.CreateObject("WScript.Network")
set fso = CreateObject ("Scripting.FileSystemObject")

' ignore all errors
on error resume next

WshNetwork.MapNetworkDrive "k:", "\\Baldrick\Research"
WshNetwork.MapNetworkDrive "G:", "\\Baldrick\global"
WshNetwork.MapNetworkDrive "P:", "\\Baldrick\Postbox"
WshNetwork.MapNetworkDrive "S:", "\\PERCY\Software"
WshNetwork.MapNetworkDrive "R:", "\\CRMServer\Rezolve"
WshNetwork.MapNetworkDrive "I:", "\\Baldrick\Image Bank"
WshNetwork.MapNetworkDrive "Q:", "\\Baldrick\RnD"
WshNetwork.MapNetworkDrive "E:", "\\Baldrick\Snap 7"


wshnetwork.addwindowsprinterconnection "\\Edmund\Brother"
wshnetwork.addwindowsprinterconnection "\\Edmund\LandingCopier"
wshnetwork.addwindowsprinterconnection "\\Edmund\Largecop"
wshnetwork.addwindowsprinterconnection "\\Edmund\HPResearch"
Network.SetDefaultPrinter "\\Edmund\HPResearch"

WScript.Echo "All drives and printers now set, have a nice day."

-----------------------------------------------------------------

can anyone give me some idea why this is not running?

cheers

spikes