This will probably get really long, so I apologize in advance. I am thorough.
Steps so far:
Installed Gui 2012 R2, ran all updates.
Installed WMF 5.0.
Running all newest DSC cmdlets and xDSC cmdlets. Everything super clean.
Followed instructions here: https://msdn.microsoft.com/en-us/powershell/dsc/pullserver
Specifically, the “configuration Sample_xDscPullServer”
Result so far:
The last step (installing DSC Service/IIS) errored out, not good. I’m not sure if it matters or not, but the errors make me nervous, as this is the second time trying to set this thing up, and the first time I ran into a plethora of buggy looking things and I am wondering if they are related to the xDSCWebService resource.
This is the verbose output logged in a json file:
[ {"time": "2016-06-21T21:43:47.579-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Set ] "}, {"time": "2016-06-21T21:43:50.413-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Resource ] [[WindowsFeature]DSCServiceFeature] "}, {"time": "2016-06-21T21:43:50.413-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Test ] [[WindowsFeature]DSCServiceFeature] "}, {"time": "2016-06-21T21:43:53.312-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] The operation 'Get-WindowsFeature' started: DSC-Service"}, {"time": "2016-06-21T21:43:53.719-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] The operation 'Get-WindowsFeature' succeeded: DSC-Service"}, {"time": "2016-06-21T21:43:53.782-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Test ] [[WindowsFeature]DSCServiceFeature] in 3.3680 seconds."}, {"time": "2016-06-21T21:43:53.782-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Set ] [[WindowsFeature]DSCServiceFeature] "}, {"time": "2016-06-21T21:43:53.876-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Installation started... "}, {"time": "2016-06-21T21:43:54.157-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Continue with installation?"}, {"time": "2016-06-21T21:43:54.157-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Prerequisite processing started..."}, {"time": "2016-06-21T21:43:57.201-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Prerequisite processing succeeded."}, {"time": "2016-06-21T21:46:28.404-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Installation succeeded."}, {"time": "2016-06-21T21:46:28.435-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[WindowsFeature]DSCServiceFeature] Successfully installed the feature DSC-Service."}, {"time": "2016-06-21T21:46:28.466-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Set ] [[WindowsFeature]DSCServiceFeature] in 154.6850 seconds."}, {"time": "2016-06-21T21:46:28.466-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Resource ] [[WindowsFeature]DSCServiceFeature] "}, {"time": "2016-06-21T21:46:28.466-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Resource ] [[xDSCWebService]PSDSCPullServer] "}, {"time": "2016-06-21T21:46:28.466-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Test ] [[xDSCWebService]PSDSCPullServer] "}, {"time": "2016-06-21T21:46:36.575-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Check Ensure"}, {"time": "2016-06-21T21:46:36.590-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] The Website PSDSCPullServer is not present"}, {"time": "2016-06-21T21:46:36.590-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Test ] [[xDSCWebService]PSDSCPullServer] in 8.1240 seconds."}, {"time": "2016-06-21T21:46:36.590-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Set ] [[xDSCWebService]PSDSCPullServer] "}, {"time": "2016-06-21T21:46:36.700-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Create the IIS endpoint"}, {"time": "2016-06-21T21:46:37.075-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Setting up endpoint at - https://KYLE-DSC:8080/PSDSCPullServer.svc"}, {"time": "2016-06-21T21:46:37.122-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Verify that the certificate with the provided thumbprint exists in CERT:\\LocalMachine\\MY\\"}, {"time": "2016-06-21T21:46:37.263-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Checking IIS requirements"}, {"time": "2016-06-21T21:46:37.748-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Delete the App Pool if it exists"}, {"time": "2016-06-21T21:46:38.563-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[xDSCWebService]PSDSCPullServer] Remove the site if it already exists"}, {"time": "2016-06-21T21:46:43.098-7:00", "type": "error", "message": "The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object."}, {"time": "2016-06-21T21:46:43.301-7:00", "type": "error", "message": "The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object."}, {"time": "2016-06-21T21:46:43.317-7:00", "type": "error", "message": "The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object."}, {"time": "2016-06-21T21:46:46.464-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Set ] [[xDSCWebService]PSDSCPullServer] in 9.8730 seconds."}, {"time": "2016-06-21T21:46:46.479-7:00", "type": "error", "message": "The PowerShell DSC resource '[xDSCWebService]PSDSCPullServer' with SourceInfo '::20::10::xDscWebService' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details."}, {"time": "2016-06-21T21:46:46.511-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Resource ] [[File]RegistrationKeyFile] "}, {"time": "2016-06-21T21:46:46.526-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Test ] [[File]RegistrationKeyFile] "}, {"time": "2016-06-21T21:46:46.667-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[File]RegistrationKeyFile] The system cannot find the file specified.\r\n"}, {"time": "2016-06-21T21:46:46.683-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[File]RegistrationKeyFile] The related file/directory is: C:\\Program Files\\WindowsPowerShell\\DscService\\RegistrationKeys.txt. "}, {"time": "2016-06-21T21:46:46.683-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Test ] [[File]RegistrationKeyFile] in 0.1560 seconds."}, {"time": "2016-06-21T21:46:46.683-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ Start Set ] [[File]RegistrationKeyFile] "}, {"time": "2016-06-21T21:46:46.698-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[File]RegistrationKeyFile] The system cannot find the file specified.\r\n"}, {"time": "2016-06-21T21:46:46.698-7:00", "type": "verbose", "message": "[KYLE-DSC]: [[File]RegistrationKeyFile] The related file/directory is: C:\\Program Files\\WindowsPowerShell\\DscService\\RegistrationKeys.txt. "}, {"time": "2016-06-21T21:46:46.714-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Set ] [[File]RegistrationKeyFile] in 0.0320 seconds."}, {"time": "2016-06-21T21:46:46.714-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Resource ] [[File]RegistrationKeyFile] "}, {"time": "2016-06-21T21:46:46.714-7:00", "type": "verbose", "message": "[KYLE-DSC]: LCM: [ End Set ] "} ]
Also, here are the Events Logged by DSC as Windows Events; some of the information is the same as above. also, these events are in Reverse order. Sorry.
Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : Details logging completed for C:\Windows\System32\Configuration\Configurati onStatus\{E4AC7EF6-3833-11E6-80B5-00155D058C04}-0.details.json. Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : MIResult: 1 Error Message: The SendConfigurationApply function did not succeed. Message ID: MI RESULT 1 Error Category: 0 Error Code: 1 Error Type: MI Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : MIResult: 1 Error Message: The PowerShell DSC resource '[xDSCWebService]PSDSCPullServer' with SourceInfo '::20::10::xDscWebService' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details. Message ID: NonTerminatingErrorFromProvider Error Category: 7 Error Code: 1 Error Type: MI Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : This event indicates that failure happens when LCM is processing the configuration. Error Id is 0x1. Error Detail is The SendConfigurationApply function did not succeed.. Resource Id is [xDSCWebService]PSDSCPullServer and Source Info is ::2 0::10::xDscWebService. Error Message is The PowerShell DSC resource '[xDSCWebService]PSDSCPullServer' with SourceInfo ': :20::10::xDscWebService' threw one or more non-terminating errors while running the Set-TargetResource functionality. Th ese errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more detail s.. Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : MIResult: 1 Error Message: The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object. Message ID: BadExpression Error Category: 7 Error Code: 7 Error Type: MI Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResource on MSFT_xDS CWebService DSC resource. FullyQualifiedErrorId is BadExpression. Error Message is The expression after '&' in a pipelin e element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo obje ct.. Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : MIResult: 1 Error Message: The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object. Message ID: BadExpression Error Category: 7 Error Code: 7 Error Type: MI Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResource on MSFT_xDS CWebService DSC resource. FullyQualifiedErrorId is BadExpression. Error Message is The expression after '&' in a pipelin e element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo obje ct.. Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : MIResult: 1 Error Message: The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object. Message ID: BadExpression Error Category: 7 Error Code: 7 Error Type: MI Job {E4AC7EF6-3833-11E6-80B5-00155D058C04} : This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResource on MSFT_xDS CWebService DSC resource. FullyQualifiedErrorId is BadExpression. Error Message is The expression after '&' in a pipelin e element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo obje ct..
I’m not sure if this means that the Resource is broken, or simply throwing errors due to not having fit and finish checks in place to avoid unneeded error messages. I’ll probably be digging into the project page and looking at the code pretty soon. In the meantime, I wanted to post what I’m seeing, in case it helps anyone else in the future.
I’ll try to register an Agent, which did not work correctly the last time I tried. I eventually got it sort of working, but after undocumented troubleshooting steps, so I’m starting over from scratch. This time, I have a Hyper-V checkpoint, so it won’t be so much trouble to go back.