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

PRTG Powershell Script Support

Votes:

0

Your Vote:

Up

Down

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

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



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



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.