powershell에서 -computername을 사용할 때는 원격에 RemoteRegistry 서비스가 실행중이어야 한다


Get-Process -ComputerName client

Get-Service -ComputerName server

이렇게 명령을 내렸는데 “Couldn’t connect to remote machine”라는 메시지가 발생하면서 접속이 안되는 일이 있다.

이런 이유는 원격 컴퓨터의 서비스 중에서 RemoteRegistry 서비스가 시작되지 않았기 때문이다.

-ComputerName 파라메터는 Enable-PSRemoting -Force 설정과는 무관하다.

단지 원격 컴퓨터에 RemoteRegistry 서비스와 관려되어 있을 뿐이다

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s