Setting up the Active Directory Assessment
Question
Wednesday, March 20, 2019 10:43 AM
Following instruction in doc Setting up the Active Directory Assessment to configure the AD Assessment. When inputting command Add-ADAssessmentTask -WorkingDirectory D:\OMS\AD_Assessment the below error is thrown:
Import-Module : The specified module 'C:\Program Files\Microsoft Monitoring
Agent\Agent\PowerShell\Microsoft.PowerShell.Oms.Assessments' was not loaded because no valid module file was found in
any module directory.
Upon speaking with a Microsoft representative, it has become apparent the following module path doesn't exist C:\Program Files\Microsoft Monitoring Agent\Agent\PowerShell\Microsoft.PowerShell.Oms.Assessments
Server is 2008 R2 with PowerShell 5.1
All replies (2)
Wednesday, March 20, 2019 11:04 AM âś…Answered | 1 vote
Resolved.
The ADAssessment was setup by the Azure subscription owner, who also provided me with rights.
After logging in to services.hub as myself and adding the AD assessment, the powershell module became immediately available.
Wednesday, March 20, 2019 10:50 AM
Hi,
Try to import the required module by running the following cmdlet and try again
Import-Module $env:ProgramFiles\'Microsoft Monitoring Agent\Agent\PowerShell\Microsoft.PowerShell.Oms.Assessments\Microsoft.PowerShell.Oms.Assessments.dll'
Regards From: Exchange Online | World of Cloud Computing