You may receive the following error message when trying to connect to Exchange Online with PowerShell:
PS C:\> Connect-MgGraph Connect-MgGraph : The term 'Connect-MgGraph' 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.
This error message indicates that you have not yet installed the Microsoft Graph PowerShell module.
The module is found here, and you can install it by running the following command:
Please be aware that the Microsoft Graph PowerShell module is of monstrous proportions. The package exceeds half a GB and takes quite a long time to download and install.
You can verify the installation by looking for folders prefixed with “Microsoft.Graph”.
If you’re installing the Microsoft Graph PowerShell module with admin rights, the folders are downloaded to %program files%\WindowsPowerShell\Modules.
If you’re installing the module without admin rights, the folders are created in %userprofile%\Documents\WindowsPowerShell\Modules.
(read this article for more details on PowerShell module side-by-side installations)
With the Microsoft Graph PowerShell modules downloaded, you’ll be able to connect successfully:
PS C:\> Connect-MgGraph Welcome To Microsoft Graph!
Integration of Microsoft Graph and Active Directory
Easy365Manager is an administration tool that enables Office 365 administration inside Active Directory Users & Computers.
This saves you all the trouble of switching between multiple web consoles and using PowerShell.
With Easy365Manager, you can perform all daily tasks directly from user properties. Even tasks that are only available via PowerShell, like calendar permission management:
You can install Easy365Manager on any computer running AD Users & Computers, and there are no configuration changes to your AD or Office 365.
It takes less than three minutes to install and configure Easy365Manager, and with a free 30-day trial available, it’s completely risk-free.
Start saving loads of time by downloading the free trial here.