activate exchange PowerShell commands
10,913
You are most certainly running these commands outside the Exchange Management Shell. It's a PowerShell console using a specific console file and loading additional cmdlets, i.e. the ones you need here.
See this : https://msdn.microsoft.com/en-us/library/cc505910.aspx
Related question about loading the cmdlets in a classic PowerShell console : Exchange Powershell - How to invoke Exchange 2010 module from inside script?
Author by
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
I have to use commands like:
Get-TransportServer Get-OrganizationConfig Get-MessageTrackingLog
But it seems I have to do something on my Exchange server before I can use them? I get an
ObjectNotFound
error message.Thanks for your help.
Here are the code and the error:
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