Using prnmngr to push printer to all users

M

Mbordelon

we are in the process of replacing all network printers on our network. All
printer names and IP addresses are going to change. I am trying to setup
deployment jobs to push printers to all workstations and set default
printers. I have been successful pushing a printer to a test workstation
using my own credentials but, it only shows up under my profile. I have tried
pushing printers to other workstations with no luck. On the test workstation
I have logged on as several different users but, the printers only show up
under my profile. Is there a switch I am missing that would make the printers
available to all users ?
 
J

John John - MVP

You could do this with the printui.dll.

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/downl...-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc
(Word Document)

John
 
M

Mbordelon

Thanks a lot for the information. That worked perfectly for adding the
printers for all users.

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?
 
J

John John - MVP

The default printer setting is a 'per user' setting. Have the users run
the command via a logon script.

John
Thanks a lot for the information. That worked perfectly for adding the
printers for all users.

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 John - MVP said:
You could do this with the printui.dll.

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/downl...-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc
(Word Document)

John

.
 
J

John John - MVP

To make sure that there is no confusion, just have the users run the
command with the switches to set the default printer:

rundll32 printui.dll,PrintUIEntry /y /n\\servername\printername

John
The default printer setting is a 'per user' setting. Have the users run
the command via a logon script.

John
Thanks a lot for the information. That worked perfectly for adding the
printers for all users.

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 John - MVP said:
You could do this with the printui.dll.

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/downl...-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc

(Word Document)

John

Mbordelon wrote:
we are in the process of replacing all network printers on our
network. All printer names and IP addresses are going to change. I
am trying to setup deployment jobs to push printers to all
workstations and set default printers. I have been successful
pushing a printer to a test workstation using my own credentials
but, it only shows up under my profile. I have tried pushing
printers to other workstations with no luck. On the test workstation
I have logged on as several different users but, the printers only
show up under my profile. Is there a switch I am missing that would
make the printers available to all users ?

.
 
M

Mbordelon

Thanks. I created a batch file for each printer and created a script to copy
the file for the appropriate printer into the all users\startup folder. This
seems to work.

John John - MVP said:
To make sure that there is no confusion, just have the users run the
command with the switches to set the default printer:

rundll32 printui.dll,PrintUIEntry /y /n\\servername\printername

John
The default printer setting is a 'per user' setting. Have the users run
the command via a logon script.

John
Thanks a lot for the information. That worked perfectly for adding the
printers for all users.

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?

:

You could do this with the printui.dll.

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/downl...-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc

(Word Document)

John

Mbordelon wrote:
we are in the process of replacing all network printers on our
network. All printer names and IP addresses are going to change. I
am trying to setup deployment jobs to push printers to all
workstations and set default printers. I have been successful
pushing a printer to a test workstation using my own credentials
but, it only shows up under my profile. I have tried pushing
printers to other workstations with no luck. On the test workstation
I have logged on as several different users but, the printers only
show up under my profile. Is there a switch I am missing that would
make the printers available to all users ?

.
.
 
J

John John - MVP

You're welcome.

John
Thanks. I created a batch file for each printer and created a script to copy
the file for the appropriate printer into the all users\startup folder. This
seems to work.

John John - MVP said:
To make sure that there is no confusion, just have the users run the
command with the switches to set the default printer:

rundll32 printui.dll,PrintUIEntry /y /n\\servername\printername

John
The default printer setting is a 'per user' setting. Have the users run
the command via a logon script.

John

Mbordelon wrote:
Thanks a lot for the information. That worked perfectly for adding the
printers for all users.

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?

:

You could do this with the printui.dll.

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/downl...-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc

(Word Document)

John

Mbordelon wrote:
we are in the process of replacing all network printers on our
network. All printer names and IP addresses are going to change. I
am trying to setup deployment jobs to push printers to all
workstations and set default printers. I have been successful
pushing a printer to a test workstation using my own credentials
but, it only shows up under my profile. I have tried pushing
printers to other workstations with no luck. On the test workstation
I have logged on as several different users but, the printers only
show up under my profile. Is there a switch I am missing that would
make the printers available to all users ?

.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top