Platforms to show: All Mac Windows Linux Cross-Platform

Back to WMIObjectMBS class.

WMIObjectMBS.GetNames as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the names of all properties in this object.

Some examples using this method:

WMIObjectMBS.GetProperty(Name as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a variant.

Objects, booleans, strings and numbers are supported directly. Also string arrays in version 13.1.
Other values are casted to string first.

Added support for integer, double, single and boolean arrays in v25.4.

If you find a type we don't handle, please let us know. See GetPropertyType() or GetPropertyTypeString().

WMIObjectMBS.GetPropertyBoolean(Name as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an integer.

Value must be of a numeric type.

WMIObjectMBS.GetPropertyBooleanArray(Name as string) as Boolean()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a boolean array.

If values are not Boolean, we cast them to Boolean.

WMIObjectMBS.GetPropertyDouble(Name as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as a double.

Value must be of a numeric type.

WMIObjectMBS.GetPropertyDoubleArray(Name as string) as Double()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Double array.

If values are not Double, we cast them to Double.

WMIObjectMBS.GetPropertyInt16Array(Name as string) as Int16()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Int16 array.

If values are not Int16, we cast them to Int16.

WMIObjectMBS.GetPropertyInt32Array(Name as string) as Int32()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Int32 array.

If values are not Int32, we cast them to Int32.

WMIObjectMBS.GetPropertyInt64(Name as string) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as an integer value.

WMIObjectMBS.GetPropertyInt64Array(Name as string) as Int64()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Int64 array.

If values are not Int64, we cast them to Int64.

WMIObjectMBS.GetPropertyInt8Array(Name as string) as Int8()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Int8 array.

If values are not Int8, we cast them to Int8.

WMIObjectMBS.GetPropertyInteger(Name as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an integer.
Example
Var w as WindowsWMIMBS // your WMI object

MsgBox str(w.GetPropertyInteger("MaxClockSpeed")) // uint32

Value must be of a numeric type.

WMIObjectMBS.GetPropertyObject(Name as string) as WMIObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an object.

Value must be of an IUnknown type.

Some examples using this method:

WMIObjectMBS.GetPropertySingleArray(Name as string) as Single()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a Single array.

If values are not Single, we cast them to Single.

WMIObjectMBS.GetPropertyString(Name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a string.
Example
Var w as WindowsWMIMBS
MsgBox w.GetPropertyString("Name") // string

Some examples using this method:

WMIObjectMBS.GetPropertyStringArray(Name as string) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 13.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a string array.
Example
Var w as WindowsWMIMBS
MsgBox join(w.GetPropertyStringArray("Name"), ", ")

WMIObjectMBS.GetPropertyType(Name as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets the type of a property.

You can send in the value you get here and the plugin can be changed to handle this type, too. Currently only numbers and strings are handled.

WMIObjectMBS.GetPropertyTypeString(Name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets the type of a property as a string.

For example type 8 is returned as "string".

WMIObjectMBS.GetPropertyUInt16Array(Name as string) as UInt16()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a UInt16 array.

If values are not UInt16, we cast them to UInt16.

WMIObjectMBS.GetPropertyUInt32Array(Name as string) as UInt32()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a UInt32 array.

If values are not UInt32, we cast them to UInt32.

WMIObjectMBS.GetPropertyUInt64Array(Name as string) as UInt64()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a UInt64 array.

If values are not UInt64, we cast them to UInt64.

WMIObjectMBS.GetPropertyUInt8Array(Name as string) as UInt8()   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 25.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a UInt8 array.

If values are not UInt8, we cast them to UInt8.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...