Installing network printer for standard user via logon script

Posted on 2010-01-05
Last Modified: 2012-05-08
Im trying to install shared network printers for Windows 7 clients via script. I have tried vb script and rundll32 command. Problem is that these users are standard users without any special permissions and some of printer drivers are not signed. That's why Windows doesnt want to intall these drivers automatically and it's asking permissions (admin's rights) for installing printers. However, I would like to install these unsigned drivers automatically for these users and I dont want to give them adming rights. I dont neather like disable UAC. How I can solve this situation?
Question by:thaapavuori
    LVL 57

    Expert Comment

    by:Mike Kline
    If you post your script some of the vbscript guys may be able to help with it.
    Have you looked into using group policy preferences to deploy printers, good entry with a link to a great article from the GP team
    LVL 1

    Expert Comment


    If you want to install printer driver with ordinary user, the driver type should be Type 3. Type 2 printer driver is not user installable.
    In windows 2008 server environment is the best way to install printer, using Preferences. You find this in Group Policy management editor.


    Author Comment

    My vb script

    Set WshNetwork = CreateObject("WScript.Network")
    WshNetwork.AddWindowsPrinterConnection "\\server\printer"

    Author Comment

    This my driver is type3.

    Driver name: KONICA MINOLTA pagepro 4650 PCL
    Version. Type 3 - User Mode
    Language monitor: pagepro 4650 PCL Language Monitor

    However this driver dont install automatically and if standard user tries to install it it will ask first that do trust this driver and next it will ask admin rights to install it. My ques is that this driver is not signed or something like that.
    LVL 81

    Expert Comment

    Hello thaapavuori,

    Try with Powershell :

    (New-Object -ComObject WScript.Network).AddWindowsPrinterConnection("\\server\printer")

    Open in new window


    Author Comment

    Same behavior. Windows is asking do I trust this driver or not. I think that this will happen no matter how I try to install it. I think that should some tell that this driver is trusted or tell that Windows can install also untrusted printer drivers.

    Author Comment

    LVL 14

    Accepted Solution

    One of the nice features of Server 2008 is the Print Management Feature and being able to deploy network printers without scripts. Have you saw this technet article, I believe it may possibly help out in your scenerio.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
    This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

    733 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

    22 Experts available now in Live!

    Get 1:1 Help Now