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 Script Support



I wanted to know when new members are added to the domain admins group, or any existing member deleted from the domain admin group.

Is it possible to put in something like?

if return value user1, user2, user3 value = 1 Matches OK
if anything, else value = 0 Error

Then we can use a lookup file to go, if 1 the check is green, if 0 the check is red. The goal is to set it, so we are checking the actual account names in the domain admin group not just the number of accounts. If its possible, Can you please send me some PowerShell script examples.

powershell prtg scipts support

Created on Jul 8, 2021 12:49:41 AM

Last change on Jul 8, 2021 8:17:37 AM by  Felix Wiesneth [Paessler Support]

1 Reply



Hello there,

As per your scenario, you need to update the counter manually every time when you add/delete a contact. It would rather to have the parameters groupName and minCount to check against. But, it's come down to Get-ADGroupMember -Identity "Administrators").Count.

Besides that, you also need to RSAT for this though: https://docs.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/remote-server-administration-tools

I am afraid that, I do not have any PS script example for this.

Created on Jul 13, 2021 1:51:14 AM by  Himanshu Bhatt [Paessler Support]

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.