Removing a printer definition from client computers

This section explains how to remove printer definitions that you created for Mac computers in the domain. It assumes that you set up the Copy Files group policy to add printer definitions to each of your joined Mac computers (as explained in Setting up authenticated printing).

To remove a printer definition from computers in a domain:

  1. Identify the name of the PPD file to delete in /etc/cups/ppd; for example, laserjet4300.ppd.
  2. On the Mac template computer (the computer on which you originally defined the authenticated printer), open System Preferences > Print & Scan. Select the printer to delete, click the minus (-) button, then click Delete Printer.

    Deleting the printer removes the printer from the list, updates the /etc/cups/printers.conf file by removing the definition of the deleted printer, and removes the printerName.ppd file from the /etc/cups/ppd directory.

  3. Copy the updated printers.conf file to the desktop and change the permissions to everyone: Read only.

  4. Copy the updated printers.conf file to the SYSVOL and replace the existing file; also remove the PPD file for the deleted printer.

    SYSVOL is a well-known shared directory on the domain controller that stores server copies of public files that must be shared throughout the domain. When authenticated printing was set up, the CUPS configuration file, printers.conf was placed in the SYSVOL/acme.com/MacPrinters folder.

    SYSVOL is located at:

    C:\Windows\SYSVOL\sysvol\domainName\

    If you are connected to the domain, you should see the domain controller in the Finder. If the domain controller is not visible in the Finder, connect to it:

    1. Click Go > Connect to Server and select the domain controller.

    2. When prompted, select SYSVOL; for example:

    3. Navigate to the directory you created (domainName/subdirectory), for example by clicking acme.com then MacPrinters.

    4. Drag the printer configuration file to this directory.

    5. Remove the PPD file for the deleted printer.

  5. Remove the deleted printerName.ppd file from the Copy Files policy.

    1. On the Windows domain controller, open the group policy editor and select the policy to edit, such as Default Domain Policy.

    2. Navigate to Computer Configuration > Policies > Common UNIX Settings and double-click Copy Files.

    3. Select the file to delete and click Remove.

    4. Click OK to save the updated policy.

  6. Configure the Specify commands to run group policy to remove the deleted printerName.ppd file from all the Mac computers in the domain.

    1. In the same folder of the group policy editor (Common UNIX Settings), open the Specify commands to run policy and select Enabled.

    2. Click Add.

    3. In Run command, enter a command similar to the following to remove the printerName.ppd file from the /etc/cups/ppd directory on each computer:

      rm /etc/cups/ppd/printerName.ppd; for example:
      
      rm /etc/cups/ppd/laserjet4300.ppd
      
      
    4. Click OK to save the policy.

The next time group policy is updated on computers in the domain (every 90 minutes by default), the following occurs:

  • The Copy Files group policy copies the updated printers.conf file to each computer.
  • The Specify commands to run group policy removes the specified PPD file on each computer.