# wmic

> Wrapper around the WMIC Windows command interface.

Latest version **1.1.1** (published 2022-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install wmic
pnpm add wmic
yarn add wmic
bun add wmic
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-03-12 |
| First published | 2014-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Tomás Pollak |
| Maintainers | tomas |

## Links

- npm: https://www.npmjs.com/package/wmic
- Repository: https://github.com/tomas/wmic
- Homepage: https://github.com/tomas/wmic#readme
- Issues: https://github.com/tomas/wmic/issues
- npm.io page: https://npm.io/package/wmic

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^3.2.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.5.0

## Recent versions

- 1.1.1 (latest) — 2022-03-12
- 1.1.0 — 2022-03-11
- 1.0.1 — 2021-08-20
- 0.4.1 — 2021-08-20
- 1.0.0 — 2021-04-23
- 0.5.0 — 2020-08-06
- 0.4.0 — 2020-01-21
- 0.3.0 — 2016-12-16
- 0.2.0 — 2016-07-19
- 0.1.0 — 2016-05-27
- 0.0.7 — 2014-10-04
- 0.0.6 — 2014-09-29
- 0.0.5 — 2014-08-24
- 0.0.4 — 2014-08-24
- 0.0.3 — 2014-08-12
- … 2 more at https://npm.io/package/wmic/versions

## README

# wmic

Wrapper around the Windows WMIC interface for Node.js.

## Example

    var wmic = require('wmic');
    
    // equivalent of 'wmic nic get list'
    wmic.get_list('nic', function(err, nics) {
      // console.log(err || nics);
    })

## Usage

### wmic.get_value(section, value, conditions, callback)

Returns a single value from wmic, for example to get the hostname:

    wmic.get_value('computersystem', 'name', null, function(err, value) {
      console.log(value) // Your Hostname
    })

### wmic.get_values(section, value, conditions, callback)

Returns an array of values from wmic, for example to list hard drives:

    wmic.get_values('logicaldisk', 'name, volumename', null, function(err, values) {
      console.dir(values) // An array of disks
    })

## Credits

Written by Tomas Pollak, with the help of contributors.
    
## Small print

(c) Fork Ltd, MIT licensed.

---
_Source: https://npm.io/package/wmic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
