0

우리가 직면 한 문제를 해결하기 위해 노력하고 있습니다.Exchange 서버 연결 HTTPS를 통한 powershell remoting의 EMS

우리는 winRM HTTP 인증을 통해 원격 컴퓨터에서 Exchange Server EMS 스크립트와 통신 할 수 있습니다.

$newSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://test.domain.com/PowerShell/ -Authentication Kerberos -Credential $Credentials  
Import-PSSession $newSession 

는하지만 우리는 WinRM이 HTTPS를 부과해야하는을 포함하여 인증서 생성에 필요한 내가 설정 한 모든 것을, WinRM이 설정 등

그리고 우리는 교환 서버를 사용할 경우 원격 컴퓨터에 연결할 수 :

입력-PSSession을 -ComputerName test.domain.com -Credential $ 자격 증명 -UseSSL

이 작동합니다. 나는 새로운-하여 PSSession에서 -UseSSL을 사용하고 때

이제/EMS에 대한-PSSession을 입력, 그 작동하지 :

$newSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://test.domain.com/PowerShell/ -Credential $Credentials -UseSSL 

Error: New-PSSession : Parameter set cannot be resolved using the specified named parameters.

주의 사항 : I는 HTTPS를 통해 WinRM을 (PowerShell을) 연결이 필요합니다 : - SSL 인증. 당신이 URI를 사용하여 예를 들어

Parameter Set: Uri New-PSSession [-ConnectionUri] [-AllowRedirection] [-Authentication {Default | Basic | Negotiate | NegotiateWithImplicitCredential | Credssp | Digest | Kerberos} ] [-CertificateThumbprint ] [-ConfigurationName ] [-Credential ] [-EnableNetworkAccess] [-Name ] [-SessionOption ] [-ThrottleLimit ] [ ]

당신이 일을해야하는 것은 HTTPS 접두사를 지정하는 것입니다 대신 사용하지 않을 때는 커버 로스/defaut에 /의 CredSSP와

답변