为什么在WSManConnectionInfo对象中connectionUri与交换和windows的不同?

cmm*_*ser 3 powershell connection-string wsman

对于交换,uri使用的连接是:

http://machineName/powershell
Run Code Online (Sandbox Code Playgroud)

WSManConnectionInfo对象按以下方式创建:

WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://machineName/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", ExchangeCredential)
Run Code Online (Sandbox Code Playgroud)

要连接到Windows,使用的是uri

http://machineName:5985/wsman 
Run Code Online (Sandbox Code Playgroud)

WSManConnectionInfo对象按以下方式创建:

WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://machineName:5985/wsman"), "http://schemas.microsoft.com/powershell/Microsoft.PowerShell", credential);
Run Code Online (Sandbox Code Playgroud)

为什么交换和窗口的连接uri有区别?

Tro*_*ndh 6

Exchange实现了自己的PowerShell远程端点,该端点是IIS托管的.此终结(以及其他内容)实现基于角色的访问控制(RBAC),仅允许访问连接用户有权使用的Cmdlet(默认端点不执行此操作).