What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

what is query to know boot partition of windows server through WMI

Votes:

0

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

Regards, Swapnil

snmp windows wmi

Created on Jun 19, 2017 1:54:38 PM



1 Reply

Votes:

0

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.

Created on Jun 20, 2017 12:58:11 PM by  Dariusz Gorka [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.