Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,此问题中我的 WMI 类不支持 WQL LIKE 运算符。我如何提前或在我写的时候以交互方式告诉我支持/不支持什么?我想在这里坚持使用 Powershell 并避免使用 wmic 等其他解决方案。
我只能找到一处提到 LIKE 不起作用,那就是在旧系统上。LIKE 是在 XP 和 Server 2003 中添加的。它不适用于旧机器。这适用于您从中获取 WMI 对象的机器。