-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add-ConfigurationDataEntry is not recognized as the name of the cmdlet error when running Export-M365DSCConfiguration cmdlet in Microsoft 365DSC module. #5431
Comments
@risetostar Did you run |
Hi FabienTschanz, Uninstalled and reinstalled the M365DSCModule. Install-Module -Name ReverseDSC |
Testing out m365DSC version 1.24.1113.1. Fresh install. Trying with teams. Same error as @risetostar export-m365DSCConfiguration -ApplicationId "90d..." -CertificateThumbprint "21..." -TenantId M365x403.onmicrosoft.com -Components @("TeamsAudioConferencingPolicy") -DebuggPolicy") -Debug Authentication methods specified:
Partial Export file was saved at: C:\Users\bsabadi\AppData\Local\Temp\c319fe96-45a3-4c2b-832e-7c3a2ce85fc5.partial.ps1 |
I'll spin up a test machine and check. |
@bsj17 @risetostar I was able to successfully export a configuration using the following lines of code in an elevated Windows PowerShell (not PowerShell 7 / Core): Install-Module Microsoft365DSC -Force
Set-ExecutionPolicy Bypass
Update-M365DSCModule
# Import certificate - No PowerShell command
Export-M365DSCConfiguration -Components "IntuneFirewallPolicyWindows10" -Path "C:\testbed" -ApplicationId <applicationId> -TenantId abc.onmicrosoft.com -CertificateThumbprint <thumbprint> And that's it. Fresh from a Windows sandbox environment, no additional things.
@risetostar Also, |
Dear Fabien Tschanz |
@risetostar Glad you got it working. Can you therefore close the issue? Thank you. |
Description of the issue
We have updated the versions of the following modules.
Install-Module -Name ReverseDSC
Install-Module -Name MSCloudLoginAssistant
Install-Module Microsoft.Graph -Scope CurrentUser
Install-module microsoft.graph, microsoft.graph.beta
Install-Module -Name PSDesiredStateConfiguration -Repository PSGallery -MaximumVersion 2.99
Connect-MgGrap
Connect-MgGraph
Install-module microsoft.graph, microsoft.graph.beta
We have uninstalled and installed every possible ways but unfortunately the error remain same
Exception: The term 'Add-ConfigurationDataEntry' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
it would be greatly appreciated if anyone can suggest or assist on this issue.
Microsoft 365 DSC Version
1.24.1113 Microsoft365DSC
Which workloads are affected
Exchange Online
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: