0

I've configured a test DSC pull server and I'm attempting to use a digitally signed xPowerShellExecutionPolicy file but I am constantly getting an error stating that the MOF schema file is invalid or missing.

The code signing certificate is from a trusted commercial CA. Both servers are 2012 R2.

Here is an image displaying the signature information. This script is in

C:\Program Files\WindowsPowerShell\modules\xPowerShellExecutionPolicy\DSCResources\xPowerShellExecutionPolicy

properties dialog of signed module

Here are the other related files. As you can see the MOF schema file is clearly present.

Related DSC files

Here is the error I am seeing on the target server.

TimeCreated          LevelDisplayName Message                                                                                                                                                 
-----------          ---------------- -------                                                                                                                                                 
7/28/2015 1:44:43 PM Information      Job {53AD07E6-3550-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      Job runs under the following LCM setting.                                                                                                               
                                      ConfigurationMode: ApplyAndAutoCorrect                                                                                                                  
                                      ConfigurationModeFrequencyMins: 30                                                                                                                      
                                      RefreshMode: Pull                                                                                                                                       
                                      RefreshFrequencyMins: 30                                                                                                                                
                                      RebootNodeIfNeeded: NONE                                                                                                                                
                                      DebugMode: False                                                                                                                                        
7/28/2015 1:44:43 PM Information      Job {53AD07E6-3550-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      Running consistency engine.                                                                                                                             
7/28/2015 1:44:43 PM Information      Job {53AD07E6-3550-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      Configuration is sent from computer NULL by user sid S-1-5-21-836088835-2467000696-1087451681-4146.                                                     
7/28/2015 1:41:10 PM Error            Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      This event indicates that failure happens when LCM is trying to get the configuration from pull server using download manager WebDownloadManager.       
                                      ErrorId is 0x1. ErrorDetail is The PS module C:\Program                                                                                                 
                                      Files\WindowsPowerShell\Modules\xPowerShellExecutionPolicy\DscResources\xPowerShellExecutionPolicy is either missing or its associated MOF schema       
                                      C:\Program Files\WindowsPowerShell\Modules\xPowerShellExecutionPolicy\DscResources\xPowerShellExecutionPolicy\xPowerShellExecutionPolicy.schema.mof is  
                                      missing or invalid.                                                                                                                                     
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      The content validation for module xPowerShellExecutionPolicy completed with status code 6.                                                              
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      Message File C:\Program                                                                                                                                 
                                      Files\WindowsPowerShell\Modules\xPowerShellExecutionPolicy\DscResources\xPowerShellExecutionPolicy\xPowerShellExecutionPolicy.psm1 cannot be loaded.    
                                      The file C:\Program Files\WindowsPowerShell\Modules\xPowerShellExecutionPolicy\DscResources\xPowerShellExecutionPolicy\xPowerShellExecutionPolicy.psm1  
                                      is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see 
                                      about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.                                                                              
                                      HResult -2146233087                                                                                                                                     
                                      StackTrack    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean      
                                      enumerate)                                                                                                                                              
                                         at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()                                                                               
                                         at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()                                                                           
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      The checksum validation for module xPowerShellExecutionPolicy completed with status code 0.                                                             
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      The modules (xPowerShellExecutionPolicy,1.0.0) were downloaded to the location C:\Windows\TEMP\\635736876701282694.                                     
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      WebDownloadManager Get-DscModule command, module xPowerShellExecutionPolicy, File save result:                                                          
                                      C:\Windows\TEMP\635736876701282694\xPowerShellExecutionPolicy_1.0.0.zip.checksum.                                                                       
7/28/2015 1:41:10 PM Information      Job {D4A0B0DF-354F-11E5-80BE-A4BADB4CE593} :                                                                                                            
                                      WebDownloadManager Get-DscModule command, module xPowerShellExecutionPolicy, File save result:                                                          
                                      C:\Windows\TEMP\635736876701282694\xPowerShellExecutionPolicy_1.0.0.zip.   
Robert Kaucher
  • 487
  • 1
  • 4
  • 18

1 Answers1

0

I finally managed to pull off a Google search that provided useful information.

It was all due to not having installed KB2883200.

Ref:

The PowerShell proivder MSFT_RoleResource does not contain the corresponding MOF file

Robert Kaucher
  • 487
  • 1
  • 4
  • 18