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.