2024년 5월 22일 수요일

원격지 파워쉘 설정 실

 [원격 Powershell 설정]



[서버]

enable-PSRemoting -force

(에러시) Set-NetConnectionProfile -NetworkCategory Private


(winrm서비스 실행) winrm qucikconfig

(확인) Get-Item WSMan:\localhost\Client\TrustedHosts

(등록) Winrm s winrm/config/client '@{TrustedHosts="*"}'




[클라이언트]

(winrm서비스 실행)winrm quickconfig

(확인) Get-Item WSMan:\localhost\Client\TrustedHosts

(등록) Winrm s winrm/config/client '@{TrustedHosts="*"}'


[접속아이피가 192.168.1.1 이라면]

(접속할때) Enter-PSSession -ComputerName 192.168.1.1



아.. 뭔가 좀.. 심플하고 강력하게.. 안되나??

댓글 없음:

댓글 쓰기