Create Multiple Printer Policies at Once

MrR0g3rs
New Contributor III

Hello All,

I am getting ready to start building policies for users to add self-service printers. There are about 100 printers to add. Each policy will be set up exactly the same (category, frequency, self-service, etc.). Is there any way to create these policies in a batch with the name of the policy matching the name of the printer or do I have to create each one individually?

3 REPLIES 3

scottb
Honored Contributor

You can create a script with all of them included...

You'll need to get all the appropriate info, but here's an example of four printers in one script:

 

#!/bin/bash
# installs new printers
# 09/01/2022

/usr/sbin/lpadmin -p "_10_11_111_111_S1FollowYouPrint" \
-E \
-D "S1FollowYouPrint" \
-P "/Library/Printers/PPDs/Contents/Resources/RICOH IM C5500" \
-v eqtrans://10.11.111.111/S1FollowYouPrint \
-o OptionTray=1Cassette \
-o Finisher=FinRUBICONC \
-o printer-is-shared=False 

sleep 2

/usr/sbin/lpadmin -p "_10_11_111_110_S2FollowYouPrint" \
-E \
-D "S2FollowYouPrint" \
-P "/Library/Printers/PPDs/Contents/Resources/RICOH IM C5500" \
-v eqtrans://10.11.111.110/S2FollowYouPrint \
-o OptionTray=1Cassette \
-o Finisher=FinRUBICONC \
-o printer-is-shared=False 

sleep 2

/usr/sbin/lpadmin -p "_10_11_111_112_S3FollowYouPrint" \
-E \
-D "S3FollowYouPrint" \
-P "/Library/Printers/PPDs/Contents/Resources/RICOH IM C5500" \
-v eqtrans://10.11.111.112/S3FollowYouPrint \
-o OptionTray=1Cassette \
-o Finisher=FinRUBICONC \

-o printer-is-shared=False

sleep 2

/usr/sbin/lpadmin -p "_10_11_111_113_S4FollowYouPrint" \
-E \
-D "S4FollowYouPrint" \
-P "/Library/Printers/PPDs/Contents/Resources/RICOH IM C5500" \
-v eqtrans://10.11.111.113/S4FollowYouPrint \
-o OptionTray=1Cassette \
-o Finisher=FinRUBICONC \
-o printer-is-shared=False

 

 

MrR0g3rs
New Contributor III

Will this solution place the printers in the self-service app?

scottb
Honored Contributor

It can, yes.