Prerequisites to solving issue / things to check for:
- Do you need to access Microsoft's online services through Powershell?
Steps to solving issue:
If you have not run a Powershell script before, you'll need to enable Remote Signed scripts:
- Open Powershell (Admin)
Set-ExecutionPolicy RemoteSigned
If you haven't installed, or need to update, the Exchange Online Modules:
Install-Module -Name PowerShellGet -Force
Install-Module -Name ExchangeOnlineManagement -Force
Then connect to the Microsoft 365 Azure instance you need to modify:
Connect-ExchangeOnline -UserPrincipalName <username> -ShowProgress $true
You may also use our delegated admin rights now:
Connect-ExchangeOnline -UserPrincipalName <youremail> -ShowProgress $true -DelegatedOrganization <org>.onmicrosoft.com
NOTE: You may have to connect to the tenant's Azure AD through the Microsoft Partner Center before this works!!!
Do what you need to do, then disconnect:
Disconnect-ExchangeOnline
If still no resolution, escalate with Garrett.
