Office 365 PowerShell Connection

Hi,
Please run this in a powershell administratif

Import-Module MSOnline
$O365Cred = Get-Credential
$O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session -AllowClobber
Connect-MsolService –Credential $O365Cred

Use 365 Administrator Credential

Leave a Reply

Your email address will not be published. Required fields are marked *