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. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task deletes printer \\myfolder\Brother MFC-9970CDW.
Copy
<AMPRINTER ACTIVITY="delete" DELETESPECIFICPRINTER="\\myfolder\Brother MFC-9970CDW" />