Manage Windows Print and Document Services, printer drivers, TCP/IP ports, print queues and settings backups with Chef custom resources.
Requires Chef Infra or Cinc 18 or later and Windows Server 2016 or later. Version 3 removes the public recipes; see the migration guide.
windows_print_install 'print server'
windows_print_printer 'Office' do
driver_name 'Generic / Text Only'
ports 'Office TCP' => '192.0.2.10'
share_name 'Office'
location 'First floor'
end- windows_print_install: install or remove the print server, Internet Printing, LPD or legacy Distributed Scan role.
- windows_print_driver: install or remove a printer driver.
- windows_print_port: manage a standard TCP/IP printer port and its address.
- windows_print_printer: create, update or remove a print queue.
- windows_print_printer_settings: back up, restore or remove settings files.
Printer deletion retains ports and drivers that may be shared. Backup and restore run when explicitly invoked; use notifications to control when they execute.
Distributed Scan remains limited to older domain-joined servers and does nothing on Server 2019 or later. See the migration guide for platform compatibility.
The testing guide describes ChefSpec and native Windows Kitchen
tests. Examples live in test/cookbooks/test/recipes.
Originally written by Derek Groh and Texas A&M. Maintained by Sous Chefs. See LICENSE and the retained source-file notices.