Troubleshooting Code 80070709 – The Printer name is invalidIntroduction to Error Code 80070709This error code, 80070709 usually occurs when you try to map a printer. There maybe a mistake in the WSH object, for example the wrong printer name. The Symptoms You GetThe script does not execute as you hoped, instead you get a WSH error message. The probable scenario is that you are trying to create a Windows logon script. The Cause of Code 80070709This is an easy error code to track down. The Printer name in your script does not exist. Check your spelling. See Error: The printer name is invalid. Look for clues particularly the Line: number (14) Char 1: often lies! it just means that the whole line will not execute. SolutionsCheck in the script for the name you have used for the Printer. Does the printer in the script exist? To check open a CMD shell and type net view. Either create a printer with the name in the script, or better, modify your script to reflect the real name of the printer. ‡ Example 1 of ScriptTo be frank, the examples aren’t particularly useful because the error is specific to the name of your server or printer share. Incidentally, after all these years I am still suspicious of share names with spaces.
‘ PrintersClient – Windows Logon Script. Set objNetwork = CreateObject("WScript.Network") WScript.Quit ‘ End of Guy’s Windows printer script.  
Example 2 of ScriptNote Line 4: The error – \\lucy4\dottey. What this means is that lucy4 is the correct server, but the printer dottey does not exist.
‘ VBScript. Guy Recommends: WMI Monitor and It’s Free!Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems. Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free. Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server. Download your free copy of WMI Monitor Do you need additional help?
Give something back? Would you like to help others? If you have a good example of this error, then please email me, I will publish it with a credit to you:
Download my Logon Script eBook for only $6.25 The extra features you get in your eBook include, more pages full of detailed examples. Also, ten ‘how to…’ sections, with screen shots showing which menus to use. Go for Guy’s eBook – and get a printable version with copy enabled and no expiry date. If you like this page then please share it with your friends
|