I need a wmic script to delete all printers where the DeviceID
Not Like '%%KM%%'
The following syntax works to delete where like
printer where "DeviceID LIKE '%%KM%%'" delete
when I change to
printer where "DeviceID NOT LIKE '%%KM%%'" delete
I get ERROR:
Description = Invalid query
How should I make this change?