You are on page 1of 12

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. For examples of how this
command can be used, see Examples.

Syntax

Copy
rundll32 printui.dll PrintUIEntry [BaseParameter] [ModificationParameter1]
[ModificationParameter2] [ModificationParameterN]
You can also use the following alternate syntaxes, although the examples in this
topic use the previous syntax:

Copy
rundll32 printui.dll,PrintUIEntry [BaseParameter] [ModificationParameter1]
[ModificationParameter2] [ModificationParameterN]

Copy
rundll32 printui PrintUIEntry [BaseParameter] [ModificationParameter1]
[ModificationParameter2] [ModificationParameterN]

Copy
rundll32 printui,PrintUIEntry [BaseParameter] [ModificationParameter1]
[ModificationParameter2] [ModificationParameterN]
Parameters
There are two types of parameters: base parameters and modification parameters.
Base parameters specify the function that the command is to perform. Only one of
these parameters can appear in a given command line. Then, you can modify the base
parameter by using one or more of the modification parameters if they are
applicable to the base parameter (not all modification parameters are supported by
all base parameters).

Base Parameters Description


/dl deletes the local printer.
/dn deletes a network printer connection.
/dd deletes a printer driver.
/e Displays the printing preferences for a given printer.
/ga adds a per computer printer connection (the connection is available to any
user on that computer when they log on).
/ge Displays per computer printer connections on a computer.
/gd deletes a per computer printer connection (the connection is deleted the next
time a user logs on).
/ia Installs a printer driver by using an .inf file.
/id Installs a printer driver by using the add printer Driver Wizard.
/if Installs a printer by using an .inf file.
/ii Installs a printer by using the add printer wizard with an .inf file.
/il Installs a printer by using the add printer wizard.
/in Connects to a remote network printer.
/ip Installs a printer by using the Network printer Installation Wizard
(available from the user interface from print Management).
/k prints a test page on a printer.
/o Displays the queue for a printer.
/p Displays the properties of a printer. When you use this parameter, you must
also specify a value for the modification parameter /n[name].
/s Displays 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.
/Ss Specifies 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: Use to store 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: Use to store the directory service information contained in the printER_INFO_7
structure.
- c: Use to store the color profile information for a printer.
- d: Use to store printer specific data such as the printer s hardware ID.
- s: Use to store the printer s security descriptor.
- g: Use to store the information in the printer s global DEVmode structure.
- m: Use to store the minimal settings for the printer. This is equivalent to
specifying 2 d, and g.
- u: Use to store the information in the printer s per user DEVmode structure.
/Sr Specifies 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: Use to restore 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: Use to restore the directory service information contained in the
printER_INFO_7 structure.
- c: Use to restore the color profile information for a printer.
- d: Use to restore printer specific data, such as the printer s hardware ID.
- s: Use to restore the printer s security descriptor.
- g: Use to restore the information in the printer s global DEVmode structure.
- m: Use to restore the minimal settings for the printer. This is equivalent to
specifying 2, d, and g.
- u Use to restore 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 Retrieves the settings for a printer.
/Xs Sets the settings for a printer.
/y Sets 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.
Modification Parameters Description
-------------- --------
/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.
/F[file] Specifies the UNC path and name of a .inf file that the .inf file
specified with /f[file] depends on.
/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.
/q Runs the command with no notifications to the user.
/r[port] Specifies the port name.
/u Specifies 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.
/w prompts the user for a driver if the driver is not found in the .inf file
that is specified by /f.
/Y Specifies that printer names should not be automatically generated.
/z Specifies to not automatically share the printer being installed.
/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 Shares the printer that is being installed. Only use with the /if parameter.
/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.


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.
See Examples in this document for the syntax for some common tasks. For more
examples, at a command prompt type: rundll32 printui.dll,PrintUIEntry /?

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

Copy
rundll32 printui.dll PrintUIEntry /in /n\\client1\printer1
To add a printer using the add printer wizard and using an .inf file, InfFile.inf,
located on drive c: at Infpath, type:

Copy
rundll32 printui.dll PrintUIEntry /ii /f c:\Infpath\InfFile.inf
To delete an existing printer, printer1, on a computer, Client1, type:

Copy
rundll32 printui.dll PrintUIEntry /dn /n\\client1\printer1
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):

Copy
rundll32 printui.dll PrintUIEntry /ga /n\\client2\printer2
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):

Copy
rundll32 printui.dll PrintUIEntry /gd /n\\client2\printer2
To view the properties of the print server, printServer1, type:

Copy
rundll32 printui.dll PrintUIEntry /s /t1 /c\\printserver1
To view the properties of a printer, printer3, type:

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

___________________________________________________________________________________
_____
***********************************************************************************
*****

Uso: rundll32 printui.dll,PrintUIEntry [op��es] [@arquivodecomandos]


/a[arquivo] nome de arquivo binario
/b[nome] nome da impressora base
/c[nome] nome unc da m�quina caso a a��o seja em uma m�quina remota
/dl exclui impressora local
/dn exclui conex�o de impressora de rede
/dd exclui driver de impressora
/e exibe prefer�ncias de impress�o
/f[arquivo] arquivo INF ou de sa�da
/F[arquivo] local de um arquivo INF do qual possa depender o arquivo INF
especificado com /f
/ga adiciona conex�es de impressora por computador (a conex�o ser� propagada ao
usu�rio ap�s o logon)
/ge enumera conex�es de impressora por computador
/gd exclui conex�es de impressora por computador (a conex�o ser� exclu�da ap�s o
logon)
/h[arquitetura] arquitetura de driver de um dos seguintes: x86, x64 ou Itanium
/ia instala o driver de impressora usando arquivo INF
/id instala o driver da impressora usando o assistente para adicionar driver de
impressora
/if instala a impressora usando o arquivo INF
/ii instala a impressora usando o assistente para adicionar impressora com um
arquivo INF
/il instala a impressora usando o assistente para adicionar impressora
/im instala impressora usando o assistente para adicionar impressora
ignorando�as impressoras de rede listadas
/in adiciona conex�o de impressora de rede
/ip instala impressora usando o assistente de instala��o de impressora de rede
/j[provedor] nome do provedor de impress�o
/k imprime p�gina de teste na impressora especificada; n�o pode ser combinado
com o comando ao instalar uma impressora
/l[caminho] caminho de�origem do driver da impressora
/m[modelo] nome do modelo de driver da impressora
/n[nome] nome da impressora
/o mostra exibi��o da fila da impressora
/p mostra propriedades da impressora
/q modo silencioso, n�o�mostrar mensagens de erro
/r[porta] nome da porta
/s�mostra propriedades do servidor
/Ss Armazena configura��es da impressora em um arquivo
/Sr Restaura as configura��es da impressora a partir de um arquivo
Armazenar ou restaurar os sinalizadores de op��o das configura��es da impressora
que devem ser posicionados no final do comando:
2 PRINTER_INFO_2
7 PRINTER_INFO_7
c Perfil de Cor
d PrinterData
s Descritor de seguran�a
g DevMode Global
m Configura��es m�nimas
u DevMode de Usu�rio
r Resolver conflitos de nome
f For�ar nome
p Resolver porta
i Conflito de nome de driver
/u usa o driver da impressora existente se j� estiver instalado
/t[#] p�gina de �ndice inicial, come�ando em zero
/v[vers�o] vers�o do driver de um dos seguintes: "Tipo 2 - Modo Kernel" ou "Tipo
3 - Modo de Usu�rio"
/w solicita um driver ao usu�rio caso o driver especificado n�o seja localizado
no INF
/y define impressora como padr�o
/Xg obt�m configura��es da impressora
/Xs define configura��es da impressora
/z n�o compartilha esta impressora automaticamente
/Y n�o gera um nome de impressora automaticamente
/K altera o significado de /h para que aceite 2, 3, 4 para x86, x64 ou Itanium
(respectivamente) e de /v para que aceite 3 para "Tipo 3 - Modo de Usu�rio"
/Z compartilha esta impressora; pode ser usada apenas com a op��o /if
/? ajuda sobre esta mensagem
@[arquivo] arquivo de argumento de linha de comando
/Mw[mensagem] mostra uma mensagem de aviso antes de confirmar o comando
/Mq[mensagem] mostra uma mensagem de confirma��o antes de confirmar o comando
/W[sinalizadores] especifica sinalizadores e op��es para os assistentes (para
adicionar impressoras e drivers de impressora)
r permite o rein�cio dos assistentes a partir da �ltima p�gina
/G[sinalizadores] especifica sinalizadores e op��es globais
w suprime a interface de usu�rio de avisos de driver de instala��o (modo
supersilencioso)
/R for�a driver selecionado a substituir o driver existente

Exemplos:
Executar as propriedades do servidor:
rundll32 printui.dll,PrintUIEntry /s /t1 /c\\computador
Executar as propriedades da impressora:
rundll32 printui.dll,PrintUIEntry /p /n\\computador\impressora
Executar o Assistente para Adicionar Impressora localmente:
rundll32 printui.dll,PrintUIEntry /il
Execute o assistente para adicionar impressora em \\machine:
rundll32 printui.dll,PrintUIEntry /im /c\\machine
Executar a exibi��o de fila:
rundll32 printui.dll,PrintUIEntry /o /n\\computador\impressora
Executar a instala��o do arquivo INF:
rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f
c:\infpath\infFile.inf /r "lpt1:" /m "Brother DCP-128C"
Executar a instala��o de inf (com depend�ncia de inf). No exemplo, prnbr002.inf
depende de ntprint.inf
rundll32 printui.dll, PrintUIEntry /ia /m "Brother DCP-128C" /K /h x64 /v 3 /f
"c:\infpath\prnbr002.inf" /F "c:\infpath\ntprint.inf"
Executar o Assistente para Adicionar Impressora usando inf:
rundll32 printui.dll,PrintUIEntry /ii /f C:\infpath\infFile.inf
Adicionar a impressora usando driver de impressora da caixa de entrada:
rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /r "lpt1:" /m "Brother DCP-
128C"
Adicionar conex�o de impressora por computador (a conex�o ser� propagada ao
usu�rio ap�s o logon):
rundll32 printui.dll,PrintUIEntry /ga /c\\computador /n\\computador\impressora
/j"Servi�os de impress�o LanMan"
Excluir conex�o de impressora por computador (a conex�o ser� exclu�da ap�s o
logon do usu�rio):
rundll32 printui.dll,PrintUIEntry /gd /c\\computador /n\\computador\impressora
Enumerar as conex�es de impressora por computador:
rundll32 printui.dll,PrintUIEntry /ge /c\\computador
Adicionar o driver da impressora usando inf:
rundll32 printui.dll,PrintUIEntry /ia /c\\computador /m "Brother DCP-128C" /h "x86"
/v "Type 3 - User Mode" /f c:\infpath\infFile.inf
Adicionar o driver da impressora usando inf:
rundll32 printui.dll,PrintUIEntry /ia /K /c\\computador /m "Brother DCP-128C" /h
"x86" /v 3
Adicionar o driver de impressora de caixa de entrada:
rundll32 printui.dll,PrintUIEntry /ia /c\\computador /m "Brother DCP-128C" /h
"Intel" /v "Type 3 - Kernel Mode"
Remover o driver de impressora:
rundll32 printui.dll,PrintUIEntry /dd /c\\computador /m "Brother DCP-128C" /h "x86"
/v "Type 3 - User Mode"
Remover o driver de impressora:
rundll32 printui.dll,PrintUIEntry /dd /K /c\\computador /m "Brother DCP-128C" /h
"x86" /v 3
Definir a impressora como padr�o:
rundll32 printui.dll,PrintUIEntry /y /n "printer"
Definir coment�rio da impressora:
rundll32 printui.dll,PrintUIEntry /Xs /n "impressora" coment�rio "Minha impressora"
Obter configura��es de impressora:
rundll32 printui.dll,PrintUIEntry /Xg /n "printer"
Obter os resultados de salvamento das configura��es da impressora em um arquivo:

rundll32 printui.dll,PrintUIEntry /f "results.txt" /Xg /n "printer"


Definir uso de comando de configura��es da impressora:
rundll32 printui.dll,PrintUIEntry /Xs /n "printer" ?
Armazenar todas as configura��es da impressora em um arquivo:
rundll32 printui.dll,PrintUIEntry /Ss /n "printer" /a "file.dat"
Restaurar todas as configura��es da impressora de um arquivo:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat"
Armazenar informa��es sobre a impressora no n�vel 2 em um arquivo:
rundll32 printui.dll,PrintUIEntry /Ss /n "printer" /a "file.dat" 2
Restaurar de um descritor de seguran�a da impressora de arquivo:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" s
Restaurar de um devmode global da impressora de arquivo e dados de impressora:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" g d
Restaurar as configura��es m�nimas com base em um arquivo e resolver o nome da
porta:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" m p
Habilitar Processo do Cliente para uma impressora:
rundll32 printui.dll,PrintUIEntry /Xs /nClientSideRender da "impressora" habilitado
Desabilitar Processo do Cliente para uma impressora:
rundll32 printui.dll,PrintUIEntry /Xs /nClientSideRender da "impressora"
desabilitado

___________________________________________________________________________________
_____________________________________
***********************************************************************************
*************************************

The following is a list of print command-line tools.

Command Description
[lpq]lpq.md) Displays the status of a print queue on a
computer running Line printer Daemon (LPD).
lpr Sends a file to a computer or printer sharing device
running the Line printer Daemon (LPD) service in preparation for printing.
Net print Displays information about a specified printer queue,
displays information about a specified print job, or controls a specified print
job.
print Sends a text file to a printer.
prncnfg Configures or displays configuration
information about a printer.
prndrvr adds, deletes, and lists printer drivers.
prnjobs pauses, resumes, cancels, and lists print jobs.
prnmngr adds, deletes, and lists printers or printer
connections, in addition to setting and displaying the default printer.
prnport creates, deletes, and lists standard TCP/IP
printer ports, in addition to displaying and changing port configuration.
prnqctl prints a test page, pauses or resumes a
printer, and clears a printer queue.
pubprn Publishes a printer to the active directory
directory service.
rundll32 printui.dll,printUIEntry Enables you to automate the installation and
configuration of printers using scripts or the command prompt.

COMO INSTALAR IMPRESSORA POR COMANDOS NO WINDOWS


Rate This

Abra Iniciar Executar: e digite:

rundll32 printui.dll,PrintUIEntry [op��es] [@arquivodecomandos]/um nome de arquivo


bin�rio [file]

/b[nome] nome da impressora base

/c[nome] nome unc da m�quina caso a a��o seja em uma m�quina remota

/dl exclui impressora local

/dn exclui conex�o de impressora de rede

/dd exclui driver de impressora

/e exibe prefer�ncias de impress�o

/f[arquivo] arquivo INF ou de sa�da

/ga adiciona conex�es de impressora por computador

/ge enumera conex�es de impressora por computador

/gd exclui conex�es de impressora por computador

/h[arch] a arquitetura do driver � uma das seguintes: Alpha | Intel | IA64 | x64

/ia instala o driver de impressora usando arquivo INF

/id instala o driver da impressora usando o �Assistente para adicionar driver de


impressora�

/if instala a impressora usando o arquivo INF


/ii instala a impressora usando o �Assistente para adicionar impressora� com um
arquivo INF

/il instala a impressora usando o �Assistente para adicionar impressora�

/in adiciona uma conex�o de impressora de rede

/j[fornecedor] nome do provedor de impress�o

/k imprime p�gina de teste para a impressora especificada, n�o pode ser usado com
comando ao instalar uma impressora

/l[caminho] caminho de origem do driver de impressora

/m[modelo] nome do modelo do driver de impress�o

/n[nome] nome da impressora

/o exibe a fila de impress�o

/p exibe propriedades de impress�o

/q modo silencioso, n�o exibir mensagens de erro

/r[porta] nome da porta

/s exibe propriedades do servidor

/Ss armazenar as configura��es da impressora em um arquivo

/Sr restaurar as configura��es da impressora de um arquivo

Armazenar ou restaurar os sinalizadores de op��o das configura��es da impressora


que devem ser posicionados no final do comando:

2 PRINTER_INFO_2

7 PRINTER_INFO_7

c Color Profile

d PrinterData

s Security descriptor

g Global DevMode

m Minimal settings

u User DevMode

r Resolve name conflicts

f Force name

p Resolve port

/u usa o driver de impress�o existente caso ele j� esteja instalado


/t[#] p�gina de �ndice inicial, come�ando em zero

/v[vers�o] a vers�o do driver � uma das seguintes op��es: Windows 95, 98 e Me |


Windows NT 4.0 | Windows NT 4.0 ou 2000 | Windows 2000 ou Windows XP

/w solicita um driver ao usu�rio caso o driver especificado n�o esteja no arquivo


INF

/y define impressora como padr�o

/Xg obt�m configura��es da impressora

/Xs define configura��es da impressora

/z n�o compartilha esta impressora automaticamente

/Y n�o gera um nome de impressora automaticamente

/K altera o significado de /v e /h para aceitar 0,1,2,3, respectivamente, para


Windows x64 e Windows IA64 | Windows NT x86 | Windows NT Alpha_AXP | Windows 4.0

/Z compartilha esta impressora; pode ser usada apenas com a op��o /if

/? ajuda sobre esta mensagem

@[arquivo] arquivo de argumento de linha de comando

/Mw[mensagem] mostra uma mensagem de aviso antes de submeter o comando

/Mw[mensagem] mostra uma mensagem de confirma��o antes de confirmar o comando

/W[flags] especifica sinalizadores e op��es para os assistentes (para adicionar


impressoras e drivers de impressora)

r permitem que os assistentes possam ser reiniciados da �ltima p�gina

/G[flags] especifica sinalizadores e op��es globais

w suprimir UI de avisos de driver de instala��o (modo supersilencioso)

Exemplos:

Executar as propriedades do servidor:

rundll32 printui.dll,PrintUIEntry /s /t1 /n\\computador

Executar as propriedades da impressora:

rundll32 printui.dll,PrintUIEntry /p /n\\computador\impressora

Executar o �Assistente para adicionar impressora� localmente:

rundll32 printui.dll,PrintUIEntry /il

Executar o �Assistente para adicionar impressora� no \\computador:

rundll32 printui.dll,PrintUIEntry /il /c\\computador


Executar exibi��o de fila:

rundll32 printui.dll,PrintUIEntry /o /n\\computador\impressora

Executar a instala��o do arquivo INF:

rundll32 printui.dll,PrintUIEntry /if /b �Teste de impress�o� /f �%windir


%\inf\ntprint.inf� /r �lpt1:� /m �AGFA-AccuSet v52.3?

Executar o �Assistente para adicionar impressora� usando inf:

rundll32 printui.dll,PrintUIEntry /ii /f %windir%\inf\ntprint.inf


Adicionar a conex�o de impressora por computador:

rundll32 printui.dll,PrintUIEntry /ga /c\\computador /n\\computador\impressora


/j�Servi�os de impress�o LanMan�

Excluir a conex�o de impressora por computador:

rundll32 printui.dll,PrintUIEntry /gd /c\\computador /n\\computador\impressora

Enumerar as conex�es de impressora por computador:

rundll32 printui.dll,PrintUIEntry /ge /c\\computador

Adicionar o driver de impress�o usando INF:

rundll32 printui.dll,PrintUIEntry /ia /c\\computador /m �AGFA-AccuSet v52.3� /h


�Intel� /v �Windows 2000 ou XP� /f %windir%\inf\ntprint.inf
Adicionar driver de impressora usando inf:

rundll32 printui.dll,PrintUIEntry /ia /K /c\\computador /m �AGFA-AccuSet v52.3� /h


�Windows NT x86� /v 3

Remover driver de impressora:

rundll32 printui.dll,PrintUIEntry /dd /c\\computador /m �AGFA-AccuSet v52.3� /h


�Intel� /v �Windows 2000 ou XP�

Remover driver de impressora:

rundll32 printui.dll,PrintUIEntry /dd /K /c\\computador /m �AGFA-AccuSet v52.3� /h


�Windows NT x86� /v 3

Definir a impressora como padr�o:

rundll32 printui.dll,PrintUIEntry /y /n �printer�

Definir coment�rio da impressora:

rundll32 printui.dll,PrintUIEntry /Xs /n �impressora� coment�rio �Minha impressora�

Obter configura��es de impressora:

rundll32 printui.dll,PrintUIEntry /Xg /n �printer�

Obter os resultados de salvamento das configura��es da impressora em um arquivo:

rundll32 printui.dll,PrintUIEntry /f �results.txt� /Xg /n �printer�


Definir uso de comando de configura��es da impressora:

rundll32 printui.dll,PrintUIEntry /Xs /n �printer� ?

Armazenar todas as configura��es da impressora em um arquivo:

rundll32 printui.dll,PrintUIEntry /Ss /n �printer� /a �file.dat�

Restaurar todas as configura��es da impressora de um arquivo:

rundll32 printui.dll,PrintUIEntry /Sr /n �printer� /a �file.dat�

Armazenar informa��es sobre a impressora no n�vel 2 em um arquivo:

rundll32 printui.dll,PrintUIEntry /Ss /n �printer� /a �file.dat� 2

Restaurar de um descritor de seguran�a da impressora de arquivo:

rundll32 printui.dll,PrintUIEntry /Sr /n �printer� /a �file.dat� s

Restaurar de um devmode global da impressora de arquivo e dados de impressora:

rundll32 printui.dll,PrintUIEntry /Sr /n �printer� /a �file.dat� g d

Restaurar as configura��es m�nimas com base em um arquivo e resolver o nome da


porta:

rundll32 printui.dll,PrintUIEntry /Sr /n �printer� /a �file.dat� m p

You might also like