In this case a FIM 2010 Server open a new pssession to an Exchange 2013 server by using an URI including https and Kerberos as authentication method.
$cred=Get-Credential
$session =New-PSSession-AuthenticationKerberos-ConfigurationNameMicrosoft.Exchange-ConnectionUri'https://<HOSTNAME>/Powershell' -Credential $cred
The combination of Kerberos and
'http://<HOSTNAME>/Powershell' works.
And also the combination of 'https://<HOSTNAME>/Powershell' and basic authentication.
get-PowerShellVirtualDirectory -server <HOSTNAME>|fl *auth*
CertificateAuthentication : True
InternalAuthenticationMethods : {Basic}
ExternalAuthenticationMethods : {Basic}
LiveIdNegotiateAuthentication : False
WSSecurityAuthentication : False
LiveIdBasicAuthentication : False
BasicAuthentication : True
DigestAuthentication : False
WindowsAuthentication : False
OAuthAuthentication : False
AdfsAuthentication : False
The combination of https and Kerberos will bring access denied if I change 'WindowsAuthitication' of 'PowerShellVirtualDirectory' from 'False' to 'True'.
According to this blog 'no authentication is configured by default.' So I had to enable basic authentication first:
https://justaucguy.wordpress.com/2014/05/21/exchange-2013-remote-powershell-ssl/
Another information which could be important is WSManConfig:
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Listener
Type Keys
Name
---- ----
----
Container {Transport=HTTPS, Address=*} Listener_1305953032
Container {Transport=HTTPS, Address=*} Listener_874393735
Container {Transport=HTTP, Address=*} Listener_1084132640
[PS] C:\Windows\system32>get-Item wsman:\localhost\listener\listener*\port
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Listener\Listener_1305953032
Type Name SourceOfValue
Value
---- ---- -------------
-----
System.String Port
5986
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Listener\Listener_874393735
Type Name SourceOfValue
Value
---- ---- -------------
-----
System.String Port
443
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Listener\Listener_1084132640
Type Name SourceOfValue
Value
---- ---- -------------
-----
System.String Port
5985
I have no idea why Kerberos authentication does not work here.
Soheil