Skip to content

Instantly share code, notes, and snippets.

@aaronparker
Created June 10, 2017 09:50
Show Gist options
  • Save aaronparker/54836d711c7db6fe51b56dc57746bf6f to your computer and use it in GitHub Desktop.
Save aaronparker/54836d711c7db6fe51b56dc57746bf6f to your computer and use it in GitHub Desktop.
$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment