diff --git a/src/Export-MsIdAppConsentGrantReport.ps1 b/src/Export-MsIdAppConsentGrantReport.ps1 index 2433f5a..4197619 100644 --- a/src/Export-MsIdAppConsentGrantReport.ps1 +++ b/src/Export-MsIdAppConsentGrantReport.ps1 @@ -7,7 +7,6 @@ .DESCRIPTION This cmdlet requires the `ImportExcel` module to be installed if you use the `-ReportOutputType ExcelWorkbook` parameter. - .EXAMPLE PS > Install-Module ImportExcel PS > Connect-MgGraph -Scopes Directory.Read.All diff --git a/src/Export-MsIdAzureMfaReport.ps1 b/src/Export-MsIdAzureMfaReport.ps1 index 08f5d0a..9d6607a 100644 --- a/src/Export-MsIdAzureMfaReport.ps1 +++ b/src/Export-MsIdAzureMfaReport.ps1 @@ -75,12 +75,13 @@ - Sign-in to the **[Entra Admin Portal](https://entra.microsoft.com)** - From the left navigation select: **Identity** → **Monitoring & health** → **Sign-in logs**. - Select the **Date** filter and set to **Last 7 days** - - Select **Add filters** → **Application** and type in: **Azure** + - Select **Add filters** → **Application** and click **Apply** + - Type in: **Azure** and click **Apply** - Select **Download** → **Download JSON** - - Set the **File Name** of the first textbox to **signins** and select it's **Download** button. + - Set the **File Name** of the first textbox to **signins** and click **Download**. - Once the file is downloaded, copy it to the folder where the export command will be run. - Re-run this command with the **-SignInsJsonPath** option. + Run the export with the **-SignInsJsonPath** option. ```powershell Export-MsIdAzureMfaReport ./report.xlsx -SignInsJsonPath ./signins.json ``` @@ -156,11 +157,11 @@ function Export-MsIdAzureMfaReport { } } - if ($UsersMfa) { - # We only need to generate the report. - $azureUsersMfa = $UsersMfa - } - else { + # if ($UsersMfa) { + # # We only need to generate the report. + # $azureUsersMfa = $UsersMfa + # } + # else { if (![string]::IsNullOrEmpty($SignInsJsonPath)) { # Don't look up graph if we have the sign-ins json (usually free tenant download from portal) $Users = Get-MsIdAzureUsers -SignInsJsonPath $SignInsJsonPath @@ -171,7 +172,7 @@ function Export-MsIdAzureMfaReport { $Users = Get-MsIdAzureUsers -Days $Days } $azureUsersMfa = GetUserMfaInsight $Users # Get the MFA status - } + # } if ($isExcel) { if ($null -eq $azureUsersMfa) { @@ -179,7 +180,6 @@ function Export-MsIdAzureMfaReport { } else { GenerateExcelReport $azureUsersMfa $ExcelWorkbookPath - Write-Host "Note: The 'MFA Status' column does not apply for users signing in using Certificate Based Authentication and/or third-party MFA providers." -ForegroundColor Yellow } } diff --git a/src/Get-MsIdAzureUsers.ps1 b/src/Get-MsIdAzureUsers.ps1 index ec1cd32..ded6e16 100644 --- a/src/Get-MsIdAzureUsers.ps1 +++ b/src/Get-MsIdAzureUsers.ps1 @@ -198,9 +198,10 @@ function Get-MsIdAzureUsers { Write-Host "- Sign-in to https://entra.microsoft.com" -ForegroundColor Green Write-Host "- From the left navigation select: Identity → Monitoring & health → Sign-in logs." -ForegroundColor Green Write-Host "- Select the 'Date' filter and set to 'Last 7 days'" -ForegroundColor Green - Write-Host "- Select 'Add filters' → 'Application' and type in: Azure" -ForegroundColor Green - Write-Host "- Select 'Download → Download JSON" -ForegroundColor Green - Write-Host "- Set the 'File Name' of the first textbox to 'signins' and select it's Download button." -ForegroundColor Green + Write-Host "- Select 'Add filters' → 'Application' and click 'Apply'" -ForegroundColor Green + Write-Host "- Type in 'Azure' and click 'Apply'" -ForegroundColor Green + Write-Host "- Select 'Download' → 'Download JSON'" -ForegroundColor Green + Write-Host "- Set the 'File Name' of the first textbox to 'signins' and click 'Download'." -ForegroundColor Green Write-Host "- Once the file is downloaded, copy it to the folder where the export command will be run." -ForegroundColor Green Write-Host Write-Host "Re-run this command with the -SignInsJsonPath parameter." -ForegroundColor Green