Click to Rate and Give Feedback
TechNet
TechNet Library
Windows
Windows Vista
Print Management
 Deploy printers by using Group Poli...

  Switch on low bandwidth view
Deploy printers by using Group Policy

Updated: August 22, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Vista

Print Management (Printmanagement.msc) can be used with Group Policy to automatically add printer connections to a computer's Printers and Faxes folder.

To do this, you use the Deploy with Group Policy dialog box to automatically add a printer connection setting to an existing Group Policy object (GPO) in Active Directory. When Group Policy processing runs on client computers, the printer connection settings are applied to the users or computers associated with the GPO. This is called deploying printer connections. Printers you deploy by using this method appear in the Deployed Printers object of Print Management tree when the print server they are connected to is being monitored.

This method of installing a printer is useful in a laboratory, classroom, or branch office setting where every computer in the room or office needs access to the same printer. It is also useful in large organizations, where computers and printers are often separated by function, workgroup, or department, such as marketing or human resources.

A printer connection that has been installed by using a per-user connection is available to the user no matter what computer the user logs on to in the network. A printer connection that has been installed by using a per-machine connection appears in the Printers and Faxes folder, ready for use by any user of that computer.

noteNote
Only per-user printer connections are supported on computers running Windows 2000. Per-machine printer connections are supported on computers running Windows XP or later.

To deploy printer connections using Group Policy, add the PushPrinterConnections.exe utility to a machine startup script (for per-machine connections) or to a user logon script (for per-user connections). The utility reads the printer connection settings made in the GPO and adds the printer connection.

ImportantImportant
In order for the PushPrinterConnections.exe utility to work, you must update your Active Directory schema with the Windows Server 2003 R2 changes. For more information about these schema updates, see the Microsoft Web site (http://go.microsoft.com/fwlink?linkid=51166).

Once you deploy printer connection settings to a GPO, the PushPrinterConnections.exe utility will run on the client computers upon logon or restart. The utility reads the settings from the GPO and adds the deployed printer connections to the users or computers to which the GPO applies. You can reuse the GPO used to deploy per-user or per-machine printer connections. For more information about Group Policy and Printers, see Set Group Policy for Printers on the Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=50998).

It is a good idea to use the same GPO for deploying the printer connection settings and the PushPrinterConnections.exe computer startup or user logon script. This ensures that only users (or computers) that receive the printer connection settings will run the PushPrinterConnections.exe utility.

ImportantImportant
The print server role must be installed and you must be a member of the Administrators group to perform these procedures. You must also have write access to the Group Policy object to use it to manage printers. Before you install printers by using Group Policy, you must have a GPO for your printer connections settings that is assigned to the appropriate users and computers. You can use the Group Policy Object Editor or Active Directory Users and Computers to create a GPO.

For more information about using Group Policy, see Enterprise Management with the Group Policy Management Console on the Microsoft Web site (http://go.microsoft.com/fwlink?linkid=22814).

To install printers to groups of users or computers by using Group Policy
  1. Open the Administrative Tools folder, and then double-click Print Management.

  2. In the Print Management tree, under the appropriate print server, click Printers.

  3. In the results pane, right-click the printer you want to deploy, and then click Deploy with Group Policy.

  4. In the Deploy with Group Policy dialog box, click Browse, and then choose a Group Policy object.

  5. Click OK.

  6. To assign the printer connection setting to the GPO, do one or both of the following:

    • As a per-user setting, select the The users that this GPO applies to (per user) check box.

    • As a per-machine setting, select the The computers that this GPO applies to (per machine) check box.

  7. Click Add.

  8. Repeat steps 3 to 6 to add the printer connection setting to another GPO.

  9. Click OK.

To use the PushPrinterConnections.exe file
  1. Using Group Policy Management console (gpmc.msc), right-click the GPO with your printer connections settings, and then click Edit.

  2. In the Group Policy Object Editor tree, navigate to one following locations:

    • If the printer connections are deployed per-machine, go to Computer Configuration, Windows Settings, Scripts (Startup/Shutdown).

    • If the printer connections are deployed per-user, go to User Configuration, Windows Settings, Scripts (Logon/Logoff).

  3. Right-click Startup or Logon, and then click Properties.

  4. In the Logon Properties or Startup Properties dialog box, click Show Files.

  5. Copy the PushPrinterConnections.exe file to this location and then close the window.

  6. In the Logon Properties or Startup Properties dialog box, click Add.

  7. Type PushPrinterConnections.exe in the Script Name box.

  8. If you want to enable logging, type –log in the Script Parameters box. Log files are written to %windir%\temp\ppcMachine.log (for per-computer connections) and %temp%\ppcUser.log (for per-user connections) on the computer on which the policy is applied.

  9. Click OK.

noteNote
For per-computer connections, the printer connections will be added when the client computer restarts. For per-user connections, the printer connections will be added when the user logs on. If you remove the printer connection settings from the GPO, PushPrinterConnections.exe will remove the corresponding printers from the client computer on the next restart or user logon.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
PushPrinterConnections.Exe FAIL      Jeffrey S. Patton ... Thomas Lee   |   Edit   |   Show History

Contrary to the Note at the end of the article, pushprinterconnections.exe does not remove the printers from the computer. In fact it appears that when used the printers get tattooed onto the client pc, case in point.

Just upgraded my print server to R2 to take advantage of this feature, more for our Vista users than anything.

  1. Created an empty OU
  2. Put a newly imaged computer in the OU
  3. Configured 3 printers to be deployed to the computer via PrintManagement on R2
  4. Verified that 3 printers existed
  5. Removed 3 printers using PrintManagement on R2
  6. Configured same 3 printers to be deployed to the user via PrintManagement on R2
  7. Verified that 3 printers existed
  8. Removed 3 printers using PrintManagement on R2
  9. Verified 3 printers gone....FAIL

You forgot a step      red3616665 ... Thomas Lee   |   Edit   |   Show History
If you remove the printers from the desktop witout removing from the group plicy the printers will reinstall on reboot. If you move the computer to a diffrent OU without the pushPrinterConnection.exe attaced to that OU the printers will remain.
Deploy printers - problem      Jakub K ... Alfonsoxsi   |   Edit   |   Show History

I have problem with deploying printers with GPO. In Print manager when I try to add GPO to printer I recive message:

"Deploying printer connection \\SERVER\Printer to per user GPO 'GPO name' faild. The specified directory service attribute or value does not existe.

any ideas what is wrong. Many thanks for any help.

jakub
----
You need upgrade schema to R2 .
Alfonso.

Tags What's this?: Add a tag
Flag as ContentBug
"Cannot copy pushprinterconnections: Access is denied" when copying a backup of a GPO      Cemberde ... Maljazar   |   Edit   |   Show History
This has been working great for our enterprise for assigning different printers to different OU's of computers.

The problem I run into is when I'm trying to copy the GPO backup files from one server to another for archive. The copy fails with this: "Cannot copy pushprinterconnections: Access is denied". This is occuring when running under the priv of a Domain Admin account, and the copy only fails on that particular file imbedded within those printer group policies.

Update: The difference I'm finding between the two servers is the AV. The one I'm backing up the GPO's from has Kaspersky installed and the one I'm archiving to has McAfee installed. If I backup to the archive server (with the McAfee AV) the backup of the printer GPOs fails. It appears to be a McAfee issue and not a rights issue to that file within the GPO. If I copy a successful backup of a printer GPO to a different server that is running Kaspersky instead, the copy succeeds.

I don't know if others are seeing this issue, but if so, check the AV, that may be the culprit.

Update: I had the same problem and it was caused by McAfee Access Protection, once turned off I could copy the file.
This also stopped me installing software to a networked drive letter, even though I could copy the files manually the install program would crash with strange errors, but worked fine with access protection turned off on the server.
Tags What's this?: Add a tag
Flag as ContentBug
Deploying Printers via GPO and setting which is default      g7rpo   |   Edit   |   Show History

Think I have got this working, alllows me to get rid of a script that mapped the printers up till now, which is a godsend.

I have 1 question, is there any way to define which printer is the default? I have 9 printers, all but 1 are departmntal/personal which I am deploying.

There is also a colour laser which needs to be deployed to everyone but not as default.

Any help would be greatly appreciated

Tags What's this?: Add a tag
Flag as ContentBug
PushPrinterConnections.exe not needed      Mike Crowley   |   Edit   |   Show History
Even though this post is filed under Vista this article (http://technet.microsoft.com/en-us/library/cc755424(WS.10).aspx) says:

"The PushPrinterConnections.exe utility is only needed on computers running Windows 2000, Windows XP, and Windows Server 2003 R2 client computers."
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker