페이지 트리

버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

이 문서는 Bamboo 에서  Powershell을 통해 원격 서버로 접속하기 위한 설정을 공유하기 위해 작성되었다. 


Destination - Powershell 리모트 접속 Enable

코드 블럭
Enable-PSRemoting -Force


리모트 Destination - 리모트 접속을 위한 winrm 설정

코드 블럭
winrm quickconfig


접속 Destination - 접속 계정 Powershell PSSession 그룹 추가

코드 블럭
Set-PSsessionConfiguration -ShowSecurityDescriptorUI -Name Microsoft.PowerShell


Source - 신뢰할 수 있는 서버 목록 조회

코드 블럭
Get-Item WSMan:\localhost\Client\TrustedHosts


Source - 신뢰할 수 있는 서버 추가

코드 블럭
Set-Item WSMan:\localhost\Clent\TrustedHosts -Value "server ip" -Force


Source - 원격 서버 접속 테스트

코드 블럭
$username = "admin"
$password = ConvertTo-SecureString "password" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password
Enter-PSSession -ComputerName "server ip" -Credential $cred

...