I have just downloaded DSC Resource Kit Wave 10 and I can see that known error when you setup PowerShell Desired State Configuration (DSC) HTTP Pull Server was not fixed yet. The reason is that the resource kit is February release. The error is related to missing Microsoft.Isam.Esent.Interop assembly that is available on Windows 8.1 but not on Windows Server 2012 R2.
There are several possibilities how to fix the issue.
- You can download current xPSDesiredStateConfiguration from Github.
- You can download it using PackageManagement (OneGet).
- Or you can fix it using PowerShell. The only thing you need to do is replace two lines of text:
$path = 'C:\inetpub\wwwroot\PSDSCPullServer\web.config' $content = Get-Content -Path $path | ForEach-Object -Process ` { $_
Replace('<add key="dbprovider" value="ESENT" />',
'<add key="dbprovider" value="System.Data.OleDb" />').
Replace('<add key="dbconnectionstr" value="C:\Program Files\WindowsPowerShell\DscService\Devices.edb" />',
'<add key="dbconnectionstr" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\WindowsPowerShell\DscService\Devices.mdb;" />') } $content | Set-Content -Path $path -Encoding UTF8