---
date_published: 2026-08-13
date_modified: 2026-08-13
canonical_url: https://metricshub.org/community-connectors/connectors/winstoragespaces.html
---

 [Supported Platforms](../supported-platforms.html)   [Connectors Directory](../connectors-directory.html)

# Windows Storage Spaces (WMI)

## Description

This connector enables the monitoring of physical disks through the Windows Storage Management's WMI provider. It supports all disk types, including disks on NVMe bus and NVDIMM. When available, temperature sensors are also discovered and monitored.

This connector supersedes: 

- [WBEMGenDiskNT](wbemgendisknt.html)
- [DiskPart](diskpart.html)

[community](tags/community.html) [hardware](tags/hardware.html) [windows](tags/windows.html)

[Source](https://github.com/metricshub/community-connectors/tree/main/src/main/connector/hardware/WinStorageSpaces/WinStorageSpaces.yaml)

## Target

Typical platform: **[Microsoft Windows](platforms/microsoft-windows.html)**

Operating system: **Microsoft Windows**

## Prerequisites

Leverages: **Windows Storage Spaces**

Technology and protocols: **WMI/WinRM**

## Examples

### CLI

```batch
metricshub HOSTNAME -t win -c +WinStorageSpaces --wmi -u USER
```

### metricshub.yaml

```yaml
resourceGroups:
  <RESOURCE_GROUP>:
    resources:
      <HOSTNAME-ID>:
        attributes:
          host.name: <HOSTNAME> # Change with actual host name
          host.type: win
        connectors: [ +WinStorageSpaces ] # Optional, to load only this connector
        protocols:
          wmi:
            username: <USERNAME> # Change with actual credentials
            password: <PASSWORD> # Encrypted using metricshub-encrypt
```

## Connector Activation Criteria

The **Windows Storage Spaces (WMI)** connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

- Operating System is **Microsoft Windows**
- The **WMI query** below to the managed host succeeds: 
  
    - Namespace: `root\Microsoft\Windows\Storage`
    - WQL Query: `SELECT ObjectId FROM MSFT_Volume`

## Metrics

| Type | Collected Metrics | Specific Attributes |
| --- | --- | --- |
| **disk_controller** | - `hw.status{hw.type="disk_controller", state="present"}` | - `hw.parent.type` - `id` - `model` - `name` |
| **logical_disk** | - `hw.logical_disk.limit` - `hw.logical_disk.usage{state="free"}` - `hw.logical_disk.usage{state="used"}` - `hw.status{hw.type="logical_disk", state="degraded\|failed\|ok"}` - `hw.status{hw.type="logical_disk", state="present"}` | - `hw.parent.type` - `id` - `info` - `name` - `type` |
| **physical_disk** | - `hw.errors{hw.type="physical_disk"}` - `hw.physical_disk.endurance_utilization{state="remaining"}` - `hw.physical_disk.size` - `hw.status{hw.type="physical_disk", state="degraded\|failed\|ok"}` - `hw.status{hw.type="physical_disk", state="predicted_failure"}` - `hw.status{hw.type="physical_disk", state="present"}` | - `firmware_version` - `hw.parent.id` - `hw.parent.type` - `id` - `name` - `serial_number` - `vendor` |
| **temperature** | - `hw.status{hw.type="temperature", state="present"}` - `hw.temperature` - `hw.temperature.limit{limit_type="high.critical"}` - `hw.temperature.limit{limit_type="high.degraded"}` | - `hw.parent.type` - `id` - `name` - `sensor_location` |
