help with windows server logon script

Reply

Join Date: Jul 2003
Posts: 106
Reputation: spikes is an unknown quantity at this point 
Solved Threads: 1
spikes's Avatar
spikes spikes is offline Offline
Junior Poster

help with windows server logon script

 
0
  #1
Sep 16th, 2004
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
"it's not to old to do cool stuff, it's just to old to do it with graphics"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC