---
date_published: 2026-08-13
date_modified: 2026-08-13
canonical_url: https://metricshub.org/community-connectors/connectors/wbemgendisknt.html
---

 [Supported Platforms](../supported-platforms.html)   [Connectors Directory](../connectors-directory.html)

# WMI - Disks

## Description

This connector discovers and monitors S.M.A.R.T.-enabled disks that are directly handled by Windows through the WMI service.

This connector is superseded by: 

- [WinStorageSpaces](winstoragespaces.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/WBEMGenDiskNT/WBEMGenDiskNT.yaml)

## Target

Typical platform: **[Microsoft Windows](platforms/microsoft-windows.html)**

Operating system: **Microsoft Windows**

## Prerequisites

Leverages: **WMI**

Technology and protocols: **WMI/WinRM**

## Examples

### CLI

```batch
metricshub HOSTNAME -t win -c +WBEMGenDiskNT --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: [ +WBEMGenDiskNT ] # Optional, to load only this connector
        protocols:
          wmi:
            username: <USERNAME> # Change with actual credentials
            password: <PASSWORD> # Encrypted using metricshub-encrypt
```

## Connector Activation Criteria

The **WMI - Disks** 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 Windows service **WINMGMT** is running
- The **WMI query** below to the managed host succeeds: 
  
    - Namespace: `root\WMI`
    - WQL Query: `SELECT InstanceName FROM MSStorageDriver_FailurePredictStatus WHERE Active=TRUE`
    - Result contains: `\(^[^M]...\)\|\(^.[^P]..\)\|\(^..[^I].\)\|\(^...[^O]\)` (regex)

## Metrics

| Type | Collected Metrics | Specific Attributes |
| --- | --- | --- |
| **disk_controller** | - `hw.status{hw.type="disk_controller", state="present"}` | - `controller_number` - `hw.parent.type` - `id` - `model` - `vendor` |
| **physical_disk** | - `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"}` | - `hw.parent.id` - `hw.parent.type` - `id` - `name` - `vendor` |
