C# 微软';Exchange powershell架构的url不再有效

C# 微软';Exchange powershell架构的url不再有效,c#,powershell,exchange-server,C#,Powershell,Exchange Server,我正在尝试创建到托管在IIS 8.5-Windows Server 2012 R2上的exchange Powershell的远程连接 这是我的密码: var connInfo = new WSManConnectionInfo( new Uri("https://xxx/PowerShell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", c

我正在尝试创建到托管在IIS 8.5-Windows Server 2012 R2上的exchange Powershell的远程连接

这是我的密码:

var connInfo = new WSManConnectionInfo(
            new Uri("https://xxx/PowerShell"),
            "http://schemas.microsoft.com/powershell/Microsoft.Exchange",
            credentials);
看起来Microsoft的架构url不再有效。如果导航到,我有以下内容:

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
当我尝试打开连接时,出现以下错误:

Connecting to remote server failed with the following error message : The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure.

url是否可能已更改?我试图找到一个关于它的主题,但没有发现任何变化的痕迹…

架构uri不必是“有效的”,因为您不必能够导航到它。我知道我没有正确地解释它,但它更多的是一个参考,而不是一个有效的位置

您收到的错误实际上是指Exchange服务器的uri。如果未连接到Exchange服务器,则连接将出错