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

Adding WMI Volume with PRTG API Powershell

Votes:

0

We want to add wmi volumes with the prtg api powershell. The command should be something like

$params = new-sensorparameters -rawtype wmivolume -target Get-Device "XXXXXXXX" | Add-Sensor $params

But then you need to add the volumes and this is where we got stuck we want to specify the target. when executing the command below with 'target *' we get all volumes but this is not what we want.

$params = new-sensorparameters -rawtype wmivolume -target * Get-Device "XXXXXXXX" | Add-Sensor $params

powershell prtg prtg-api prtgapi wmi-volume

Created on Apr 23, 2021 10:31:37 AM



Replies

Nobody has replied yet


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.