944,028 Members | Top Members by Rank

Ad:
Sep 16th, 2004
0

help with windows server logon script

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 2
Junior Poster
spikes is offline Offline
106 posts
since Jul 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Windows NT / 2000 / XP Forum Timeline: much slower pc after format
Next Thread in Windows NT / 2000 / XP Forum Timeline: i can't log in hotmail because clicking won't work





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC