Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: ObjectType Add See Key Qualifier Property WMI True @True 1 -1
oDataObject.Properties_("Account").Qualifiers_.add "key" , TrueBut I can't set the "key" qualifier in WinBatch :
oSWbemLocator = ObjectCreate("WbemScripting.SWbemLocator") oSWbemServices = oSWbemLocator.ConnectServer("", "root\CIMV2") oDataObject = oSWbemServices.Get oDataObject.Path_.Class = "BSC_Custom" oDataObject.Properties_.add ("Account" , 8) oDataObject.Properties_("Account").Qualifiers_.add("Key","TRUE") oDataObject.Put_I tried "TRUE", True, @TRUE, -1, 1, etc., but I can't set the "Key" qualifier in WMI. I can add the "Account" property OK without setting it as the "key", I just have problems marking the property with the "Key" qualifier.
Any help is appreciated.
oDataObject.Properties_("Account").Qualifiers_.add("Key",ObjectType("BOOL", @TRUE))
Article ID: W18464
Filename: Add Key Qualifier.txt
File Created: 2012:06:22:09:20:16
Last Updated: 2012:06:22:09:20:16