Board logo

标题: [系统相关] wmic命令表达式表达非空 [打印本页]

作者: 小白龙    时间: 前天 21:59     标题: wmic命令表达式表达非空

本帖最后由 小白龙 于 2025-2-3 22:06 编辑

下面的表达式是gpt推理的, 十几轮下来都不能跑通, 应该是 DefaultIPGateway is not null 这个表达有误, 用ds推理改为了"IPEnabled=TRUE AND DefaultIPGateway<>'NULL'" 但仍跑不通, 求路过大佬支招
  1. wmic nicconfig where "IPEnabled=true and DefaultIPGateway is not null" get Description,IPAddress,IPSubnet,DefaultIPGateway /format:csv
复制代码

作者: flashercs    时间: 昨天 00:14

本帖最后由 flashercs 于 2025-2-4 00:15 编辑

无解.DefaultIPGateway 是数组
不要用wmic,如果为了快,用jscript
因为 vbs/wmic 都快退休了




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2