powershell - 激活交换PowerShell命令

标签 powershell exchange-server

我必须使用类似的命令:

Get-TransportServer
Get-OrganizationConfig
Get-MessageTrackingLog

但是看来我必须在Exchange服务器上做一些事情才能使用它们?
我收到ObjectNotFound错误消息。

谢谢你的帮助。

这是代码和错误:
PS C:\Windows\System32> Get-OrganizationConfig | Select ReadTrackingEnabled

Get-OrganizationConfig : The term 'Get-OrganizationConfig' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-OrganizationConfig | Select ReadTrackingEnabled
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-OrganizationConfig:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

最佳答案

您当然可以在Exchange命令行管理程序外部运行这些命令。这是一个使用特定控制台文件并加载其他cmdlet(即此处需要的cmdlet)的PowerShell控制台。

看到这个:https://msdn.microsoft.com/en-us/library/cc505910.aspx

有关在经典PowerShell控制台中加载cmdlet的相关问题:Exchange Powershell - How to invoke Exchange 2010 module from inside script?

关于powershell - 激活交换PowerShell命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38010080/

相关文章:

java - 从 MS Exchange 检索附件的最佳方式

exchange-server - 如何使用 Exchange Web 服务仅检索重复发生的事件主机?

同步到 Exchange 帐户时,iOS 无法更新日历事件

powershell - PowerShell 中的异常日志记录

windows - Cassandra Powershell 问题

powershell - Azure AD - 使用 SP 创建应用程序注册及其凭据

powershell - PowerShell强制参数取决于另一个参数

java - 如何解决 JavaMail 问题 -> javax.mail.MessagingException : 220

powershell - 如果参数集未被使用,有没有办法让 Powershell 函数忽略默认参数的值?

php - 是否可以为非您拥有的站点/服务器设置 cookie?