Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

Printer plist

Hello folks,

I have a printer plist I want to push as part of a config profile, but I'm getting some errors when attempted to upload the plist file.

Here's the process I followed-

  1. Added two printers to a test machine by going to System Preferences > Printers & Scanners > Clik the plus > Click advanced > Added a new printer of the 'spoolss' variety with an SMB share path.

  2. Copied /Library/Preferences/org.cups.printers.plist to ~/

  3. Ran

    /usr/bin/plutil -convert xml1 org.cups.printers.plist

    on the copied file.

  4. Created a configuration profile to target org.cups.printers.plist

When I upload the converted file, it complains about it being the wrong format, and to run the command from point 3. I've noticed the xml is two dicts in an array, and when I remove the array tag it accepts the file but only appears to have the config for one of the printers.

I will upload the plist in question as a comment so this post doesn't get too clogged.

Like Comment
SOLVED Posted: by dan-mackie

The plist-

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <dict>
        <key>device-uri</key>
        <string>smb://redacted/printer1</string>
        <key>printer-info</key>
        <string>Printer 1</string>
        <key>printer-is-accepting-jobs</key>
        <true/>
        <key>printer-location</key>
        <string></string>
        <key>printer-make-and-model</key>
        <string>Generic PCL Laser Printer</string>
        <key>printer-name</key>
        <string>Printer1</string>
        <key>printer-state</key>
        <integer>3</integer>
        <key>printer-state-reasons</key>
        <array/>
        <key>printer-type</key>
        <integer>12356</integer>
    </dict>
    <dict>
        <key>device-uri</key>
        <string>smb://redacted/preinter2</string>
        <key>printer-info</key>
        <string>Printer 2</string>
        <key>printer-is-accepting-jobs</key>
        <true/>
        <key>printer-location</key>
        <string></string>
        <key>printer-make-and-model</key>
        <string>Generic PostScript Printer</string>
        <key>printer-name</key>
        <string>Printer2</string>
        <key>printer-state</key>
        <integer>3</integer>
        <key>printer-state-reasons</key>
        <array/>
        <key>printer-type</key>
        <integer>8392772</integer>
    </dict>
</array>
</plist>
Like