WMIQuery.PropertyValue
----------------------

Queries the value of the property.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMIQuery](component_WMIQuery.md) | [5.2](newinversion52.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMIQuery.PropertyValue"; WMIQueryRef; Name ) 

**MBS**( **"WMIQuery.PropertyValue";** /\* Queries the value of the property. \*/  
**$WMIQueryRef**; /\* The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md).e.g. $ref \*/   
**$Name**) /\* The name of the property to query.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WMIQueryRef | The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md). | $ref |
| Name | The name of the property to query. | "test" |

### Result

Returns value or error.

### Description

Queries the value of the property.  
The plugin returns text and number types as text or numbers.  
Other data types are tried to convert to text.  
A special handling is adde for Arrays of Int32 and Text to return them as lists.  
If you find an unsupported property type, please tell us, so we can add it here.  
### See also

- [WMIQuery.Connect](WMIQueryConnect.md)
- [WMIQuery.New](WMIQueryNew.md)
- [WMIQuery.PropertyNames](WMIQueryPropertyNames.md)
- [WMIQuery.PropertyType](WMIQueryPropertyType.md)
- [WMIQuery.Release](WMIQueryRelease.md)

### Release notes

- **Version 15.5**
    - Improved [WIA.DevicePropertyValue](https://www.mbsplugins.eu/WIADevicePropertyValue.shtml), [WIA.ItemPropertyValue](https://www.mbsplugins.eu/WIAItemPropertyValue.shtml) and [WMIQuery.PropertyValue](https://www.mbsplugins.eu/WMIQueryPropertyValue.shtml) to better return various numeric array types.

### Example Databases

- [Win Only/WMI Query](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WMI%20Query.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 15.5pr2](https://www.mbsplugins.de/archive/2025-10-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd June 2015 , last changed 9th November 2021

  
[WMIQuery.PropertyType](WMIQueryPropertyType.md) - [WMIQuery.Query](WMIQueryQuery.md)

[HTML Version](WMIQueryPropertyValue.shtml)