Windows Server: Print
Summary
This module contains actions for viewing & managing printers, printer ports, & print drivers on a Windows Server.
Actions
windows_server.print.
add_port
Add a printer port.
Minimum Plugin Version: 5.3.0
Input
-
windows_server: a WindowsServer
-
name: name of the printer port (including the ':' prefix if required)
-
ip_address: optional port IP address if adding a network port
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 |
|
windows_server.print.
add_printer
Add a printer.
Minimum Plugin Version: 6.1.0
Input
-
windows_server: a WindowsServer
-
name: name of the printer
-
driver: name of the print driver
-
port: name of the port to use
-
shared: set to
true
to share the printer on the network (defaults tofalse
) -
share_name: optional name to give the printer if shared is
true
(defaults to the supplied name)
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 |
|
windows_server.print.
display_drivers
Display print drivers in a table.
The table will have the following columns:
- Name
- Manufacturer
- Environment
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
drivers: any number of PrintDrivers
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 9 |
|
windows_server.print.
display_ports
Display printer ports in a table.
The table will have the following columns:
- Name
- Description
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
ports: any number of PrinterPorts
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 9 |
|
windows_server.print.
display_printers
Display printers in a table.
The table will have the following columns:
- Name
- Port
- Shared
- Published
- Status
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
printers: any number of Printers
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 9 |
|
windows_server.print.
get_drivers
Get all print drivers installed on the supplied Windows Server.
Minimum Plugin Version: 5.3.0
Input
- windows_server: a WindowsServer
Output
A list of PrintDrivers.
Example
1 2 3 4 |
|
windows_server.print.
get_ports
Get all printer ports in use on the supplied Windows Server.
Minimum Plugin Version: 5.3.0
Input
- windows_server: a WindowsServer
Output
A list of PrinterPorts.
Example
1 2 3 4 |
|
windows_server.print.
get_printers
Get all printers installed on the supplied Windows Server.
Minimum Plugin Version: 5.3.0
Input
- windows_server: a WindowsServer
Output
A list of Printers.
Example
1 2 3 4 |
|
windows_server.print.
port_in_use
Determine if the supplied printer port is in use.
Minimum Plugin Version: 5.3.0
Input
-
windows_server: a WindowsServer
-
name: name of the printer port
Output
A boolean is outputted by this action:
-
true
if the port is in use -
false
if the port is not in use
Example
1 2 3 4 5 |
|
windows_server.print.
remove_printer
Remove a printer.
Minimum Plugin Version: 5.3.0
Input
-
windows_server: a WindowsServer
-
name: name of the printer
Output
Nothing is outputted by this action.
Example
1 2 3 4 |
|
windows_server.print.
select_driver
Display print drivers in a table & prompt the task operator to select one.
The table will have the following columns:
- Name
- Port
- Shared
- Published
- Status
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
drivers: any number of PrintDrivers
Output
A single PrintDriver.
Example
1 2 3 4 5 6 7 8 9 10 |
|
windows_server.print.
select_drivers
Display print drivers in a table & prompt the task operator to make a selection.
The table will have the following columns:
- Name
- Manufacturer
- Environment
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
drivers: any number of PrintDrivers
-
minimum: the minimum number of selections
-
maximum: the maximum number of selections
Output
A Selection containing:
-
total: the number of selected PrintDrivers
-
all: a list of selected PrintDrivers
-
first: the first selected PrintDriver
Example
1 2 3 4 5 6 7 8 9 10 |
|
windows_server.print.
select_port
Display printer ports in a table & prompt the task operator to select one.
The table will have the following columns:
- Name
- Description
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
ports: any number of Printers
Output
A single Printer.
Example
1 2 3 4 5 6 7 8 9 10 |
|
windows_server.print.
select_ports
Display printers in a table & prompt the task operator to make a selection.
The table will have the following columns:
- Name
- Description
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
ports: any number of PrinterPorts
-
minimum: the minimum number of selections
-
maximum: the maximum number of selections
Output
A Selection containing:
-
total: the number of selected PrinterPorts
-
all: a list of selected PrinterPorts
-
first: the first selected PrinterPort
Example
1 2 3 4 5 6 7 8 9 10 |
|
windows_server.print.
select_printer
Display printers in a table & prompt the task operator to select one.
The table will have the following columns:
- Name
- Port
- Shared
- Published
- Status
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
printers: any number of Printers
Output
A single Printer.
Example
1 2 3 4 5 6 7 8 9 10 |
|
windows_server.print.
select_printers
Display printers in a table & prompt the task operator to make a selection.
The table will have the following columns:
- Name
- Port
- Shared
- Published
- Status
Minimum Plugin Version: 5.3.0
Input
-
text: the title of the table
-
printers: any number of Printers
-
minimum: the minimum number of selections
-
maximum: the maximum number of selections
Output
A Selection containing:
Example
1 2 3 4 5 6 7 8 9 10 |
|