최고의 답변자
원격 WMI 구성방안 문의드립니다.

질문
답변
-
안녕하세요?
WMI는 DCOM 기반으로 Built in 되었기 때문에 WMI로 원격 관리서버와 연결시에는 초기 통신을 위하여 TCP 135 포트를 사용하게 되며 이후 OS에 따라 TCP 1024에서 65535까지 또는 TCP 49152에서 65535까지의 포트 중 사용가능한 포트에 연결하여 통신을 하게 됩니다.
즉 TCP 135 포트는 변경할 수 없는 것으로 확인되며 초기 연결 이후 사용하는 포트만 변경 가능한것으로 확인됩니다.
[참고 절]
To enable WMI traffic using separate rules for DCOM, WMI, callback sink and outgoing connections-
To establish a firewall exception for DCOM port 135, use the following command.
netsh advfirewall firewall add rule dir=in name="DCOM" program=%systemroot%\system32\svchost.exe service=rpcss action=allow protocol=TCP localport=135
-
To establish a firewall exception for the WMI service, use the following command.
netsh advfirewall firewall add rule dir=in name ="WMI" program=%systemroot%\system32\svchost.exe service=winmgmt action = allow protocol=TCP localport=any
This requires RPC/WMI access through port 135 and ports 49152-65535 inbound to the computer on which the policy is being refreshed.
[참고자료]
Setting up a Remote WMI Connection
https://msdn.microsoft.com/en-us/library/aa822854%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Service overview and network port requirements for Windows
감사합니다.
2018년 6월 14일 목요일 오전 7:24 -
모든 응답
-
안녕하세요,
다음 링크의 내용을 참고하여 주시기 바랍니다.
2018년 6월 14일 목요일 오전 2:30 -
안녕하세요?
하기 자료를 참고하여 작업해 보시기 바랍니다.
[참고 절]
The exception for WMI also works if WMI has been started with a fixed port, using the winmgmt /standalonehost command. For more information, see Setting Up a Fixed Port for WMI.
To set up a fixed port for WMI
- At the command prompt, type winmgmt -standalonehost
- Stop the WMI service by typing the command net stop "Windows Management Instrumentation", or use the short name of net stop winmgmt
- Restart the WMI service again in a new service host by typing net start "Windows Management Instrumentation" or net start winmgmt
- Establish a new port number for the WMI service by typing netsh firewall add portopening TCP 24158 WMIFixedPort
To undo any changes you make to WMI, type winmgmt /sharedhost, then stop and start the winmgmt service again.
[참고자료]
Setting Up a Fixed Port for WMI
https://msdn.microsoft.com/en-us/library/bb219447(v=vs.85).aspx
Setting up a Remote WMI Connection
https://msdn.microsoft.com/en-us/library/aa822854(v=vs.85).aspx
감사합니다.
2018년 6월 14일 목요일 오전 2:37 -
안녕하세요?
WMI는 DCOM 기반으로 Built in 되었기 때문에 WMI로 원격 관리서버와 연결시에는 초기 통신을 위하여 TCP 135 포트를 사용하게 되며 이후 OS에 따라 TCP 1024에서 65535까지 또는 TCP 49152에서 65535까지의 포트 중 사용가능한 포트에 연결하여 통신을 하게 됩니다.
즉 TCP 135 포트는 변경할 수 없는 것으로 확인되며 초기 연결 이후 사용하는 포트만 변경 가능한것으로 확인됩니다.
[참고 절]
To enable WMI traffic using separate rules for DCOM, WMI, callback sink and outgoing connections-
To establish a firewall exception for DCOM port 135, use the following command.
netsh advfirewall firewall add rule dir=in name="DCOM" program=%systemroot%\system32\svchost.exe service=rpcss action=allow protocol=TCP localport=135
-
To establish a firewall exception for the WMI service, use the following command.
netsh advfirewall firewall add rule dir=in name ="WMI" program=%systemroot%\system32\svchost.exe service=winmgmt action = allow protocol=TCP localport=any
This requires RPC/WMI access through port 135 and ports 49152-65535 inbound to the computer on which the policy is being refreshed.
[참고자료]
Setting up a Remote WMI Connection
https://msdn.microsoft.com/en-us/library/aa822854%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Service overview and network port requirements for Windows
감사합니다.
2018년 6월 14일 목요일 오전 7:24 -