我需要一个wmic脚本来删除DeviceID
不喜欢'%%KM%%'
以下语法可以删除
之类的内容printer where "DeviceID LIKE '%%KM%%'" delete
当我改为
时printer where "DeviceID NOT LIKE '%%KM%%'" delete
我明白了 ERROR:
Description = Invalid query
我该如何进行此更改?
答案 0 :(得分:1)
尝试:
wmic printer where "deviceid like '%<Name>%'" delete
<强>更新强>
wmic printer where "NOT deviceid like '%<Name>%'" delete