Open jadamones opened 2 months ago
I'm facing the same issue here (Microsoft365DSC 1.24.515.2). When runningStart-DSCConfiguration -Path ... -Wait -Verbose -Force
for the resource ExchangeOnline and I'm having more than two EXO components configured, it stops after around 10 minutes with the error message:
NativeErrorCode : Failed
ErrorData : MSFT_ExtendedStatus
MessageId : HRESULT 0x80041033
ErrorSource :
ErrorType : 0
StatusCode : 0
Message : The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041033
Data : {}
InnerException :
TargetSite : Void ProcessNativeCallback(Microsoft.Management.Infrastructure.Native.OperationCallbackProcessingContext, T, Boolean,
Microsoft.Management.Infrastructure.Native.MiResult, System.String, Microsoft.Management.Infrastructure.Native.InstanceHandle)
StackTrace : at
Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback(OperationCallbackProcessingContext
callbackProcessingContext, T currentItem, Boolean moreResults, MiResult operationResult, String errorMessage, InstanceHandle
errorDetailsHandle)
HelpLink :
Source : Microsoft.Management.Infrastructure
HResult : -2146233088
Also the application event:
Log Name: Application
Source: Application Error
Event ID: 1000
Task Category: (100)
Level: Error
Description:
Faulting application name: wmiprvse.exe, version: 10.0.20348.1, time stamp: 0xda796ffd
Faulting module name: clr.dll, version: 4.8.4718.0, time stamp: 0x65f23849
Exception code: 0xc00000fd
Fault offset: 0x0000000000090fd4
Faulting process id: 0x3cd8
Faulting application start time: 0x01daa79c097e380b
Faulting application path: C:\Windows\system32\wbem\wmiprvse.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 75d73076-9e9a-45c6-bc4f-cbe24764d5e6
Running on
OS Name: Microsoft Windows Server 2022 Standard
OS Version: 10.0.20348 N/A Build 20348
Name Value
---- -----
PSVersion 5.1.20348.2400
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2400
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
@nikcharlebois @andikrueger I've also hit this issue while running my test harness locally, it went through applying almost all resources included in the EXO, Intune, O365, OD, SP and Teams workloads to my test tenant (this step didn't cause any issues) but then it's programmed to call Test-DSCConfiguration on all of those resources and eventually failed the test on EXOSafeAttachmentPolicy
, it worked for other EXO resources before so I don't know why this is happening.
I also have this issue, especially if trying to run the resource on a container. Ive tried increasing the RAM to 8gb but it seems to fail every time. The RAM usage for WMI on my PC increases dramatically (1Gb to over 3Gb), maybe its not releasing resources or handles between workloads or the additional item logging is pushing it too far?
Microsoft365DSC = '1.23.1220.1' - No WMI issues and ADO Green ticks 100% of the time
#Microsoft365DSC = '1.24.612.1' - WMI errors usually on the Security and Compliance module with the unknown HRESULT 0x80041033
I have tried increasing some of the WMI parameters in WSMAN: but to no avail. This is a big issue given it affects DSC versions for months IMO.
Description of the issue
Getting this error when testing Exchange workloads on all ADO agents using the testcompliance.ps1 script or running Test-DSCConfiguration on any machine after updating to version '1.24.424.1'.
Switching back to version 1.24.403.1 and swapping resources affected by breaking changes back seems to resolve the issue. I attempted to debug but it's cumbersome and it seems to fail randomly and not on a specific resource.
I'm getting these errors in the event log when it happens.
Application: wmiprvse.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.OutOfMemoryException
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
Exchange Online
The DSC configuration
No response
Verbose logs showing the problem
Environment Information + PowerShell Version