# Pull Client Configuration Not found

**URL:** <https://forums.powershell.org/t/pull-client-configuration-not-found/8365>\
**Category:** DSC\
**Created:** [April 5, 2017, 3:41pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365 "2017-04-05T15:41:24Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 5, 2017, 3:41pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/1 "2017-04-05T15:41:24Z")

</div>

Hi everybody,  
I have two servers windows 2016 in wmf5.1.  
My dsc pull server is configured in HTTPS and registration keys.  
I configured the LCM and made a configuration to pull it to my client.

LCM Configuration:  
Node $NodeName  
{  
Settings  
{  
RefreshMode = ‘Pull’  
ConfigurationMode=“ApplyAndAutoCorrect”  
CertificateID = ‘mycertificatethumbprint’  
}

```
ConfigurationRepositoryWeb CORE-O_PullSrv
{
    ServerURL = "https://myserver:8080/PSDSCPullServer.svc" 
    CertificateID = 'mycertificatethumbprint'
    RegistrationKey = 'myregistrationKey'
   ConfigurationNames = @('Server2016')
      
}   

```

Mof file are present in … DscService\Configuration  
I renamed my mof file in Server2016.mof

But in the client when i tried to update-dsconfiguration -wait -verbose there is an error:  
Configuration Not found.  
In Windows Event : ResourceNotFound(404).  
Could you give me some advices?

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 6, 2017, 5:40am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/2 "2017-04-06T05:40:39Z")

</div>

Hi,

your mof and checksum are directly in dsc/configurations/Server2016.mof ?

Thank’s

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 6, 2017, 6:53am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/3 "2017-04-06T06:53:32Z")

</div>

Hi,  
My MOF file renamed in Server2016.mof and my checksum are present in dsc/configurations  
I tried to rename the checksum file too in Server20106.mof.checksum.  
I have the same result.  
The client doesn’t pull his configuration

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 6, 2017, 7:25am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/4 "2017-04-06T07:25:03Z")

</div>

Try to make first ConfigurationMode=“ApplyAndMonitor” and show us the result

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 6, 2017, 7:51am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/5 "2017-04-06T07:51:59Z")

</div>

With ApplyAndMonitor this is the result:

```
...(AgentId='9FC96A5D-157E-11E7-A0E0-005056951FCF')/GetDscAction 
pour AgentId 9FC96A5D-157E-11E7-A0E0-005056951FCF avec l'erreur serveur «ResourceNotFound(404)».
....
    + CategoryInfo : ResourceUnavailable: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : WebDownloadManagerGetActionNodeConfigurationNotFound,Microsoft.PowerShell.DesiredStateConfiguration.Commands.GetDscActionCommand
    + PSComputerName : localhost
```

The same error

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 6, 2017, 8:21am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/6 "2017-04-06T08:21:45Z")

</div>

ok  
I had the same problem when I use dsc pull server HTTPS with a certificate. But when I used with non certificate all was run successfuly.  
try this:  
Pull server:

configuration DSCPullServer  
{  
param  
(  
[string]$NodeName = ‘localhost’  
)

```
Import-DscResource -ModuleName xPSDesiredStateConfiguration #-ModuleVersion 3.7.0.0
Import-DscResource -ModuleName PSDesiredStateConfiguration

Node $NodeName 
{ 
    WindowsFeature DSCServiceFeature 
    { 
        Ensure = 'Present' 
        Name = 'DSC-Service'             
    } 

    WindowsFeature IIS
    { 
        Ensure = 'Present' 
        Name = 'Web-Server'             
    } 

    xDscWebService DSCPullSRV
    { 
        Ensure = 'Present' 
        EndpointName = 'DSCPullSRV' 
        Port = 8080 
        PhysicalPath = "$env:SystemDrive\inetpub\DSCPullSRV" 
        CertificateThumbPrint = "AllowUnencryptedTraffic"          
        ModulePath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules" 
        ConfigurationPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration"
        RegistrationKeyPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService"   
        AcceptSelfSignedCertificates = $true    
        State = 'Started' 
        DependsOn = '[WindowsFeature]DSCServiceFeature'
        UseSecurityBestPractices = $false                        
    }
}

```

}  
DSCPullServer -OutputPath c:\dsc\DSCPullServer  
Start-DscConfiguration -Path $env:SystemDrive\dsc\DSCPullServer -Wait -Verbose -force

and for LCM in your node:

[DSCLocalConfigurationManager()]  
configuration PullClient  
{  
Node localhost  
{  
Settings  
{  
RefreshMode = ‘Pull’  
RefreshFrequencyMins = 30  
RebootNodeIfNeeded = $true  
ConfigurationMode = ‘ApplyAndAutoCorrect’  
ConfigurationModeFrequencyMins = 15  
}  
ConfigurationRepositoryWeb DSC-Pull  
{  
ServerURL = ‘[http://yourserver:8080/PSDSCPullServer.svc](http://yourserver:8080/PSDSCPullServer.svc)’  
RegistrationKey = ‘your registrationkey’

```
        AllowUnsecureConnection = $true #Use this parameter only if you do not have a certificate installed on the pull server
    }

    ReportServerWeb DSC-Pull
    {
        ServerURL = 'http://yourserver:8080/PSDSCPullServer.svc'
        RegistrationKey = 'your registrationkey'
        AllowUnsecureConnection = $true
    }      
}

```

}  
PullClient  
Set-DSCLocalConfigurationManager localhost –Path .\PullClient –Verbose -force

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 6, 2017, 11:41am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/7 "2017-04-06T11:41:03Z")

</div>

I tried.  
I make a update-dscconfiguration -wait -verbose  
So no error but the client doesn’t find a configuration for him so no update.  
In dscservice\configuration on my pull server i have my computername.mof and computername.mof.checksum, is it correct or must i use a guid for the mof file???

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 6, 2017, 3:13pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/8 "2017-04-06T15:13:21Z")

</div>

Hi  
-on your node  
do: new-guid (copy this guid)

- on pull server  
rename your mof and checksume with this guid

rerun your LCM and wait untill “ConfigurationModeFrequencyMins = 15”

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 6, 2017, 3:55pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/9 "2017-04-06T15:55:28Z")

</div>

Ok Thanks.  
But how the client knows it’s his configuration?  
Must i precise a configurationID in the LCM configuration with this Guid?

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 6, 2017, 5:18pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/10 "2017-04-06T17:18:21Z")

</div>

With Guid and configurationID in the LCM:

```
http://myserver:8080///PSDSCPullServer.svc/Action(ConfigurationId='5e5f465e-10f0-4281-8a6f-b80a9da9ee48')/GetAction : configuration 5e5f465e-10f0-4281-8a6f-b80a9da9ee48 valide 
introuvable.
    + CategoryInfo : ResourceUnavailable: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : WebDownloadManagerGetActionConfigurationNotFound,Microsoft.PowerShell.DesiredStateConfiguration.Commands.GetDscActionCommand
    + PSComputerName : localhost
```

With the GUID and without configuratioID in the LCM:  
result of update-dscconfiguration -wait -verbose  
No error but he can’t find a configuration

```
[] Configuration not found on the pull server, so no action.
```

Really i don’t understand

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 7, 2017, 1:32am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/11 "2017-04-07T01:32:56Z")

</div>

Excuse me. use this for your LCM on your node

[DSCLocalConfigurationManager()]  
configuration PullClient  
{  
Node localhost  
{  
Settings  
{  
RefreshMode = ‘Pull’  
RefreshFrequencyMins = 30  
RebootNodeIfNeeded = $true  
ConfigurationMode = ‘ApplyAndAutoCorrect’  
ConfigurationModeFrequencyMins = 15  
}  
ConfigurationRepositoryWeb DSC-Pull  
{  
ServerURL = ‘http://Your\_server:8080/PSDSCPullServer.svc’  
RegistrationKey = ‘your\_registrationkey’  
ConfigurationNames = @(‘service’)  
AllowUnsecureConnection = $true #Use this parameter only if you do not have a certificate installed on the pull server  
}

```
    ReportServerWeb DSC-Pull
    {
        ServerURL = 'http://Your_server:8080/PSDSCPullServer.svc'
        RegistrationKey = 'your_registrationkey'
        AllowUnsecureConnection = $true
    }      
}

```

}  
PullClient  
Set-DSCLocalConfigurationManager localhost –Path .\PullClient –Verbose

where “service” will be the same on your pull server in dsc/configurations (service.mof and service.mof.checksum) . make sure this two files are directly in dsc/configurations not in a directory like (dsc/configurations/service/service.mof or .checksum)

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 7, 2017, 7:17am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/12 "2017-04-07T07:17:57Z")

</div>

Thanks you Arnold.  
It works fine !  
Now i’ll search for configure it in https

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 7, 2017, 7:21am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/13 "2017-04-07T07:21:10Z")

</div>

Ok good.  
Let’s me know if you fix it in https. Are you french?

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 7, 2017, 7:47am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/14 "2017-04-07T07:47:29Z")

</div>

Ok no problem.  
Yes i’m french.  
Sorry for my poor english (lol)

---

<div class="post-metadata">

**Author:** ![noldus](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@noldus](https://forums.powershell.org/u/noldus)\
**Post date:** [April 7, 2017, 7:54am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/15 "2017-04-07T07:54:05Z")

</div>

Je parle pas bien anglais non plus. Je suis Français et actuellement en stage sur le sujet de l’automatisation avec Powershell DSC

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 7, 2017, 8:15am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/16 "2017-04-07T08:15:42Z")

</div>

Ok.  
Bon stage alors !  
Je réalise pour ma part un poc.  
Merci encore pour ton aide sur le sujet.

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forums.powershell.org/u/michael)\
**Post date:** [April 8, 2017, 10:50am UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/17 "2017-04-08T10:50:12Z")

</div>

Done in HTTPS too.  
I’ll post my configuration files soon

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/pull-client-configuration-not-found/8365/18 "2024-05-16T21:16:44Z")

</div>

Closed on May 16, 2024, 9:16pm UTC


