Asking for Password to connect to printer

Bradtechonline

Senior member
Jul 20, 2006
480
0
0
After installing some security updates on all my servers I am getting some quirks. All of a sudden my printer batch files that I have on my terminal servers are asking the users to enter a password to connect to each printer. Of course people are lazy as ****** so they just click cancel, and call me bitching about not being able to print. I want everyone to be able to just connect without having to issue credentials.

Is it possible to issue login credentials through a print batch file. Here is the one I have below.

Echo **** INSTALLING PRINTERS - PLEASE WAIT ****
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\hscopier
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\hslj1200
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\hsmath3
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\hsmath2
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\hsmath1
rundll32.exe printui.dll,PrintUIEntry /in /c\\%computername /n\\aps-dhcp\liblj4300
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\aps-dhcp\LIBLJ4300
 

DrGreen2007

Senior member
Jan 30, 2007
748
0
76
Are the printers on the network with the server and computers (domain) or are these machines/printers all in a workgroup?

Once added to the server for the user, Id think they would stay unless the user deletes the printer, no?

What password do they have to enter in?

I would put a .VBS file in the users startup folder, or the all users startup folder, to map the printers,

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\hscopier"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\hslj1200"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\hsmath3 "
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\hsmath2"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\hsmath1"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrinterServer\liblj4300"