Printer Logon Script Not Setting Correct Default Printer
I have an annoying printer script error,
Here's the script applying to all authenticated users which correctly maps the three printers when the user logs in but always sets the default to Laser-Nul instead of the ICT1 Mono which it should be:
'Name : addprinter.vbs
'Author : Matt Davies
'Date : 22/03/2006
'Description : - Used to add printers for a user
' - Used inconjunction with group policy at Workstation level so it runs per room
' - Needs to be ran under "USER" Logon scripts
On Error Resume Next
'declare the printer names - add as necessary
'set the UNC path to the printers you want mapped - add as necessary
strUNCPrinter1 = "\\pc-bashful\PC-ICT1-MONO"
strUNCPrinter2 = "\\pc-bashful\PC-ICT1-COLOUR"
strUNCPrinter3 = "\\pc-bashful\LASER-NUL"
Set objNetwork = CreateObject("WScript.Network")
'Add the printer to the computer - add as necessary
' Here is where we set the default printer - change if necessary
'End the script
It is very frustrating, anyone got any ideas or know if there is a way to force the correct default through vbs.
Many thanks in advance