local luacom = require "luacom"
local FwPolicy2PROGID = "HNetCfg.FwPolicy2"
local FwPolicy2CLSID = luacom.CLSIDfromProgID(FwPolicy2PROGID)
local policy = luacom.CreateObject(FwPolicy2CLSID)
-- Important that profile had interfaces
policy:getExcludedInterfaces(2)
policy:setExcludedInterfaces(2, {'{01C221C0-0000-0000-2E7E-974EF0F8D046}'})
https://github.com/moteus/luacom/commit/0542f4b519fbba8b5469b7201e1a62aa11c7fa9e I found problem with some Microsoft interfaces wich crashes when you try send 1-based arrays. And because VBS uses 0-based arrays I think it should be safer use it. Test example crash with Access violation.
Tracestack is
This example does not crash