我必须使用如下命令:
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
答案 0 :(得分:0)
您肯定在Exchange命令行管理程序外部运行这些命令。它是使用特定控制台文件并加载其他cmdlet的PowerShell控制台,即您需要的cmtrats。
请参阅:https://msdn.microsoft.com/en-us/library/cc505910.aspx
有关在经典PowerShell控制台中加载cmdlet的相关问题:Exchange Powershell - How to invoke Exchange 2010 module from inside script?