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