Excerpt from PrintUI.DLL User’s Guide and Reference:
Add a per-machine connection
Adds a per-machine connection to the client machine. A per-machine
connection is a printer configured to be accessible by all users of the
client machine. Normally, when a user adds a printer to a client
machine, the printer is visible only to the account used by the person
adding the printer. This command must be run by a local admin of the
client machine.
Command Line:
rundll32 printui.dll PrintUIEntry /ga /n\\machine\printer
http://download.microsoft.com/download/8/2/c/82cffcfa-56f6-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc
(Word Document)
John
One note for anyone using this command. The printers don't appear until the
print spooler is restarted.
The one issue I am having is setting the printer as the default printer once
it's added.
The command I am using to add the printer is [rundll32 printui.dll
PrintUIEntry /ga /n "\\prntserv\is" ]
According to the manual the "/y" switch is used to set the printer as the
default.
I have tried putting the /y before the /ga , after the /ga ,before the /n ,
after the /n, after the printer name. I have even tried running the script
like this [rundll32 printui.dll PrintUIEntry /y /n "\\prntserv\is" ]
withouth the /ga . But , the printer does not show as default.
Where am I going wrong?
> .
>
John
rundll32 printui.dll,PrintUIEntry /y /n\\servername\printername
John
> .
>
John