Skip to content

Instantly share code, notes, and snippets.

@sebastienlevert
Created June 28, 2015 20:56
Show Gist options
  • Save sebastienlevert/f20b850228546aa942cf to your computer and use it in GitHub Desktop.
Save sebastienlevert/f20b850228546aa942cf to your computer and use it in GitHub Desktop.
01-Get-AccessToken
$global:AzureADApplicationTenantId = "00000000-0000-0000-0000-000000000000"
$global:AzureADApplicationClientId = "00000000-0000-0000-0000-000000000000"
$global:AzureADApplicationCertificatePath = "C:\Certificate.pfx"
$global:AzureADApplicationCertificatePassword = "Password"
$exchangeResourceUri = "https://outlook.office365.com/";
. .\Get-AccessToken.ps1
. .\Is-Guid.ps1
$accessToken = Get-AccessToken -ResourceUri $exchangeResourceUri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment