| | |
help with windows server logon script
![]() |
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
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"
![]() |
Similar Threads
- PHP Mail function not working in Windows Server (PHP)
- How to unblock the firewall in windows server 2003 (Windows Servers and IIS)
- News Story: Will Windows Server 2008 fully embrace Linux? (Linux Servers and Apache)
- Windows Server 2003 / Exchange E-mail Address Problem (Windows Servers and IIS)
- Windows 2003 logon (Windows NT / 2000 / XP)
- Logon Script - Default, forced, compulsory,etc.etc. (Windows NT / 2000 / XP)
- Logon script errors (Windows NT / 2000 / XP)
- Question about monitoring or logging in Windows 2k server (Windows NT / 2000 / XP)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: much slower pc after format
- Next Thread: i can't log in hotmail because clicking won't work
Views: 11092 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Windows NT / 2000 / XP
.net 2010 a.exe address appstore audio auto black blue bluescreen book boot bulletin cellphones collaboration computer computerfreezes crash cursor deployment deployments desktop dns dotnetnuke drive dual eartlink error errors explorer features folder fontmanagers framework gadgets hardware intel interoperability killprocess laptop laptops latitude lcd linux load login mac markshuttleworth memory microsoft minimalizes monitor motionle1600 netbooks novell operatingsystems oracle osx outlook palm partition port printer product proxy remotedesktop replacingraiddrive retail rootkit screen security sharepoint simplifiedchinese sitetositevpn sp3 spyware technology ubuntu uninstall unreadable update usb verizon videodrivers videogames virus vista visual wab webos weecam win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp





