【发布时间】:2022-12-28 00:49:57
【问题描述】:
I am trying to parse the output of:
wmic copmutersystem
and
net.exe config workstation
using PowerShell to get an object as Key/Value pair and/or convert it to JSON String.
I know there is a PowerShell equivalent command:
Get-CimInstance -Class Win32_computersystem
But the ask here is to figure out how to use PowerShell to parse a similar output for wmic CMD line.
【问题讨论】:
标签: json powershell parsing wmi wmic