Anyone using WindowsWMIMBS?
I’m trying the “Win\USB Stick To Drive Letter” example and the WQL SelectQuery is failing with error -2147217405, which indicates access denied.
I have verified that call WindowsWMIMBS.InitSecurity(false) is present in App.Open.
dim w1 as new WindowsWMIMBS
var b as boolean = w1.ConnectServer("root\cimv2") //This works fine, b is true
b = w1.query("WQL", "select * from Win32_DiskDrive where InterfaceType='USB'")
//b is now false because Query has failed with error -2147217405 (0x80041003),
//which is a permissions issue
Anyone have any insights as to what might be wrong?
8 posts - 3 participants