1. 查询内存条
wmic path Win32_PhysicalMemory get /value | findstr "Capacity="
2. 查询DNS
netsh interface ip show dnsservers|findstr "[0-9]*\.[0-9]*\."
3. powershell 调用CMD
cmd /c "wmic path Win32_PhysicalMemory get /value | findstr "Capacity=""
cmd /c "netsh interface ip show dnsservers|findstr "[0-9]*\.[0-9]*\.""