Last active
May 28, 2025 03:59
-
-
Save ayhaadam/70f222e901169d1447fcfb56aa401bd1 to your computer and use it in GitHub Desktop.
Jamf Script - Add Printer - RICOH MP C5503
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###################################################################### | |
# Description: This script installs a Ricoh printer on macOS using lpadmin. | |
# Usage: Intended for use within a Jamf policy. | |
# | |
# DISCLAIMER: Use at your own risk. The author is not responsible | |
# for any issues or damages resulting from the use of this script. | |
# | |
# NOTES: | |
# - This script should be used in a Jamf policy that includes: | |
# 1. A Package deployment for the official Ricoh printer driver, e.g.: | |
# Ricoh_PS_Printers_Vol3_CHN_LIO_Driver.pkg | |
# 2. This script to configure and install the printer. | |
# | |
# - The PPD file path used here is the default installation path and | |
# normally does NOT need to be changed. Just make sure the driver | |
# package was installed correctly before running this script. | |
# | |
# - Replace the IP address (192.168.1.150) below with the actual | |
# IP address of your printer. | |
# | |
# Tested with: Ricoh MP C5503, macOS Ventura | |
###################################################################### | |
echo "Starting printer installation..." | |
# Add the printer using IPP protocol | |
lpadmin -p "RICHO_MP_C5503" \ | |
-v "ipp://192.168.1.150" \ | |
-P "/Library/Printers/PPDs/Contents/Resources/RICOH MP C5503" \ | |
-o printer-is-shared=false \ | |
-E | |
# Enable the printer | |
cupsenable "RICHO_MP_C5503" | |
# Accept print jobs for the printer | |
cupsaccept "RICHO_MP_C5503" | |
echo "Printer installation completed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment