Compartir a través de


rundll32 printui.dll,PrintUIEntry

Automatiza muchas tareas de configuración de impresora. printui.dll es el archivo ejecutable que contiene las funciones que usan los cuadros de diálogo de configuración de la impresora. También se puede llamar a estas funciones desde un script o un archivo por lotes de línea de comandos, o bien se pueden ejecutar de forma interactiva desde el símbolo del sistema.

Syntax

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

También puede usar las siguientes sintaxis alternativas, aunque los ejemplos de este tema usan la sintaxis anterior:

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

Parameters

Hay dos tipos de parámetros: parámetros base y parámetros de modificación. Los parámetros base especifican la función que el comando va a realizar. Solo uno de estos parámetros puede aparecer en una línea de comandos determinada. A continuación, puede modificar el parámetro base mediante uno o varios de los parámetros de modificación si son aplicables al parámetro base (no todos los parámetros de modificación son compatibles con todos los parámetros base).

Base Parameters Description
/dl Elimina la impresora local.
/dn Elimina una conexión de impresora de red.
/dd Elimina un controlador de impresora.
/e Muestra las preferencias de impresión de una impresora determinada.
/ga agrega una conexión de impresora por equipo (la conexión está disponible para cualquier usuario de ese equipo cuando inicia sesión).
/ge Muestra las conexiones de impresora por equipo en un equipo.
/gd Elimina una conexión de impresora por equipo (la conexión se elimina la próxima vez que un usuario inicie sesión).
/ia Instala un controlador de impresora mediante un archivo .inf.
/id Instala un controlador de impresora mediante el Asistente para agregar controladores de impresora.
/if Instala una impresora mediante un archivo .inf.
/ii Instala una impresora mediante el Asistente para agregar impresoras con un archivo .inf.
/il Instala una impresora mediante el Asistente para agregar impresoras.
/in Se conecta a una impresora de red remota.
/ip Instala una impresora mediante el Asistente para la instalación de impresoras de red (disponible en la interfaz de usuario de la administración de impresión).
/k imprime una página de prueba en una impresora.
/o Muestra la cola de una impresora.
/p Muestra las propiedades de una impresora. When you use this parameter, you must also specify a value for the modification parameter /n[name].
/s Muestra las propiedades de un servidor de impresión. Si quiere ver el servidor de impresión local, no necesita usar un parámetro de modificación. However, if you want to view a remote print server, you must specify the /c[name] modification parameter.
/Ss Especifica qué tipo de información se almacenará para una impresora. If none of the values for /Ss are specified, the default behavior is as if all of them were specified. Use este parámetro base con los siguientes valores colocados al final de la línea de comandos:
  • 2: Stores the information contained in the printer s printER_INFO_2 structure. Esta estructura contiene la información básica sobre la impresora, como su nombre, el nombre del servidor, el nombre del puerto y el nombre del recurso compartido.
  • 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 2d, and g.
  • u: Stores the information in the printer s per user DEVmode structure.
/Sr Especifica qué información sobre una impresora se restaura y cómo se controlan los conflictos en la configuración. Se usa con los siguientes valores colocados al final de la línea de comandos:
  • 2: Restores the information contained in the printer s printER_INFO_2 structure. Esta estructura contiene la información básica sobre la impresora, como su nombre, el nombre del servidor, el nombre del puerto y el nombre del recurso compartido.
  • 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.
  • f: If the printer name stored in the file is different from the name of the printer being restored to, then use the printer name in the file. This cannot be specified with r. If neither f nor r is specified and the names do not match, restoration of the settings fails.
  • p: If the port name in the file being restored from does not match the current port name of the printer being restored to, the printer s current port name is used.
  • h: If the printer being restored to could not be shared using the resource share name in the saved settings file, then attempt to share the printer with either the current share name or a new generated share name if neither H nor h is specified and the printer being restored to cannot be shared with the saved share name, then restoration fails.
  • h: If the printer being restored to cannot be shared with the saved share name, then do not share the printer. If neither H nor h is specified and the printer being restored to cannot be shared with the saved share name, then restoration fails.
  • i: If the driver in the saved settings file does not match the driver for the printer being restored to, then the restoration fails.
/Xg Recupera la configuración de una impresora.
/Xs Establece la configuración de una impresora.
/y Establece la impresora que se va a instalar como impresora predeterminada.
/? Muestra la ayuda en el producto para el comando y sus parámetros asociados.
@[file] Especifica un archivo de argumentos de línea de comandos e inserta directamente el texto de ese archivo en la línea de comandos.
Modification Parameters Description
/a[file] Especifica el nombre de archivo binario.
/b[name] Especifica el nombre de la impresora base.
/c[name] Especifica el nombre del equipo si la acción que se va a realizar está en un equipo remoto.
/f[file] Especifica la ruta de acceso de la Convención de nomenclatura universal (UNC) y el nombre del archivo .inf o el nombre del archivo de salida, en función de la tarea que esté realizando. Use /F[file] to specify a dependent .inf file.
/F[file] Specifies the UNC path and name of a .inf file that the .inf file specified with /f[file] depends on.
/h[architecture] Especifica la arquitectura del controlador. Use one of the following: x86, x64, or Itanium.
/j[provider] Especifica el nombre del proveedor de impresión.
/l[path] Especifica la ruta de acceso UNC donde se encuentran los archivos de controlador de impresora que está usando.
/m[model] Especifica el nombre del modelo de controlador. (Este valor se puede especificar en el archivo .inf).
/n[name] Especifica el nombre de la impresora.
/q Ejecuta el comando sin notificaciones al usuario.
/r[port] Especifica el nombre del puerto.
/u Especifica el uso del controlador de impresora existente si ya está instalado.
/t[#] Especifica la página de índice de base cero en la que se iniciará.
/v[version] Especifica la versión del controlador. 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.
/w prompts the user for a driver if the driver is not found in the .inf file that is specified by /f.
/Y Especifica que los nombres de impresora no se deben generar automáticamente.
/z Especifica que no comparta automáticamente la impresora que se está instalando.
/K changes the meaning of the parameter /h[architecture] to accept 2 in place of x86, 3 in place of x64, or 4 in place of Itanium. It also changes the value of the parameter /v[version] to accept 2 in the place of type 2 - Kernel mode and 3 in place of type 3 - User mode.
/Z Comparte la impresora que se está instalando. Only use with the /if parameter.
/Mw[message] Muestra un mensaje de advertencia al usuario antes de confirmar los cambios especificados en la línea de comandos.
/Mq[message] Muestra un mensaje de confirmación al usuario antes de confirmar los cambios especificados en la línea de comandos.
/W[flags] Especifica cualquier parámetro u opción para el Asistente para agregar impresoras, el Asistente para agregar controladores de impresora y el Asistente para la instalación de impresoras de red.

r: Enables the wizards to be restarted from the last page.

/G[flags] Especifica los parámetros y opciones globales que quiere usar.

w: Suppresses setup driver warnings to the user.

Remarks

  • The PrintUIEntry keyword is case sensitive, and you must enter the syntax for this command with the exact capitalization shown in the examples in this topic.

  • Para más ejemplos, en un símbolo del sistema, escriba: rundll32 printui.dll,PrintUIEntry /?

Examples

Para agregar una nueva impresora remota, printer1, para un equipo, Client1, que sea visible para la cuenta de usuario en la que se ejecuta este comando, escriba:

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

Para agregar una impresora usando el Asistente para agregar impresoras y usando un archivo .inf, InfFile.inf, ubicado en la unidad c: en Infpath, escriba:

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

Para eliminar una impresora existente, printer1, en un equipo, Client1, escriba:

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

Para agregar una conexión de impresora por equipo, printer2, para todos los usuarios de un equipo, Client2, escriba (la conexión se aplicará cuando un usuario inicie sesión):

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

Para eliminar una conexión de impresora por equipo, printer2, para todos los usuarios de un equipo, Client2, escriba (la conexión se eliminará cuando un usuario inicie sesión):

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

Para ver las propiedades del servidor de impresión, printServer1, escriba:

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

Para ver las propiedades de una impresora, printer3, escriba:

rundll32 printui.dll PrintUIEntry /p /n\\printer3