Report Azure AD user IDs last logon timestamp using Microsoft Graph API

It's been a while since I've updated my blog so here we go! This is a step-instruction guide on how to generate Azure AD reports listing all users' last logon time. This is particularly handy as is not possible to generate any such report using AzureAD or AzureADPreview PowerShell modules. Prerequisites Azure Active DirectoryWeb browserMicrosoft … Continue reading Report Azure AD user IDs last logon timestamp using Microsoft Graph API

Connecting PowerShell to Office 365

On your local computer, open Windows PowerShell and run the following command. $UserCredential = Get-Credential In the Windows PowerShell Credential Request dialog box, type your Exchange Online user name and password, and then click OK. Run the following command. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Note   If you are an Office 365 operated … Continue reading Connecting PowerShell to Office 365