PowerShell commands to grant the admin account impersonation rights.

  1. Make sure the admin account is a global admin.

  2. Click on the Windows Start button.

  3. Search for Windows PowerShell (PowerShell should already be installed).

  4. Start PowerShell under an administrator context (right-click -> run as administrator)

  5. Run the following PowerShell commands (one at a time):

Step 1:

Set-ExecutionPolicy Unrestricted

admin-account

Step 2:

$LiveCred = Get-Credential

live-credentials

Enter the user id and password of Office 365 Global admin account.

Step 3:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

session

Step 4:

Import-PSSession $Session

import

import-session

Step 5:

Enable-OrganizationCustomization

enable-organization

Ingore this results, if the error is "This operation is not required. Organization is already enabled for customization."

Step 6:

New-ManagementRoleAssignment -Role "ApplicationImpersonation" -User admin@domain.com

management-roles

Live Chat

Hi, May I help you?

Hide Chat Now