Loading..
  • Lets work together

    Onsite or Remote Support

  • M-F 9:00 am - 5:00 pm

    Call (519) 573-3759

How to install a printer from cmd elevated command

Posted ByTeam Lead

One of the well-known ways of managing printers in different versions of Windows is the host process rundll32.exe, which receives the name of the library printui.dll and the entry point to it (PrintUIEntry). The command rundll32 printui.dll,PrintUIEntry is enough to perform basic operations with printers and is fully supported by Microsoft, but the use of specified vbs scripts is preferable from the administrator point of view.

These scripts are present in all Windows versions (starting from Vista and Windows Server 2008) and are located in the directory C:\Windows\System32\Printing_Admin_Scripts\en-US.

The following VBS scripts are located in this folder:

  • Prncnfg.vbs – a script to display information about the printer settings;
  • Prndrvr.vbs – printer driver management (install / uninstall printer drivers);
  • Prnjobs.vbs – managing print jobs;
  • Prnmngr.vbs – managing printers (including creating and removing printer in the system);
  • Prnport.vbs – managing connection to the remote printer via TCP/IP ports;
  • Prnqctl.vbs – print queue management;
  • Pubprn.vbs – managing printer publishing in Active Directory.

Also you can launch the add printer wizard from command prompt when running as administrator using the following:

  • rundll32 printui.dll,PrintUIEntry /il