mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-18 00:45:19 +00:00
Identify MFA Deployment Source for M365 Users
scope update
This commit is contained in:
parent
b1ee9f9d02
commit
2fe5a37380
@ -17,7 +17,17 @@ Script Highlights:
|
|||||||
8. The script is scheduler-friendly, making it easy to automate.
|
8. The script is scheduler-friendly, making it easy to automate.
|
||||||
9. It supports certificate-based authentication (CBA) too.
|
9. It supports certificate-based authentication (CBA) too.
|
||||||
|
|
||||||
|
Change Log:
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
V1.0 (July 3, 2024) - File created
|
||||||
|
V1.1 (Nov 04, 2024) - Scope updation to resolve permission issue
|
||||||
|
|
||||||
|
|
||||||
For detailed Script execution: : https://o365reports.com/2024/06/26/identity-mfa-deployment-source-in-microsoft-365-using-powershell/
|
For detailed Script execution: : https://o365reports.com/2024/06/26/identity-mfa-deployment-source-in-microsoft-365-using-powershell/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
============================================================================================
|
============================================================================================
|
||||||
#>
|
#>
|
||||||
param
|
param
|
||||||
@ -178,7 +188,7 @@ try
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Connect-MgGraph -Scopes 'User.Read.All','Policy.Read.all','Policy.ReadWrite.SecurityDefaults','Team.ReadBasic.All','Directory.Read.All' -NoWelcome
|
Connect-MgGraph -Scopes 'User.Read.All','Policy.Read.all','Policy.ReadWrite.SecurityDefaults','Team.ReadBasic.All','Directory.Read.All','AuditLog.Read.All' -NoWelcome
|
||||||
Write-Host Connected to Microsoft Graph PowerShell using (Get-MgContext).Account account -ForegroundColor Yellow
|
Write-Host Connected to Microsoft Graph PowerShell using (Get-MgContext).Account account -ForegroundColor Yellow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user