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
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.