Skip Navigation

Set up
Windows PowerShell

Each
Microsoft 365
tenant can support multiple email domains. You must update an existing
Microsoft 365
domain if you configure the email domain to use
BlackBerry Enterprise Identity
as the identity provider.  Complete these steps to configure a
Microsoft 365
domain. All
Microsoft 365
commands are performed in
Windows PowerShell
.
You must authenticate each time you open a new
Windows PowerShell
session.
  1. Setup and authenticate the following modules using your
    Microsoft 365
    administrator credentials:
    1. Type
      Install-Module -Name Microsoft.Graph
      . Press Enter.
    2. Type
      Import-Module -Name Microsoft.Graph
      . Press Enter.
    3. Type
      Connect-MgGraph -Scopes "Domain.ReadWrite.All","Organization.ReadWrite.All","Directory.AccessAsUser.All"
      . Press Enter.