Add Network Printer from CMD printui.dll

Posted on 2009-02-18
Last Modified: 2013-12-15
I have a network printer shared under \\myserver\myprinter$

I want to add this printer to a local computer using printui.dll

I am using:

rundll32 printui.dll,PrintUIEntry /ga /n\\myserver\myprinter$

All the path are correct: I can get printer properties using

rundll32 printui.dll,PrintUIEntry /p /n\\myserver\myprinter$

But when I try /ga nothing happens.
Question by:spd21
    LVL 6

    Accepted Solution

    I believe that you should use the /in parameter instead of /ga (if you want to add a normal network printer connection
    like this
    rundll32 printui.dll,PrintUIEntry /in /n\\myserver\myprinter
    / Mikael

    Author Comment

    You believe correctly

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
    Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now