| | |
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
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 64bit 2007 2010 a.exe activedirectory address alaris android application appstore automatically black blue bsod bulletin canonical chinese chkdsk codeplex combofix cursor deployment deployments desktop domain drive eartlink error explorer fax fonts format framework freeze gadgets hardware home internet interoperability laptop laptops latitude lcd linux login mac markshuttleworth memory microsoft minimalizes mobile monitor motionle1600 netbooks open opensource operatingsystems options oracle osinstallationproblem outlook palm partition printer program proxy raid rds reformat remotedesktop replacingraiddrive retail retrieve screen security server. sharepoint simplifiedchinese sitetositevpn slowperformance sp3 spyware studios technology ubuntu update upgrade videodrivers virtual virus vpn window windows windows7 windowsxp xp xpde





