[英]Why is the connectionUri different in WSManConnectionInfo object for exchange and windows?
For exchange the connection uri used is : 对于交换,uri使用的连接是:
http://machineName/powershell
The WSManConnectionInfo object is created in the following way: WSManConnectionInfo对象按以下方式创建:
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://machineName/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", ExchangeCredential)
To connect to windows, the uri used is 要连接到Windows,使用的是uri
http://machineName:5985/wsman
The WSManConnectionInfo object is created in the following way: WSManConnectionInfo对象按以下方式创建:
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://machineName:5985/wsman"), "http://schemas.microsoft.com/powershell/Microsoft.PowerShell", credential);
Why is there a difference in the connection uri for exchange and windows? 为什么交换和窗口的连接uri有区别?
Exchange implements its own PowerShell remoting endpoint, which is IIS hosted. Exchange实现了自己的PowerShell远程端点,该端点是IIS托管的。 This endpoing (among other things) implements Role-based access control (RBAC), only giving access to the Cmdlets the connecting user has permissions to use (the default endpoint doesn't do this).
此终结(以及其他内容)实现基于角色的访问控制(RBAC),仅允许访问连接用户有权使用的Cmdlet(默认端点不执行此操作)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.