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)
Add comment