Set up ClassroomColor printer driver

This commit is contained in:
Adam Goldsmith 2022-10-05 14:30:38 -04:00
parent b8b7f08afb
commit e28ec5c8f5
2 changed files with 18 additions and 0 deletions

17
printers.sls Normal file
View File

@ -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

View File

@ -18,4 +18,5 @@ base:
'G@os:Windows':
- enable-wakeonlan
- windowsWorkstation
- printers
- removeShortcuts