我想用PowerShell远程连接到我的Exchange服务器。 Exchange服务器位于其自己的专用Exchange林中。我试图在没有Exchange服务器的林中打开连接。通过PowerShell远程连接到交换服务器时出错
这是我在我的PowerShell脚本:
$powershell_url = "http://exhange_server_url.com/PowerShell/"
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $powershell_url -Authentication Kerberos
当我运行该脚本,我得到这个错误:
[exhange_server_url.com] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffic is disabled in the service configuration. Verify the unencrypted traffic setting in the service configuration or specify one of the authentication mechanisms supported by the server. To use Kerberos, sp ecify the computer name as the remote destination. Also verify that the client computer and the destination computer ar e joined to a domain. To use Basic, specify the computer name as the remote destination, specify Basic authentication a nd provide user name and password. Possible authentication mechanisms reported by server: For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc eption + FullyQualifiedErrorId : PSSessionOpenFailed
请问该如何解决这个问题?
是,该账户进行远程访问功能。 –