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