CmdID

CmdID / Commands / rundll32

rundll32 printui

Automates many printer configuration tasks. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Automates many printer configuration tasks. printui.dll is the executable file that contains the functions used by the printer configuration dialog boxes. These functions can also be called from within a script or a command-line batch file, or they can be run interactively from the command prompt.

rundll32 printui.dll PrintUIEntry [baseparameter] [modificationparameter1] [modificationparameter2] [modificationparameterN]
rundll32 printui.dll,PrintUIEntry [baseparameter] [modificationparameter1] [modificationparameter2] [ModificationParameterN]
rundll32 printui PrintUIEntry [baseparameter] [modificationparameter1] [modificationparameter2] [modificationparameterN]
rundll32 printui,PrintUIEntry [baseparameter] [modificationparameter1] [modificationparameter2] [modificationparameterN]

To add a new remote printer, printer1, for a computer, Client1, which is visible for the user account where this command is run, type

rundll32 printui.dll PrintUIEntry /in /n\\client1\printer1Identify

To add a printer using the add printer wizard and using an .inf file, InfFile.inf, located on drive c: at Infpath, type

rundll32 printui.dll PrintUIEntry /ii /f c:\Infpath\InfFile.infIdentify

To delete an existing printer, printer1, on a computer, Client1, type

rundll32 printui.dll PrintUIEntry /dn /n\\client1\printer1Identify

To add a per computer printer connection, printer2, for all users of a computer, Client2, type (the connection will be applied when a user logs on)

rundll32 printui.dll PrintUIEntry /ga /n\\client2\printer2Identify

To delete a per computer printer connection, printer2, for all users of a computer, Client2, type (the connection will be deleted when a user logs on)

rundll32 printui.dll PrintUIEntry /gd /n\\client2\printer2Identify

To view the properties of the print server, printServer1, type

rundll32 printui.dll PrintUIEntry /s /t1 /c\\printserver1Identify

To view the properties of a printer, printer3, type

rundll32 printui.dll PrintUIEntry /p /n\\printer3Identify
Show 45 options
/dlDeletes the local printer.
/dnDeletes a network printer connection.
/ddDeletes a printer driver.
/eDisplays the printing preferences for a given printer.
/gaadds a per computer printer connection (the connection is available to any user on that computer when they log on).
/geDisplays per computer printer connections on a computer.
/gdDeletes a per computer printer connection (the connection is deleted the next time a user logs on).
/iaInstalls a printer driver by using an .inf file.
/idInstalls a printer driver by using the add printer Driver Wizard.
/ifInstalls a printer by using an .inf file.
/iiInstalls a printer by using the add printer wizard with an .inf file.
/ilInstalls a printer by using the add printer wizard.
/inConnects to a remote network printer.
/ipInstalls a printer by using the Network printer Installation Wizard (available from the user interface from print Management).
/kprints a test page on a printer.
/oDisplays the queue for a printer.
/pDisplays the properties of a printer. When you use this parameter, you must also specify a value for the modification parameter /n[name].
/sDisplays the properties of a print server. If you want to view the local print server, you do not need to use a modification parameter. However, if you want to view a remote print server, you must specify the /c[name] modification parameter.
/SsSpecifies what type of information for a printer will be stored. If none of the values for /Ss are specified, the default behavior is as if all of them were specified. Use this base parameter with the following values placed at the end of the command line: - 2: Stores the information contained in the printer s printER_INFO_2 structure. This structure contains the basic information about the printer such as its name, server name, port name, and share name. - 7: Used to store the directory service information contained in the printER_INFO_7 structure. - c: Stores the color profile information for a printer. - d: Stores printer specific data such as the printer s hardware ID. - s: Stores the printer s security descriptor. - g: Stores the information in the printer s global DEVmode structure. - m: Stores the minimal settings for the printer. This is equivalent to specifying 2 d, and g. - u: Stores the information in the printer s per user DEVmode structure.
/SrSpecifies what information about a printer is restored and how conflicts in settings are handled. Use with the following values placed at the end of the command line: - 2: Restores the information contained in the printer s printER_INFO_2 structure. This structure contains the basic information about the printer such as its name, server name, port name, and share name. - 7: Restores the directory service information contained in the printER_INFO_7 structure. - c: Restores the color profile information for a printer. - d: Restores printer specific data, such as the printer s hardware ID. - s: Restores the printer s security descriptor. - g: Restores the information in the printer s global DEVmode structure. - m: Restores the minimal settings for the printer. This is equivalent to specifying 2, d, and g. - u Restores the information in the printe s per user DEVmode structure. - r: If the printer name stored in the file is different from the name of the printer being restored to, then use the current printer name. This cannot be specified with f. If neither r nor f is specified and the names do not match, restoration of the settings fails. …
/XgRetrieves the settings for a printer.
/XsSets the settings for a printer.
/ySets the printer being installed as the default printer.
/?Displays the in-product help for the command and its associated parameters.
@[file]Specifies a command-line argument file and directly inserts the text in that file into the command line.
/a[file]Specifies the binary file name.
/b[name]Specifies the base printer name.
/c[name]Specifies the computer name if the action to be performed is on a remote computer.
/f[file]Species the Universal Naming Convention (UNC) path and name of the .inf file name or the output file name, depending on the task that you are performing. Use /F[file] to specify a dependent .inf file.
/h[architecture]Specifies the driver architecture. Use one of the following: x86, x64, or Itanium.
/j[provider]Specifies the print provider name.
/l[path]Specifies the UNC path where the printer driver files that you are using are located.
/m[model]Specifies the driver model name. (This value can be specified in the .inf file.)
/n[name]Specifies the printer name.
/qRuns the command with no notifications to the user.
/r[port]Specifies the port name.
/uSpecifies to use the existing printer driver if it is already installed.
/t[#]Specifies the zero-based index page to start on.
/v[version]Specifies the driver version. If you do not also specify a value for /K, you must specify one of the following values: type 2 - Kernel mode or type 3 - User mode.
/wprompts the user for a driver if the driver is not found in the .inf file that is specified by /f.
/zSpecifies to not automatically share the printer being installed.
/Mw[message]Displays a warning message to the user before committing the changes specified in the command line.
/Mq[message]Displays a confirmation message to the user before committing the changes specified in the command line.
/W[flags]Specifies any parameters or options for the add printer wizard, the add printer Driver Wizard, and the Network printer Installation Wizard. r: Enables the wizards to be restarted from the last page.
/G[flags]Specifies global parameters and options that you want to use. w: Suppresses setup driver warnings to the user.