简体   繁体   English

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

[英]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.

相关问题 Exchange Online Powershell BasicAuthToOAuth 不适用于 WSManConnectionInfo - Exchange Online Powershell BasicAuthToOAuth not working with WSManConnectionInfo 使用WSManConnectionInfo或命令窗口的远程Exchange Powershell(安全性) - Remote Exchange Powershell using WSManConnectionInfo or Command Window (security) 什么时候使用-Co​​mputerName,什么时候使用-Co​​nnectionUri? - When to use -ComputerName and when -ConnectionUri? PowerShell + Exchange Online - 使用 Where-Object 针对不同的 object 过滤一个 object? - PowerShell + Exchange Online - Using Where-Object to filter one object against different object? Windows 8上的Powershell Exchange 2010 - Powershell Exchange 2010 on Windows 8 创建AD对象-不交换 - Create AD Object - Not Exchange WSManConnectionInfo和PSCredential作为另一个用户的Runspace Powershell命令 - WSManConnectionInfo and PSCredential for Runspace Powershell Commands as Another User 从Windows Powershell运行Exchange命令 - Run Exchange command from Windows Powershell 为什么此代码在Windows和Linux之间打印出不同的结果? - Why does this code print a different result between Windows and Linux? Windows 窗体在 Powershell 和 Powershell ISE 中看起来不同。 为什么? - Windows Forms look different in Powershell and Powershell ISE. Why?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM