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

EXE/Script Problem



I've a Problem I've used a script by the aim of a kb post :https://kb.paessler.com/en/topic/62616-can-i-use-prtg-to-monitor-ad-group-membership and this is the error i've got , could you plz help me about that?

Response not wellformed: "(Import-Module : The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory. At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Test2.ps1:5 char:1 + Import-Module ActiveDirectory + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (ActiveDirectory:String) [I mport-Module], FileNotFoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comm ands.ImportModuleCommand Get-ADGroupMember : The term 'Get-ADGroupMember' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Test2.ps1:8 char:17 + $GroupMembers = Get-ADGroupMember $strCriticalGroup -Server $ADWSDC | ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-ADGroupMember:String) [], C ommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException <prtg> <result> <channel>Domain Admins</channel> <value>0</value> </result> <text></text> </prtg> )" (code: PE132)

exe-script-sensor prtg script

Created on Apr 15, 2019 12:49:42 PM

Last change on Apr 15, 2019 12:54:18 PM by  Torsten Lindner [Paessler Support]

2 Replies



Easiest way is - you install RSAT tools on the PRTG server.


Your whole issue is caused by the missing ActiveDirectory PowerShell module/extension.

Hope that helps...


Florian Rossmark


Created on Apr 15, 2019 1:36:26 PM



Use the ADGroupUserCount Custom Sensor.

Sensors | Multi Channel Sensors | Tools | Notifications

Kind regards,

[[http://prtgtoolsfamily.com]] PRTGToolsFamily

Created on Apr 16, 2019 2:46:01 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.