# TrustedHosts 에 RoRo 서버 등록.
# 방화벽과 관계없이 RoRo 서버와의 통신을 위해 신뢰할 수 있는 호스트로 등록을 한다.
# 기존에 설정되어 있는 Host가 있다면 Overwrite를 한다.
Set-Item wsman:\localhost\Client\TrustedHosts RoRo서버IP
# TrustedHosts 목록 보기
Get-Item wsman:\localhost\Client\TrustedHosts
----------------------------------------------------------
예시)
# TrustedHosts에 모든 컴퓨터를 추가방법
Set-Item wsman:\localhost\Client\TrustedHosts -value *
예시)
# TrustedHosts에 특정 도메인/IP 컴퓨터를 추가방법
Set-Item wsman:\localhost\Client\TrustedHosts test.domain.com
Set-Item wsman:\localhost\Client\TrustedHosts *.domain.com
Set-Item wsman:\localhost\Client\TrustedHosts 192.168.5.111
*** 이미 등록한 호스트가 있다면 기존 정의된 호스트에 Add 해서 등록을 한다. ***
예시)
PS> Get-Item wsman:\localhost\Client\TrustedHosts
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Client
Type Name SourceOfValue Value
---- ---- ------------- -----
System.String TrustedHosts test.domain.com,*.osci.kr
PS> Set-Item wsman:\localhost\Client\TrustedHosts 'test.domain.com,*.osci.kr,RoRo서버IP'
|