How to Fix the Get-ExternalInOutlook Cmdlet Not Recognized Error
Question details
The user needs to resolve an error where the Get-ExternalInOutlook PowerShell cmdlet fails to execute because it is not recognized as a valid command.
- Product
- Exchange Online PowerShell
- Device & OS
- not provided
- Scenario
- Attempting to run the Get-ExternalInOutlook cmdlet to view or manage external sender identification settings in Microsoft Exchange.
- Observed behavior
- PowerShell returns a 'not recognized as the name of a cmdlet' error, typically because the required ExchangeOnlineManagement module is missing, outdated, or not correctly imported into the session.
Ensure you have administrator privileges on your computer to install new PowerShell modules, and verify that you possess active Exchange administrator credentials for your Microsoft 365 tenant.
Install and Import the ExchangeOnlineManagement Module
Resolve the missing cmdlet error by installing the correct module and connecting to Exchange Online with administrative credentials.
The Get-ExternalInOutlook cmdlet is a part of the ExchangeOnlineManagement module. If this module is not installed or loaded into your current PowerShell session, the system will not recognize the command.
You must run PowerShell with elevated privileges to successfully install and update modules from the PowerShell Gallery.
Right-click the Windows Start button, search for 'Windows PowerShell', and select 'Run as administrator' from the context menu.
Type the command Install-Module -Name ExchangeOnlineManagement -Force and press Enter to download and install the latest version of the module.
Execute the command Import-Module ExchangeOnlineManagement to load the necessary cmdlets into your active PowerShell session.
Run Connect-ExchangeOnline and follow the prompts to sign in with your Microsoft 365 Exchange administrator credentials.
Once connected, type Get-ExternalInOutlook and press Enter to verify that the command is now recognized and functioning properly.

Manage Your IT Documentation Efficiently with WPS Office
While WPS Office does not directly execute PowerShell cmdlets, it serves as the perfect free and lightweight alternative to Microsoft Office for documenting IT procedures, creating script guides, and managing administrative spreadsheets.

Frequently Asked Questions
Why do I need to run PowerShell as an administrator to fix this error?
Installing new modules from the PowerShell Gallery requires administrative permissions to write files to the system-wide module directory. Without these privileges, the installation command will be denied.
How do I check if the ExchangeOnlineManagement module is already installed?
You can verify the installation status and version by running the command Get-Module -ListAvailable -Name ExchangeOnlineManagement in your PowerShell window.
What is the purpose of the Get-ExternalInOutlook cmdlet?
This cmdlet is used by administrators to view the configuration of the external sender identification feature in Outlook, which adds a visible 'External' tag to emails originating from outside the organization.
Can I simply update the module if an older version is already installed?
Yes. If the module is already installed but outdated, you can run Update-Module -Name ExchangeOnlineManagement to fetch the newest version, which may resolve missing cmdlet issues.




