# Fail to Register DSC Agent

**URL:** <https://forums.powershell.org/t/fail-to-register-dsc-agent/9677>\
**Category:** DSC\
**Created:** [November 9, 2017, 6:04pm UTC](https://forums.powershell.org/t/fail-to-register-dsc-agent/9677 "2017-11-09T18:04:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiliyago](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/chiliyago/32/355_2.png) [@chiliyago](https://forums.powershell.org/u/chiliyago)\
**Post date:** [November 9, 2017, 6:04pm UTC](https://forums.powershell.org/t/fail-to-register-dsc-agent/9677/1 "2017-11-09T18:04:32Z")

</div>

I am attempting to setup DSC Pull and Target Servers. The Pull Server part seems functioning well as I can successfully browse to the https:\…PSDSCPullServer.svc/$metadata and receive the XML file.

I am now attempting to register the target but am finding errors in the output and on the DSC Pull Server’s Event Log. The Event log error says:

> The client with raw URL /PSDSCPullServer.svc/Nodes(AgentId='9167A3EA-3674-11E7-80D4-000D3A34F962') has invalid protocolversion header specified. Supported ProtocolVersion is 2.0.

Here is the entire script : [Failed Registration of DSC Agent with Server · GitHub](https://gist.github.com/Chiliyago/7fcc05b4c3ed439c9d5ab86c5954f581)

Is this a bug or am I doing something wrong?

P.S. I am using WMF 5.1 on Windows Servers 2012 R2

---

<div class="post-metadata">

**Author:** ![alex-aymonier](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@alex-aymonier](https://forums.powershell.org/u/alex-aymonier)\
**Post date:** [November 9, 2017, 8:32pm UTC](https://forums.powershell.org/t/fail-to-register-dsc-agent/9677/2 "2017-11-09T20:32:11Z")

</div>

I take it that the ssl cert for the securer Pull Server is issued by [dc1.MyDomain.com](http://dc1.MyDomain.com)? If so does the node have the trusted root cert for that cert authority on it if not it will not trust the SSL cert.

---

<div class="post-metadata">

**Author:** ![chiliyago](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/chiliyago/32/355_2.png) [@chiliyago](https://forums.powershell.org/u/chiliyago)\
**Post date:** [November 10, 2017, 11:28am UTC](https://forums.powershell.org/t/fail-to-register-dsc-agent/9677/3 "2017-11-10T11:28:29Z")

</div>

Yes I can see the certificate in the ‘Trusted Root Certificate Authorities’ on the target node. I am able to browse to the URL and get no certificate warnings which leads me to believe I have the server and certificate portion of the equation configured correct.

---

<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/fail-to-register-dsc-agent/9677/4 "2024-05-16T21:16:36Z")

</div>

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


