Pause & resume windows processes with Node
A node wrapper for PsSuspend
ATTENTION: By running this module you'll be be programmatically accepting the EULA of PsSuspend. Please be sure to read the Eula here before proceeding.
Client: Windows Vista and higher.
Server: Windows Server 2008 and higher.
Install WinPause via NPM:
npm i win-pause
If you already have PsSuspend on the machine:
import { pause, resume } from 'win-pause';
const binPath = 'my-path/pssuspend.exe';
const pid = 9020;
pause(pid, binPath)
.then(() => console.log('successfully paused!'));
resume(pid, binPath)
.then(() => console.log('successfully resumed!'));
Otherwise:
import { pause, resume, downloadPsSuspend } from 'win-pause';
const pid = 9020;
downloadPsSuspend()
.then(() => {
pause(pid)
.then(() => console.log('successfully paused!'));
resume(pid)
.then(() => console.log('successfully resumed!'));
})
npm test