You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DSC configuration that is used to reproduce the issue (as detailed as possible)
$New-DistributionGroup -name "SingleQuote'DistributionGroup"$distributionGroup=Get-DistributionGroup-Filter "Name -eq '$Name'"-ErrorAction Stop
Export-M365DSCConfiguration-CertificateThumbprint X -ApplicationId X -TenantId X -Mode Full -Components @("EXODistributionGroup")
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
Details of the scenario you tried and the problem that is occurring
When exporting EXODistributionGroup if it contains a single quote in it then it will cause an error.
Verbose logs showing the problem
N/A (error)
Suggested solution to the issue
Escape with double quotes :
$distributionGroup = Get-DistributionGroup -Filter "Name -eq ""$Name""" -ErrorAction Stop
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
OsName : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage : en-US
OsMuiLanguages : {en-US, en-GB}
The text was updated successfully, but these errors were encountered: