From e28ec5c8f5afe69e829be691d9a25a6eccf19cbb Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 5 Oct 2022 14:30:38 -0400 Subject: [PATCH] Set up ClassroomColor printer driver --- printers.sls | 17 +++++++++++++++++ top.sls | 1 + 2 files changed, 18 insertions(+) create mode 100644 printers.sls diff --git a/printers.sls b/printers.sls new file mode 100644 index 0000000..4c940f9 --- /dev/null +++ b/printers.sls @@ -0,0 +1,17 @@ +# install the driver inf +"PNPUtil.exe /add-driver \\\\ucs\\software\\drivers\\dell\\c2660dn_PS\\DLPRFAL.inf /install": + cmd.run: + - shell: powershell + - unless: Get-PrinterDriver -Name 'Dell C2660dn Color Laser PS' + +# add the driver as a printer driver +"Add-PrinterDriver -Name 'Dell C2660dn Color Laser PS'": + cmd.run: + - shell: powershell + - unless: Get-PrinterDriver -Name 'Dell C2660dn Color Laser PS' + +# add the printer +"Add-Printer -Name ClassroomColor -PortName 'http://ucs.sawtooth.claremontmakerspace.org:631/printers/ClassroomColor' -DriverName 'Dell C2660dn Color Laser PS'": + cmd.run: + - shell: powershell + - unless: Get-Printer -Name ClassroomColor diff --git a/top.sls b/top.sls index d2f8a05..f54647f 100644 --- a/top.sls +++ b/top.sls @@ -18,4 +18,5 @@ base: 'G@os:Windows': - enable-wakeonlan - windowsWorkstation + - printers - removeShortcuts