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