Playing with SetupAPI and PnP Configuration Manager APIs. Poke me if you find it useful.