Get-Recipient : The term ‘Get-Recipient’ is not recognized

Get-Recipient The term 'Get-Recipient' is not recognized

Oh no! You want to list your Office 365 recipients with the Get-Recipient CmdLet and receive the following error message:

Get-Recipient : The term 'Get-Recipient' 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-Recipient
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-Recipient:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The error message indicates that the Exchange Module for PowerShell is not loaded and therefore the command “Get-Recipient” is not recognized.

So, most likely you have not yet connected to Exchange Online, or the Exchange Online (EXO) Management Module is not even installed on your system.

EXO V2 Module – Installation and Loading

One way to figure out if the EXO V2 module is installed or not is to run the following command:

PS C:\> Get-Module -ListAvailable *exchange*
    Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.5      ExchangeOnlineManagement            {Get-EXOCasMailbox, Get-EXOMailbox, ...

If the module is missing you’ll need to install it first.

I recommend that you install new PowerShell modules from an administrative PowerShell prompt.

This will protect you from having multiple versions of the same module installed in different folders on your system (more details on PowerShell module loading order here).

Use the following command to install the Exchange Online Management V2 module:

Install-Module ExchangeOnlineManagement

Once the module is installed you can connect to Exchange Online with the following command:

Connect-ExchangeOnline

When the connection has been established, the Get-Recipient command is available for use.

Manage Office 365 Mailboxes Without PowerShell

Some parts of Office 365 mailbox management, like setting calendar permissions, require the use of PowerShell.

To manage Office 365 mailboxes more efficiently, download and install Easy365Manager.

With Easy365Manager, you can directly manage Office 365 mailboxes in the Active Directory Users & Computers management console:

Easy365Manager is a snap-in that extends the user and group properties in AD Users & Computers.

As seen above, with Easy365Manager, you can e.g. set calendar permissions of user mailboxes without using PowerShell. This allows you to save a lot of time during daily administration.

For a complete list of features in Easy365Manager have a look at this.

You can download a fully functional 30-day trial here.

Did you like this post? Maybe your friends will too!