Printer.VBS Scripting Error Message (80070709)

Posted on 2007-08-06
Last Modified: 2013-11-21
I just Implemented a new Terminal Server into my environment on Friday and now 5 out of 30 users are getting this scripting error message. If I have the users log back onto the old terminal server this error message is not present. I have removed the printer reference on the last line listed below of the printer script.vbs but I still continue to get this error message. I have also discovered that this printer is installed to my terminal server although it does not exist anymore and I didnt install the drive for it. I checked the 5 USERS in question to see if this was a profile issue but there profiles conform to out SOP. Can someone shed some light on how to proceed?

Error Message:

Script:         \\ist\SysVol\IST\scripts\Printers.vbs
Line:      6
Char:      1
Error:      The printer name is incalid.
Code      80070709
Source:      (null)

Printer Script:

' Printers.vbs - Windows Logon Script.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\appsrv\BizHub 500 PS"
objNetwork.AddWindowsPrinterConnection "\\appsrv\BizHub 350 PS"
objNetwork.AddWindowsPrinterConnection "\\appsrv\BizHub 350 PCL"
objNetwork.AddWindowsPrinterConnection "\\appsrv\7085 PS"

objNetwork.AddWindowsPrinterConnection "\\appsrv\KM 161"      (this printer does not exist anymore - KONICA MINOLTA 161f PCL6)
Question by:Jtoy68
    LVL 31

    Expert Comment

    check the user registry if the printer is still listed there
    LVL 31

    Expert Comment

    addon: line 6 in this script is this line or?
    objNetwork.AddWindowsPrinterConnection "\\appsrv\BizHub 350 PCL"
    LVL 65

    Accepted Solution

    Hi, for this you pretty much just need to make sure that the share name is exactly correct for that printer.
    This states that as well:

    If the printer does not exist anymore, you need to take it out of the script.  Maybe you also need to remove the driver from your Terminal Server, and let the script install it when it connects to the printer.



    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
    Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now