install printer based on GPO

This commit is contained in:
Raphael Dannecker 2023-08-16 12:17:17 +02:00
parent cc4010b1bb
commit 2fe52816e4
31 changed files with 3284 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=Remove all printers
[Service]
Type=simple
ExecStart=sh -c 'lpstat -p && for printer in $(lpstat -p | cut -f 2 -d " "); do lpadmin -x $printer; done || echo no printer found.'