tfabris carpal tunnel
Registered: 20/12/1999
Posts: 31627
Loc: Seattle, WA
The only clunky part is using the DOS command line WMIC. But that's just an example to demonstrate the field values. For the actual code I was writing, which was in C# and was making WMI queries directly, it wasn't clunky at all.
I already had a C# function that was querying the NetEnabled property and getting the wrong answer. I merely had to change that to querying the ConfigManagerErrorCode property to get the right answer, and I was done. Not clunky at all.