从Linux计算机远程运行PowerSell命令到Exchange服务器

我们的客户端有一个与Exchange 2010的Windows服务器2008年。我必须从Linux机器连接到交换服务器,并通过PowerShellsearch内部邮箱。

我在这里search,发现了一些解决scheme,但链接o解决scheme不适合我的问题:

从Linux机器连接到Exchange PowerShell 如何 从Linux机器 在Windows Server上远程执行命令? 1

有很多的Python库,但我不能连接到交换服务器没有他们(paramiko,exchangelib,pyexchange与IP地址,用户名,密码)

交换服务器有这个问题吗?

你发现的链接有点过时了,因为去年MS开始提供Linux的Powershell。 https://azure.microsoft.com/en-us/blog/powershell-is-open-sourced-and-is-available-on-linux/

我非常兴奋地分享PowerShell是开源的,并且可以在Linux上使用。

您可以在Linux系统上安装Powershell,然后使用Linux系统上的*-PSSession cmdLets访问Windows系统。 https://github.com/PowerShell/PowerShell

 New-PSSession Disconnect-PSSession Connect-PSSession Receive-PSSession Get-PSSession Remove-PSSession Enter-PSSession Exit-PSSession Export-PSSession Import-PSSession