Im trying to run the following line thruogh a zen object:

wmic printer where "PortName LIKE 'ipp%%'" delete

This is to delete all iprint printers. The script works if I run it locally, but once i use a zen object to distribute the script it fails.

The problem is that the %% is left out, and the line that runs is:
wmic printer where "PortName LIKE 'ipp'" delete
And no printers are deleted.

Any idea on how to get the script to run properly?

I'm running

Best regards