What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Your Vote:

Up

Down

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 by  JeroenDeckers (0) 1



Replies

Nobody has replied yet

Why not be the first?

Please log in or register to enter your reply.


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.