Enable duplexer for Classroom HP Printer

This commit is contained in:
Adam Goldsmith 2024-06-12 11:10:05 -04:00
parent 19ec8f9caa
commit 7a1feec74e

View File

@ -26,6 +26,11 @@
- shell: powershell
- unless: Get-Printer -Name '{{ printer | replace('_', ' ') }}'
{% endfor %}
# enable duplexer for Classroom HP
"Set-PrinterProperty -PrinterName 'ClassroomColor HP' -PropertyName Config:DuplexUnit -Value Installed":
cmd.run:
- shell: powershell
- unless: Get-Printer -Name ClassroomColor
- unless:
- if ($(Get-PrinterProperty -PrinterName "ClassroomColor HP" -PropertyName Config:DuplexUnit).value -eq "Installed") { exit 0 } else { exit 1 }