Set windows network printer authentication info via scripting?

Posted on 2010-01-06
Last Modified: 2013-06-05
We just got a bunch of new network printers and are trying to find a way to speed deployment to our users workstations.  The printers are Konica/Minolta bizhub series, and they have a feature called account track which keeps track of click counts on a department by department basis.  All of the printers are installed on our central print server, and then shared out to the rest of the network.

I have a VBS script that I can run on clients that will automatically add the new printers, but then I have to manually right click on each printer, go to printing preferences, and put the authentication info into the print driver.  The authentication info is a 4 digit department code, which is completely seperate from their active directory login.

It seems like a solution would need to come from KM, but so far they seem clueless and insist that manually going to every workstation and typing in the account code for every printer is the only way to do it.

I thought about creating a different printer share on the print server for every department that would already have the department code configured, (Printer1-Finance, Printer1-HR, Printer1-Sales, etc) but that would be a nightmare to manage.

Any other thoughts?
Question by:FWeston
    LVL 12

    Accepted Solution

    It is probably a registry setting.  Look under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers and see if the code is stored under the printer.  If it is, you can use a script to create the registry key and value.
    LVL 3

    Author Comment

    Good call, it is indeed in the registry.  Thank you.

    Expert Comment

    Did you get this working? I am having a problem where the passwords are not being saved. Our printers are installed on a print server and mapped to our users with group policy. I do not want to install the printer locally on each workstation to accomplish this.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
    Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now