Reader Scott points us toward the lesser-known but very handy Windows Management Instrumentation Command-line (WMIC) tool. It's a scripting interface that "simplifies the use of Windows Management ...
WMIC is a powerful tool that lets you query Windows Management Instrumentation (WMI) providers directly from the command line or using batch files, and if you’re an administrator then it’s well worth ...