Hi Expertise, I need a query which should be run in WMI to know the boot partition. (only through WMI )

Regards, Swapnil


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hi there,

Create "boot_partition.wql" on the corresponding probe under "C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\WMI WQL scripts\" and save the following query in the ".wql" file:

Select Caption FROM Win32_Volume WHERE BootVolume=True

Afterwards add a new WMI Custom String sensor and choose the "boot_partition.wql" script.

This script will display the boot partition in the sensor message. If you expect a certain partition (such as "E:\") as the boot partition, then enter "E" into the "Response Must Include" field in the sensor settings.


Best regards.


Jun, 2017 - Permalink