M
M
menartIsH2017-06-16 13:23:55
JavaScript
menartIsH, 2017-06-16 13:23:55

How to execute a wmi request in javascript?

how to translate such a request into js
wmic useraccount where name='adm' get sid
Thank you all in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2017-06-16
@fox_12

https://www.npmjs.com/package/ms-wmic
something like

wmic.execute('useraccount where name="adm" get sid', function (err, stdOut) {
    if (err) {
        console.error(err);
    }
    
    console.log(stdOut);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question