I’m hoping someone can help me with this as my searching for an answer has turned up nothing.
I’m writing a custom DSC resource for managing XML files for configuring an internal application. I’ve created two resources which I’ve deployed to a test server with WMF 4.0. When I push a configuration to the server I get the following error.
PowerShell Desired State Configuration failed to register MOF file cXML using Mofcomp.exe during discovery of
C:\Program Files\WindowsPowerShell\Modules\cXML\DscResources\cXMLAttribute\cXMLAttribute.schema.mof resource Provider.
Check the MOF file and try again.
+ CategoryInfo : NotSpecified: (root/Microsoft/…gurationManager:String) , CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : TESTN4APP01
The resource is in the correct module path and I have followed the folder and file format and even compared it to the resources Microsoft has released in their waves and I can’t see where I’ve gone wrong. I’ve attached the resource MOF file for the resource that is causing this error.