New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


EXE/Script Problem

Votes:

0

Your Vote:

Up

Down

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 by  Elahe90 (10) 2 1

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



2 Replies

Votes:

1

Your Vote:

Up

Down

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

https://www.microsoft.com/en-us/download/details.aspx?id=45520

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

Hope that helps...

Regards

Florian Rossmark

www.it-admins.com

Created on Apr 15, 2019 1:36:26 PM by  Florian Rossmark (4,188) 3 2



Votes:

1

Your Vote:

Up

Down

Or......
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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,885) 3 4



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.