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
I am exporting the DLP policies using an Enterprise cdx environment. There is nothing custom in the policies.
Verbose logs showing the problem
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters,''methodName' =SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer ADAMS-ROG-X13 with user sid
S-1-12-1-2222815654-1275822311-3203297921-1732033822.
VERBOSE: [ADAMS-ROG-X13]: LCM: [ StartSet ]
VERBOSE: [ADAMS-ROG-X13]: LCM: [ EndSet ]
The PowerShell DSC resource MSFT_SCDLPCompliancePolicy from module <Microsoft365DSC,1.24.515.2> does not exist at the
PowerShell module path nor is it registered as a WMI DSC resource.
+ CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : DscResourceNotFound
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 0.909 seconds
I got a similar bug.
{ The term 'Get-Label' 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 Get-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.515.2\DscResources\MSFT_SCSensitivityLabel\MSFT_SCSensitivityLabel.psm1: line 251
Other modules as EXO or AzureAD have no errors. Only "Security and Compliance".
Description of the issue
I have been able to successfully export Compliance Policies using the command;
Export-M365DSCConfiguration -Components @("SCDLPCompliancePolicy", "SCDLPComplianceRule") -Credential $Credential
Generate the MOF file by running;
.\M365TenantConfig.ps1 -Credential $Credential
But I am seeing an error upon trying to import the configuration using;
Start-DscConfiguration -Path C:\temp\dlp\M365TenantConfig\ -Wait -Verbose -Force
Running Get-DscResource -Module Microsoft365DSC does return both SCDLP resources.
PowerShell SCDLPCompliancePolicy Microsoft365DSC 1.24.515.2
PowerShell SCDLPComplianceRule Microsoft365DSC 1.24.515.2
Microsoft 365 DSC Version
1.24.515.2
Which workloads are affected
Security & Compliance Center
The DSC configuration
I am exporting the DLP policies using an Enterprise cdx environment. There is nothing custom in the policies.
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: