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

PRTG Powershell export list of Devices/Hosts of a specific Group/Probe

Votes:

0

What I need: a list of hosts of a specific group/probe via Powershell

With "Get-Device | ft host" I get a list of all hosts and can export them, but I need a list of hosts only of a specific group/probe. Does anyone have an idea?

api export powershell prtg

Created on Jun 29, 2021 12:54:17 PM



1 Reply

Accepted Answer

Votes:

1

Hi jostp,

From the sounds of things you may be using PrtgAPI - note that PrtgAPI is a third party product and is not supported by Paessler, as such for any queries regarding PrtgAPI please ask these on the GitHub issues page, rather than the Paessler forums

In order to retrieve devices from specific groups or probes using PrtgAPI, simply retrieve those groups/probes first and then pipe these to `Get-Device`

# Get all devices from the "Servers" group
Get-Group Servers | Get-Device
# Get all devices from all probes whose name contains "london" or "wales"
Get-Probe *london*,*wales* | Get-Device

Regards,

lordmilko

Created on Jun 29, 2021 2:15:18 PM




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.