DirWiz Logo
Knowledgebase

Article Tags

Get-MailUser Get-Contact (et al) is not recognized as the name of a cmdlet, function, script file, or operable program

2018-10-01 11:07:32
Errors Office 365 System Requirements Troubleshooting 

The following errors may occur on Discovery or Sync of an Office 365 tenant:

These errors usually result from insufficient access rights on the Office 365 user account being used (Source tab of the connection).

i.e.
CommandNotFoundException: The term 'Get-MailUser' 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.

The exact error will differ depending on the action being taken:

Discovery:
Get-User
Get-MailUser
Get-Mailbox
Get-Contact
Get-MailContact
Get-DistributionGroup

Sync:
Set-Contact
Set-MailContact
Set-DistributionGroup

Please review UnitySync Office 365 login requirements which explains the minimum rights necessary for Discovery of o365.

Also refer to: Powershell script to create limited write account in Office 365

Share this article: Facebook LinkedIn Twitter reddit