Others

How to Fix the Get-ExternalInOutlook Cmdlet Not Recognized Error

Jason MillerJason Miller Oct 23, 2026 870 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Open PowerShell as Administrator

Right-click the Windows Start button, search for 'Windows PowerShell', and select 'Run as administrator' from the context menu.

2
Install the module

Type the command Install-Module -Name ExchangeOnlineManagement -Force and press Enter to download and install the latest version of the module.

3
Import the module

Execute the command Import-Module ExchangeOnlineManagement to load the necessary cmdlets into your active PowerShell session.

4
Connect to Exchange Online

Run Connect-ExchangeOnline and follow the prompts to sign in with your Microsoft 365 Exchange administrator credentials.

5
Retry the cmdlet

Once connected, type Get-ExternalInOutlook and press Enter to verify that the command is now recognized and functioning properly.

Install and Import the ExchangeOnlineManagement Module
Cmdlet Availability Restored: After importing the module and connecting to your tenant, all Exchange Online administrative cmdlets will be available for use in your current session.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Ideal for writing and saving clear IT troubleshooting guides and PowerShell script documentation.Lightweight installation ensures it doesn't slow down administrative workstations.Built-in PDF tools for easily generating and sharing read-only IT policies with your organization.
microsoft office alternative - wps office

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.