Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing PFX certificate fails on Windows Server 2016 using guest configuration package #273

Open
mschaaks opened this issue Dec 7, 2023 · 0 comments

Comments

@mschaaks
Copy link

mschaaks commented Dec 7, 2023

Problem description

Locally on Windows 10 this sample config succeeds.

However on Windows Server 2016 the following error is thrown:

VERBOSE: Job cd51d370-3bcc-420d-901b-343156c74322 : This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResourc
e on DSC_PfxImport DSC resource. FullyQualifiedErrorId is ParameterArgumentTransformationError,Set-TargetResource. Error Message is Cannot process argument tra
nsformation on parameter 'Verbose'. Cannot convert value "Continue" to type "System.Management.Automation.SwitchParameter". Error: "Invalid cast from 'System.Management.Automation.ActionPreference' to System.Management.Automation.SwitchParameter'.".

Verbose logs

Validating guest configuration package compliance status...

additionalProperties : {}
assignmentName       : dsc-config-certificate-sample
complianceStatus     : False
endTime              : 12/7/2023 5:05:50 PM
jobId                : 3185eaf9-a401-4189-a387-5fcc768e6eed
operationtype        : Consistency
resources            : {@{complianceStatus=False; properties=; reasons=System.Object[]}}
startTime            : 12/7/2023 5:05:44 PM


Applying guest configuration package...
Guest Configuration worker binaries already installed at 'C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\GC'
Package has the version 1.0.0
Package has the type AuditandSet
Found resource dependency in mof with instance name '' and resource name 'DSC_PfxImport' from module 'CertificateDsc' with version '5.1.0'.
Found 1 resource dependencies in the mof.
Searching for a module with the name 'CertificateDsc' and version '5.1.0'...
Populating RepositorySourceLocation property for module CertificateDsc.
Found the module dependencies: CertificateDsc
Setting the content of the package metaconfig at the path 'C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\packages\dsc-config-certificate-sample\dsc-config-certificate-sample.metaconfig.json'...
Invoking GC worker with the arguments '-o publish_assignment -a dsc-config-certificate-sample -p "C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\packages\dsc-config-certificate-sample"'
Job {E0AF3082-9522-11EE-A810-6045BD8CBD31} : LCM has released the resource state cache.
Job {E0AF3082-9522-11EE-A810-6045BD8CBD31} : Reading the file content from DSCEngineCache.mof
Job {E0AF3082-9522-11EE-A810-6045BD8CBD31} : Reading agent registration information from ('C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Operation Publish-DscConfiguration -Force started by user sid null from computer null.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Getting Metaconfiguration details.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Getting Metaconfiguration details.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Getting Metaconfiguration details.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Function CallSetConfiguration started with parameters 
 	 DataSize: 1376 
 	 Flags: 65536 
 	 Execution Mode: 0 
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Displaying messages from built-in DSC resources:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]:                            [] LCM is running in MonitorOnly mode and will only test the configuration.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Function SetConfiguration started with parameters 
 	 DataSize: 1376 
 	 Flags: 65536 
 	 Execution Mode: 12582912 
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\Pending.mof
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Displaying messages from built-in DSC resources:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]:                            [] Configuration document successfully saved to pending state.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Method CallSetConfiguration ended successfully
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Operation Publish-DscConfiguration -Force completed successfully.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Getting Metaconfiguration details.
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job 13134899-c704-4d9e-86af-9e1fb3e1383c : Method CU_SendConfiguration ended successfully
Job  : LCM has released the resource state cache.
Invoking GC worker with the arguments '-o set_agent_settings -a dsc-config-certificate-sample -p "C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\packages\dsc-config-certificate-sample"'
Job {E1BF5FC1-9522-11EE-A810-6045BD8CBD31} : LCM has released the resource state cache.
Job {E1BF5FC1-9522-11EE-A810-6045BD8CBD31} : Reading the file content from DSCEngineCache.mof
Job {E1BF5FC1-9522-11EE-A810-6045BD8CBD31} : Reading agent registration information from ('C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Operation Set-DscLocalConfigurationManager -Force started by user sid null from computer null.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Function CallSetConfiguration started with parameters 
 	 DataSize: 797 
 	 Flags: 131072 
 	 Execution Mode: 0 
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Set      ]      
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Function SetConfiguration started with parameters 
 	 DataSize: 797 
 	 Flags: 131072 
 	 Execution Mode: 12582912 
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Applying configuration from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.tmp.mof.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Module manager is loading instance document from location C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.tmp.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Validating instance document.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Parsing the configuration to apply.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method SendConfigurationApply started with parameters 
 	 Class name: OMI_ConfigurationDocument 
 	 Resource ID:  
 	 Flags: 2228224 
 	 Execution Mode: 12582912 
 	 DSC resource Namespace: null 
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Resolving Dependencies inside the configuration document.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Setting resources in order. Number of resources: 1
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : LCM has released the resource state cache.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : LCM has resized the resource state cache.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Activity LCM
CurrentOperation [yyyazcrmsptnbs0] Set
StatusDescription Applying Configuration
 PercentComplete 100
 SecondsRemaining 1
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: MSFT_DSCMetaConfiguration 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Resource ]  [MSFT_DSCMetaConfiguration]  
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting a registration instance for MSFT_DSCMetaConfiguration
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Moving the resource MSFT_DSCMetaConfiguration of class MSFT_DSCMetaConfiguration to desired state.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method Exec_WMIv2Provider started with parameters 
 	 Class name: MSFT_DSCMetaConfiguration 
 	 Resource ID: MSFT_DSCMetaConfiguration 
 	 Flags: 2228224 
 	 Execution Mode: 12582912 
 	 DSC resource Namespace:  
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Executing operations for WMIv2 DSC resource MSFT_DSCMetaConfiguration with resource name MSFT_DSCMetaConfiguration
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: MSFT_DSCMetaConfiguration 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Set      ]  [MSFT_DSCMetaConfiguration]  
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Setting Metaconfiguration instance.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: MSFT_DSCMetaConfiguration 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ End    Set      ]  [MSFT_DSCMetaConfiguration]  in 0.0110 seconds.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method Exec_WMIv2Provider ended successfully
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: MSFT_DSCMetaConfiguration 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ End    Resource ]  [MSFT_DSCMetaConfiguration]  
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Setting Metaconfiguration instance.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Setting Metaconfiguration instance.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\MetaConfig.tmp.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method SetConfiguration ended successfully
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method CallSetConfiguration ended successfully
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: LCM 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ End    Set      ]    in  0.2870 seconds.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Operation Set-DscLocalConfigurationManager -Force completed successfully.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Getting Metaconfiguration details.
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job cac43565-8f5e-4d7b-85fb-8d1aa62713a5 : Method CU_SendMetaConfigurationApply ended successfully
Job  : LCM has released the resource state cache.
Invoking GC worker with the arguments '-o run_consistency -a dsc-config-certificate-sample -r -s inguest_apply_and_monitor -c Pending'
Job {E303A5FF-9522-11EE-A810-6045BD8CBD31} : LCM has released the resource state cache.
Job {E303A5FF-9522-11EE-A810-6045BD8CBD31} : Reading the file content from DSCEngineCache.mof
Job {E303A5FF-9522-11EE-A810-6045BD8CBD31} : Reading agent registration information from ('C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Operation Update-DscConfiguration -Force started by user sid null from computer null.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Function CallConsistencyEngineInternal started with parameters 
 	 DataSize: 0 
 	 Flags: 0 
 	 Execution Mode: 0 
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from built-in DSC resources:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]:                            [] Starting consistency engine.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from built-in DSC resources:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]:                            [] A pending configuration exists. DSC will process a set request on the pending configuration.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Applying configuration from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\Pending.mof.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Module manager is loading instance document from location C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\Pending.mof
Job a801516c-4355-4136-ac68-fc215cfb34b5 : The base folder of native resources 'C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\DscNativeResources\' does not exist.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting PS DSC resource schema path and registration information
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] Importing the module C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\DSC_PfxImport.psm1 in force mode.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : DSCEngine 
	 Message : [yyyazcrmsptnbs0]:                            [DSCEngine] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Validating instance document.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Parsing the configuration to apply.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method SendConfigurationApply started with parameters 
 	 Class name: OMI_ConfigurationDocument 
 	 Resource ID:  
 	 Flags: 134217728 
 	 Execution Mode: 12582912 
 	 DSC resource Namespace: null 
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Resolving Dependencies inside the configuration document.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Resource execution sequence :: [PfxImport]WildCardCert-yyy.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Setting resources in order. Number of resources: 1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : LCM has released the resource state cache.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : LCM has resized the resource state cache.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity LCM
CurrentOperation [yyyazcrmsptnbs0] Set
StatusDescription Applying Configuration
 PercentComplete 100
 SecondsRemaining 1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Resource ]  [[PfxImport]WildCardCert-yyy]  
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting a registration instance for DSC_PfxImport
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Moving the resource [PfxImport]WildCardCert-yyy of class DSC_PfxImport to desired state.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Executing operations for PS DSC resource DSC_PfxImport with resource name [PfxImport]WildCardCert-yyy
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method Exec_PSProvider started with parameters 
 	 Class name: DSC_PfxImport 
 	 Resource ID: [PfxImport]WildCardCert-yyy 
 	 Flags: 134217728 
 	 Execution Mode: 12582912 
 	 DSC resource Namespace: null 
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Test     ]  [[PfxImport]WildCardCert-yyy]  
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method CoreClr_Not_support started.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Importing the module DSC_PfxImport in force mode.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Getting assembly list to generate supported hash algorithms. (CC0018)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Finding hash algorithms supported. (CC0020)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Generating array of supported hash algorithm properties for 5 providers. (CC0021)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Storing list of supported hash algorithms to cache. (CC0022)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Test-TargetResource: Testing Pfx '97337CD01F2D3FF62ABEF5DDC5EBBDDEA4EB3AE9' existence in 'LocalMachine' store 'My'. (PI0005)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Get-TargetResource: Getting Pfx existence '97337CD01F2D3FF62ABEF5DDC5EBBDDEA4EB3AE9' in 'LocalMachine' store 'My'. (PI0001)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Test-TargetResource
StatusDescription Getting command information from remote session ... 17 commands received
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Test-TargetResource
StatusDescription Getting formatting and output information from remote session ... 66 objects received
 PercentComplete 57
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Test-TargetResource
StatusDescription Getting formatting and output information from remote session ... 115 objects received
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Test-TargetResource
StatusDescription Completed.
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ End    Test     ]  [[PfxImport]WildCardCert-yyy]  in 2.9450 seconds.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ Start  Set      ]  [[PfxImport]WildCardCert-yyy]  
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method CoreClr_Not_support started.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Importing the module DSC_PfxImport in force mode.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\DscResource.Common\0.10.1\en-US\DscResource.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\Modules\CertificateDsc.Common\en-US\CertificateDsc.Common.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] File C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.psd1 not found
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying debug messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Found C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\Modules\CertificateDsc\DscResources\DSC_PfxImport\en-US\DSC_PfxImport.strings.psd1
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Getting assembly list to generate supported hash algorithms. (CC0018)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Finding hash algorithms supported. (CC0020)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Generating array of supported hash algorithm properties for 9 providers. (CC0021)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Storing list of supported hash algorithms to cache. (CC0022)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Set-TargetResource: Setting Pfx '97337CD01F2D3FF62ABEF5DDC5EBBDDEA4EB3AE9' existence in 'LocalMachine' store 'My'. (PI0006)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying verbose messages from Powershell DSC resource:
	 ResourceID : [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]:                            [[PfxImport]WildCardCert-yyy] Get-TargetResource: Getting Pfx existence '97337CD01F2D3FF62ABEF5DDC5EBBDDEA4EB3AE9' in 'LocalMachine' store 'My'. (PI0001)
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Set-TargetResource
StatusDescription Getting command information from remote session ... 17 commands received
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Set-TargetResource
StatusDescription Getting formatting and output information from remote session ... 1 objects received
 PercentComplete 0
 SecondsRemaining 26
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Set-TargetResource
StatusDescription Getting formatting and output information from remote session ... 115 objects received
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Activity Creating implicit remoting module ...
CurrentOperation [yyyazcrmsptnbs0] Set-TargetResource
StatusDescription Completed.
 PercentComplete 100
 SecondsRemaining 0
Job a801516c-4355-4136-ac68-fc215cfb34b5 : This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResource on DSC_PfxImport DSC resource. FullyQualifiedErrorId is ParameterArgumentTransformationError,Set-TargetResource. Error Message is Cannot process argument transformation on parameter 'Verbose'. Cannot convert value "Continue" to type "System.Management.Automation.SwitchParameter". Error: "Invalid cast from 'System.Management.Automation.ActionPreference' to 'System.Management.Automation.SwitchParameter'.".
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from the engine:
	 WMI channel 1 
	 ResourceID: [PfxImport]WildCardCert-yyy 
	 Message : [yyyazcrmsptnbs0]: LCM:  [ End    Set      ]  [[PfxImport]WildCardCert-yyy]  in 1.7960 seconds.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method Exec_PSProvider ended successfully
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Displaying messages from built-in DSC resources:
	 WMI channel 1 
	 ResourceID:  
	 Message : [yyyazcrmsptnbs0]:                            [] Consistency check completed.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method CallConsistencyEngineInternal ended successfully
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Getting Metaconfiguration details.
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Deleting file from C:\Users\crmspeler\Documents\PowerShell\Modules\GuestConfiguration\4.5.0\gcworker\Configurations\dsc-config-certificate-sample\\DSCEngineCache.mof
Job a801516c-4355-4136-ac68-fc215cfb34b5 : Method CU_ApplyConfiguration ended successfully
Job  : LCM has released the resource state cache.

additionalProperties : {}
assignmentName       : dsc-config-certificate-sample
complianceStatus     : False
endTime              : 12/7/2023 5:05:57 PM
jobId                : a801516c-4355-4136-ac68-fc215cfb34b5
operationtype        : Deployment
resources            : {@{complianceStatus=False; properties=; reasons=System.Object[]}}
startTime            : 12/7/2023 5:05:57 PM

DSC configuration

node localhost
    {
        PfxImport WildCardCert-yyy
        {
            Thumbprint      = "x"
            Path            = "C:\temp\x\x.pfx"
            Location        = "LocalMachine"
            Store           = "My"
            Credential      = $CredsCertificatePassWord
            FriendlyName    = "x"
            Ensure          = "Present"
        }
    }

Suggested solution

No clue.

Operating system the target node is running

OsName               : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.6451.amd64fre.rs1_release.231103-1737
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

Name                           Value
----                           -----
PSVersion                      7.3.8
PSEdition                      Core
GitCommitId                    7.3.8
OS                             Microsoft Windows 10.0.14393
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

CertificateDsc version

Name           Version Path
----           ------- ----
CertificateDsc 5.1.0   C:\Users\crmspeler\Documents\PowerShell\Modules\CertificateDsc\5.1.0\CertificateDsc.psd1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant