Friday, April 21, 2017

Query Office 365 Tenant ID

The Office 365 Tenant ID is pretty good hidden. Therefore here are two was finding out what's your Tenant ID ist.

Open PowerShell and login into Office 365

Set-ExecutionPolicy RemoteSigned

$credential = Get-Credential
Connect-MsolService -Credential $credential
$Tenantdomain = ''
$TenantID = (Invoke-WebRequest|ConvertFrom-Json).token_endpoint.Split(‘/’)[3]

Finding the Tenant ID in SharePoint


No comments:

Post a Comment