Why does this script BSOD-ize windows ?
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jul 21 05:10:12 PDT 2015
On Tuesday, 21 July 2015 at 11:08:00 UTC, Rikki Cattermole wrote:
> Lastly, this is half good news and half bad news. We have found
> a way[2] through WMI/COM to enable/disable them. Although I've
> never gone the path of COM let alone WMI which could be a
> rather mess to deal with in D. May be easier to use PowerShell
> for this.
WMI is accessible through javascript, e.g.:
var Wmi =
WScript.CreateObject("WbemScripting.SWbemLocator").ConnectServer(".", "root/cimv2");
var processes = Wmi.ExecQuery("select * from win32_process");
More information about the Digitalmars-d-learn
mailing list