Use Powershell to export Azure AD Sign-Ins Log

Jamie Hebbs 21 Reputation points
2020-05-20T13:26:41.77+00:00

Is there a way to use Powershell to export the Sign-Ins Log, including fields such as Operating System ?

In particular, the fields from the GUI in the attachment.-

8470-capture.jpg

I tried the AzureADPreview module with get-azureadauditsigninlogs but it doesn't bring back OS. There are also lots of GUIDs in the report too.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,441 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,096 Reputation points MVP
    2020-05-20T14:04:04.387+00:00

    Use the Graph API endpoint: https://learn.microsoft.com/en-us/graph/api/signin-list?view=graph-rest-1.0&tabs=http
    You can use PowerShell as a wrapper for it, via Invoke-WebRequest/Invoke-RestMethod, and avoid the inherit limitations of the AzureAD module.


0 additional answers

Sort by: Most helpful