diff --git a/lib/util.js b/lib/util.js index 622531d..568625d 100644 --- a/lib/util.js +++ b/lib/util.js @@ -310,7 +310,7 @@ function wmic(command, options) { return new Promise((resolve) => { process.nextTick(() => { try { - exec(getWmic() + ' ' + command, options, function (error, stdout) { + exec(process.env.WINDIR + '\\system32\\chcp.com 65001 | ' + getWmic() + ' ' + command, options, function (error, stdout) { resolve(stdout, error); }).stdin.end(); } catch (e) {