Share via

Does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.

Anonymous
2023-08-02T09:28:57+00:00

Hello Team,

Hope you are doing well!

While deploying the DSC configuration getting below error, please help me figure out.

InvalidOperation: The PowerShell DSC resource MSFT_AADGroupsNamingPolicy from module <Microsoft365DSC,1.23.726.1> does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.

Checklist:

  1. Exported the configuration file from source tenant using Export-M365DSCConfiguration -Components @("AADGroupsNamingPolicy") -Credential $Credential with no issue.
  2. Compile the configuration file using .\M365TenantConfig.ps1 -Credential $Credential with no issue.
  3. While the deploying the MOF file [Start-DSCConfiguration -Path C:\M365DSC\AADUser\Source\M365TenantConfig\ -Wait -Force -Verbose] getting above error.

Regard,

Kadir Ansari

Microsoft 365 and Office | Install, redeem, activate | For education | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-08-02T11:43:51+00:00

    Ok thank you...!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-08-02T10:24:43+00:00

    Dear Md. Kadir Ansari,

    Good day! Thank you for posting to Microsoft Community. We are happy to assist you.

    As per the description you have shared, we understand that you have a concern with deploying Desire State Configuration (DSC).

    We do understand your query here but, as your query is related to windows PowerShell and since Microsoft has specific support channel resource for certain different support scope and attributes, we are belong to Microsoft Forum Community mainly focused on Micrsoft 365 Exchange online only. Therefore, we provide some limited knowledge about some aspects of Windows PowerShell related scenarios. For Windows PowerShell, we have a dedicated team with special expertise in Windows PowerShell queries, so would you mind to connect and place your query on our dedicated Windows Server PowerShell - Microsoft Q&A? We believe they will give you accurate and efficient solution for your concern.

    Thank you for your precious time and understanding. For other concerns, please do not hesitate to add your post in the Microsoft Community Team.  

    Stay safe and healthy. Have a nice day!

    Sincerely,

    Libeamlak | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments