Printer - Remove

Declaration

<AMPRINTER ACTIVITY="delete" DELETESPECIFICPRINTER="text" />

Description:

Removes a printer from the list of available printers.

Practical Usage

Can be used to delete unused printers. Note that you can't remove a printer if you have items in the print queue.

Parameters

General

Property

Type

Required

Default

Markup

Description

Delete specific printer

Text

Yes

(Empty)

DELETESPECIFICPRINTER="HP LaserJet 6000"

The name of the printer device to delete. The printer must exist on the target system at runtime. Also, you can't remove a printer if you have items in the print queue.

Description

Error Causes

On Error

Example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Delete specific printer "\\myfolder\Brother MFC-9970CDW."

 

<AMPRINTER ACTIVITY="delete" DELETESPECIFICPRINTER="\\myfolder\Brother MFC-9970CDW" />