|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VBScript (VBS) - Printer Script Not Working
Hey folks, cool forum. I cant write my question beacause I cant stop reading
I need to solve a printing script problem real bad. I didnt set it up and that person is unavailable. Windows Server 2003 domain, the DC is the file server and print server. Instead of installing printers on users XP machines, it is handled by the server with a 'simple' vbs script. Instead of users seeing just the printer(s) right there in their office, they see all the printers in the building. Id like to change that, but thats not the primary problem. Theyre still getting used to it, sometimes they print to printers 3 floors away. They'll get it. The problem is printing gets fouled up. When they see no printers at all, the local print spooling service has stopped. I think it was being caused by a particular printer. Even after restarting it, they have to log off/on again or reboot. This printer was giving errors all around the place, something in the driver. I added a objNetwork.RemoveWindowsPrinterConnection line to the script, uninstallled it from the server, I thought that worked but it still comes up - sometimes. Here is the script: On Error Resume Next Err.Clear Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection "\\server1\ACME-2nd" objNetwork.AddWindowsPrinterConnection "\\server1\ACME-1st" objNetwork.AddWindowsPrinterConnection "\\server1\ACME-Marketing" objNetwork.AddWindowsPrinterConnection "\\server1\StoreroomBlack" objNetwork.AddWindowsPrinterConnection "\\server1\StoreroomColor" objNetwork.AddWindowsPrinterConnection "\\server1\ACME-LJ3500" objNetwork.AddWindowsPrinterConnection "\\server1\ACME-2ndFl-4250" objNetwork.AddWindowsPrinterConnection "\\server1\center6122" Some other symptoms: The LaserJet 3800 was in the storeroom, which was moved to the Opportunity office is still shared as 'storeroom' but it is correct in users printers folder as 'opportunity'. The LJ3500 is really a 3005, it is shared on the server as a 3500 and is in the users printers folder as a 3005. On the Terminal Server, we use ThinPrint. In TS sessions, the printers folder show every "local" printer from every session in the past, 53 of them at the moment. I hope Ive included all the pertinent info. Thanks for taking a look. |
|
#2
|
||||
|
||||
|
Hi whatsys,
Your issue doesn't sound as though it's script related. I don't think the problem is in your script. It sounds to me like you have a domain logon script that populates a list of printers. When of these is temporarily unavailable, or some kind of error occurs, the local print spooler service is disabled. After restarting the service, your users need to log off and then on again because that's what starts the printer script again. There is no way to avoid this since you are using a domain logon script. I'd recommend setting up the domain properly and eliminating a need for the script to begin with. You might even consider sharing the printers on the DC and making them always available. Each workstation could then have a default printer that is closest to them.
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
|
#3
|
||||
|
||||
|
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
If I do not use scripts, what do I do for drive mapping?
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
Quote:
Yes, I know that. But we're talking about 100+ users, with multiple drives, that occasionally change, almost half are Terminal Server users. |
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||
|
|||
|
So Im back to where I started.
Another detail that may be a clue-originally there was an spson R380 in the script. Something in the driver kept loading a printer monitor (ink level etc) to local machines. Turn it off and it reinstalled itself. That printer has been removed from the script and the server. But I suspect that there is a connection between it and the spooling error. Something from that printer is cached somewhere on local machines. |
|
#10
|
||||
|
||||
|
I imagine that the printer and associated drivers are still installed. Disconnecting it will not remove those. Roll out an uninstall for it.
|
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > VBScript (VBS) - Printer Script Not Working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|