tasklist
Wrapper for the Windows tasklist
command. Returns a list of apps and services with their Process ID (PID) for all tasks running on either a local or a remote computer.
Cleans up and normalizes the data.
Install
$ npm install --save tasklist
Usage
var tasklist = require('tasklist');
tasklist(function (err, data) {
console.log(data);
});
API
See the tasklist
docs for more.
tasklist([options], callback)
options
The system
, username
, password
options are mutually inclusive.
system
Type: string
Name or IP address of a remote computer (do not use backslashes). The default is the local computer.
username
Type: string
User specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.
password
Type: string
Password of the user account for the specified username
.
filter
Type: array
Specify the types of processes to include or exclude. More info.
callback(error, data)
data
Type: array
Related
- taskkill - Wrapper for the Windows
taskkill
command
License
MIT © Sindre Sorhus