Enable duplexer for Classroom HP Printer
This commit is contained in:
parent
19ec8f9caa
commit
7a1feec74e
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user