Printer - Remove

Declaration

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

Related Topics   

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.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

Description

This sample task deletes printer \\myfolder\Brother MFC-9970CDW.

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