Skip to content

Desired State Configuration(DSC) module for maintaining a Windows print server.

License

Notifications You must be signed in to change notification settings

limiteddenial/PrintManagementDsc

Repository files navigation

PrintManagementDsc

The PrintManagementDsc module contains DSC resources for deployment and configuration of printers.

Branches

master

Build status Build status

This is the branch containing the latest release - no contributions should be made directly to this branch.

dev

Build status Build status

This is the development branch to which contributions should be proposed by contributors as pull requests.

Change log

A full list of changes in each version can be found in the change log.

Resources

  • PrinterDriver Manages what print drivers are installed on a host
  • Printer Manages printers installed on a host

PrinterDriver

Manages what print drivers are installed on a host.

Parameters for PrinterDriver

  • [String] Ensure (Write): Specifies if the printer should exist or not. { Present | Absent }.
  • [String[]] Name (Required): The desired driver name used in the INF file.
  • [String] Version (Required): Specifies the version of the driver that would be used.
  • [String] Source (Required): The location where the INF file is located to install the driver.
  • [Boolean] Purge (Write): Allows the removal the driver from the driver store after all printers are no longer using it. This is only used when Ensure is set to Absent.

PrinterDriver Examples

Printer

Manages printers installed on a host.

Parameters for Printer

  • [String] Name (Key): The desired name of the printer.
  • [String] Ensure (Write): Specifies if the printer should exist or not. { Present | Absent }.
  • [PortType] PortType (Write): The desired type of printer port needed. The default value is TCPIP. { TCPIP | Papercut | LPR }
  • [String] PortName (Required): The desired port name.
  • [String] Address (Required): The desired address of the printer.
  • [String] DriverName (Required): The desired driver of the printer.
  • [String] LprQueueName (Write): The desired LPR queue name. Used only if PortType is set to LPR.
  • [Boolean] Shared (Write): The desired shared state of the printer. The default value is $true.
  • [String] SNMPCommunity: The desired SNMPCommunity used for SNMP communication. Requires SNMPIndex to also be set. This will enable SNMP on the port The default value is Public.
  • [UInt32] SNMPIndex (Write): The desired index used for SNMP communication. Requires SNMPCommunity to also be set. This will enable SNMP on the port The default value is 1.
  • [String] PermissionsSDDL (Write): The desired permissions of a printer
  • [String] Location (Write): The desired Location property of a printer
  • [String] Comment (Write): The desired Comment property of a printer
  • [Boolean] Published (Write): The desired Published property of a printer. Requires the host is joined to an Active Directory domain. The default value is $false.

Examples Printer

About

Desired State Configuration(DSC) module for maintaining a Windows print server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published