Author Posts

April 11, 2016 at 5:37 pm

I'm trying to get a simple DSC Pull server setup and I've been following the videos in the MVA course but I'm getting an odd error. My target server is able to contact the Pull server and successfully download the MOF. But the error I get is as follows:

PS C:\Windows\system32> Update-DscConfiguration -ComputerName asrtest-sql01 -Verbose -Debug -Wait
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, "methodName' = PerformRequiredConfigurationChecks,'className' = MSFT_DSCLocalConfigura
tionManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DASHBOARD with user sid S-1-5-21-711919033-4084207079-4265421259-1221.
VERBOSE: [ASRTEST-SQL01]: [] Executing Get-Action with configuration 's checksum: .
VERBOSE: [ASRTEST-SQL01]: [] Executing Get-Action with configuration 's checksum returned result status: GetConfiguration.
VERBOSE: [ASRTEST-SQL01]: [] Checksum is different. LCM will execute GetConfiguration to pull configuration .
VERBOSE: [ASRTEST-SQL01]: [] Executing GetConfiguration failed. Configuration is not pulled.
The configuration file download by Download Manager WebDownloadManager is not valid.
+ CategoryInfo : InvalidResult: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : ConfigurationFileInvalid
+ PSComputerName : asrtest-sql01

VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 1.2 seconds

When I look at the messages running Trace-xDscOperation I get

Operation Consistency Check or Pull started by user sid S-1-5-21-711919033-4084207079-4265421259-1221 from computer DASHBOARD.
Attempting to get the action from pull server using Download Manager WebDownloadManager. Configuration Id is 3c3ca30c-18a4-4b23-8ae1-48083be66b94. Checksum is .
Compliance status is false.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Do-DscAction command, GET Url: PSDSCPullServer.svc/Action(ConfigurationId='3c3ca30c-18
a4-4b23-8ae1-48083be66b94')/GetAction.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Do-DscAction command with server url: http://DASHBOARD:8080/PSDSCPullServer.svc.
Successfully got the action GetConfiguration from pull server using Download Manager WebDownloadManager.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Do-DscAction command, GET call result: GetConfiguration.
The checksum validation for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 completed with status code 0.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Get-DscDocument command, GET call result: Ok.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Get-DscDocument command, File save result: C:\Windows\TEMP\635960070332974731\localhos
t.mof.checksum.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Get-DscDocument command, File save result: C:\Windows\TEMP\635960070332974731\localhos
t.mof.
WebDownloadManager for configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 Get-DscDocument command, GET Url: PSDSCPullServer.svc/Action(ConfigurationId='3c3ca30c
-18a4-4b23-8ae1-48083be66b94')/ConfigurationContent.
Attempting to get the configuration 3c3ca30c-18a4-4b23-8ae1-48083be66b94 from pull server with Server Url http://DASHBOARD:8080/PSDSCPullServer.svc using Web Do
wnload Manager.
Attempting to get the configuration from pull server using Download Manager WebDownloadManager.Configuration Id is 3c3ca30c-18a4-4b23-8ae1-48083be66b94.
The checksum validation for configuration C:\Windows\TEMP\\635960070332974731\localhost.mof completed with status code 0.
This event indicates that failure happens when LCM is trying to get the configuration from pull server using download manager NULL. ErrorId is 0x1. ErrorDetail
is The configuration file download by Download Manager WebDownloadManager is not valid.
MIResult: 1
Error Message: The configuration file download by Download Manager WebDownloadManager is not valid.
Message ID: ConfigurationFileInvalid
Error Category: 8
Error Code: 1
Error Type: MI

I'm pretty stuck so any help would be greatly appreciated. Jess

April 11, 2016 at 8:26 pm

For start, create a new checksum for the mof files for that specific node.

To go deeper, well need to see the script for pullserver creation, script for lcm setup and script for the resource and checksum. Also state the version of xPSDesireStateConfiguration module.
Use Gist if the scripts are long.

April 12, 2016 at 6:01 am

Thanks Arie,

The LCM Configuration Script for the server I'm trying to configure:

The Script I used to configure the HTTP Pull Server:

https://gist.github.com/appliedi/1f49c3924d7913cd83dcbb67add98b41

The MOF File

https://gist.github.com/appliedi/68b5be82929a820c918f80c13c06840d

This is the output of running Update-DscConfiguration and the error messages:

https://gist.github.com/appliedi/0e9ac2438287fe6b6b61c976e26c4280

April 13, 2016 at 8:30 am

Can you also share the event logs from the Pull server? That might give us some clue into what is going on. You can get the logs by running this from a PowerShell console

 Get-WinEvent -LogName "Microsoft-Windows-PowerShell-DesiredStateConfiguration-PullServer/Operational" 

April 14, 2016 at 1:23 am

Hi,

The first gist link is the same code as the lcm and not the pull server. Still need to see it, if you can correct it.

The second gist , change the node name to localhost. After you generate the mof, you need to rename the file to be the GUID.mof

Generate the mof in a new clean folder and copy it to the configuration folder on the pull server