# How can I specify using 5986 on one node with DSC

**URL:** <https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116>\
**Category:** PowerShell Help\
**Created:** [July 19, 2021, 6:39pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116 "2021-07-19T18:39:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsthusker](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsthusker](https://forums.powershell.org/u/jsthusker)\
**Post date:** [July 19, 2021, 6:39pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116/1 "2021-07-19T18:39:08Z")

</div>

I have my web server in the DMZ so my security team requires it only use winrm ssl or 5986. The rest of the servers are in an internal subnet so winrm 5985 will work with those. I have created the https winrm listener on my DMZ server. How can I accomplish this?  
Thanks

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [July 19, 2021, 8:44pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116/2 "2021-07-19T20:44:03Z")

</div>

Not sure I understand this question. 5986/HTTPS is the default listener. Can you be more specific?

> **[Default WinRm Ports and How to Change Them](https://adamtheautomator.com/winrm-port/)**
>
> Learn WinRM ports and its uses for communication for both HTTP and HTTPS communication as well as how to change them.

---

<div class="post-metadata">

**Author:** ![jsthusker](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsthusker](https://forums.powershell.org/u/jsthusker)\
**Post date:** [July 19, 2021, 9:03pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116/3 "2021-07-19T21:03:49Z")

</div>

When I run the DSC -Invoke command my script hits all of the nodes that have 5985 open but not the server that only has 5986 open. It errors out on that server. I believe DSC runs on http. Maybe I am wrong.

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [July 19, 2021, 9:44pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116/4 "2021-07-19T21:44:06Z")

</div>

Hmm … sorry, I should not have spoken up as I have no idea what DSC is … very sorry about that. Hopefully someone else will have an answer. I thought it was an alias but I can not find any in PowerShell.

---

<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, 8:23pm UTC](https://forums.powershell.org/t/how-can-i-specify-using-5986-on-one-node-with-dsc/17116/5 "2024-05-16T20:23:48Z")

</div>


