Powershell – Remoting EnableCompatibilityHttpListener

원격지의 서버에 Powershell Remote를 활성화 시키는 작업중 해당 네트워크가 80번 포트를 제외한 거의 모든 포트가 윈도우즈 방화벽이 아닌 네트워크 상에서 막혀 있었다. 즉 Default port 인 5985 / 5986 을 사용 할 수 없어 원격 접속이 불가능한 경우 였다.

이때 포트를 직접 80번으로 바꾸어 주었는데 WSMan:localhostServiceEnableCompatibilityHttpListener 를 활성화 시키면 자동으로 80번 포트가 추가로 사용 가능 하였다.

Set-Item WSMan:localhostServiceEnableCompatibilityHttpListener -Value true
Set-Item WSMan:localhostServiceEnableCompatibilityHttpsListener -Value true

그리하여 현제품의 Powershell Remote 관련 셋팅은 다음과 같다. (붙혀넣기용)

Enable-PSRemoting -Force
Set-item WSMan:localhostClientTrustedHosts -Value * -Force
Set-Item WSMan:localhostServiceEnableCompatibilityHttpListener -Value true
Set-Item WSMan:localhostServiceEnableCompatibilityHttpsListener -Value true

2 thoughts on “Powershell – Remoting EnableCompatibilityHttpListener

  1. 초프머

    이거 다 개인이 만드신건가요?

  2. beren

    저는 이걸 모르는 상태여선… 포트 일일이 다 오픈하고… 이 포스트를 진작에 봤어야 하는데 ㅜㅜ

답글 남기기

이메일 주소는 공개되지 않습니다.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.