我必须使用类似的命令:
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/