Unable to start DSC Configuration (HRESULT 0x80041033)

Tagged: 

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Nitin Gupta Nitin Gupta 2 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47722
    Profile photo of guru
    guru
    Participant

    I'm quite new to DSC. I'm able to create mof files after that in push mode by starting Start-DSCConfiguration cmdlet i'm getting this error.

     PS C:\> Start-DscConfiguration -Path 'c:\' -Wait -Force -ComputerName LocalHost -Verbose
    VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfiguratio
    nManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
    VERBOSE: An LCM method call arrived from computer DHANUSH-PC with user sid S-1-5-21-2953993634-1734277334-2268608716-1001.
    VERBOSE: [DHANUSH-PC]: LCM:  [ Start  Set      ]
    The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041033 
        + CategoryInfo          : ResourceUnavailable: (root/Microsoft/...gurationManager:String) [], CimException
        + FullyQualifiedErrorId : HRESULT 0x80041033
        + PSComputerName        : LocalHost
     
    VERBOSE: Operation 'Invoke CimMethod' complete.
    VERBOSE: Time taken for configuration job to complete is 2.515 seconds
    

    My DSC code is

    configuration ConfigName {
        Node $ComputerName {
    
            WindowsFeature IIS{
                Name = 'web-server'
                Ensure = 'Absent'
            }
        }
    }
    $computername = 'LocalHost'
    ConfigName -OutputPath c:\
    

    Iam not able to do any kind of DSC tasks because of this error. Even for empty ones. Please help me on this

    #47731
    Profile photo of Stan Hristov
    Stan Hristov
    Participant

    Hi,

    Have you started the PS console as administrator?

    Best regards,
    Stan

    #47733
    Profile photo of guru
    guru
    Participant

    Yes, the console is in elevated mode.

    #47781
    Profile photo of Arie H
    Arie H
    Participant

    hmm what OS is the computer your running this on ?

    #47801
    Profile photo of Nitin Gupta
    Nitin Gupta
    Participant

    This error generally indicates that LCM failed to initialize. LCM will try to initialize by doing the following:
    1) Load all files under system32\configuration folder. This contains LCM core files and File provider.
    2) Load all files under Program Files\WindowsPowerShell\Configuration folder.

    Most likely LCM failed to load some of these files either due to access issue or there are some extra files that are not supposed to be there. Try to compare these folder from a working machine. Also check event etw for any additional log.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.