wmic wrapper for Node.js
npm install @wraith13/wmictypescript
import wmic from "wmic-node";
const demo = async () =>
{
console.log(wmic("cpu"): ${JSON.stringify(await wmic("cpu"), null, 4)});
};
demo();
`
Reference
$3
`typescript
function wmic(command: command): Promise<{ [key: string]: string }[]>;
`
$3
- "alias"
- "baseboard"
- "bios"
- "bootconfig"
- "cdrom"
- "computersystem"
- "cpu"
- "csproduct"
- "datafile"
- "dcomapp"
- "desktop"
- "desktopmonitor"
- "devicememoryaddress"
- "diskdrive"
- "diskquota"
- "dmachannel"
- "environment"
- "fsdir"
- "group"
- "idecontroller"
- "irq"
- "job"
- "loadorder"
- "logicaldisk"
- "logon"
- "memcache"
- "memorychip"
- "memphysical"
- "netclient"
- "netlogin"
- "netprotocol"
- "netuse"
- "nic"
- "nicconfig"
- "ntdomain"
- "ntevent"
- "nteventlog"
- "onboarddevice"
- "os"
- "pagefile"
- "pagefileset"
- "partition"
- "port"
- "portconnector"
- "printer"
- "printerconfig"
- "printjob"
- "process"
- "product"
- "qfe"
- "quotasetting"
- "rdaccount"
- "rdnic"
- "rdpermissions"
- "rdtoggle"
- "recoveros"
- "registry"
- "scsicontroller"
- "server"
- "service"
- "shadowcopy"
- "shadowstorage"
- "share"
- "softwareelement"
- "softwarefeature"
- "sounddev"
- "startup"
- "sysaccount"
- "sysdriver"
- "systemenclosure"
- "systemslot"
- "tapedrive"
- "temperature"
- "timezone"
- "ups"
- "useraccount"
- "voltage"
- "volume"
- "volumequotasetting"
- "volumeuserquota"
- "wmiset"
How to build
requires: Node.js, TypeScript Compiler
tsc -P . or tsc -P . -w
$3
You can use automatic build. Run Tasks: Allow Automatic Tasks in Folder` command from command palette ( Mac: F1 or Shift+Command+P, Windows and Linux: F1 or Shift+Ctrl+P), and restart VS Code.