fix: Module check for Get-MFAStatus
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
https://criticalsolutionsnetwork.github.io/M365FoundationsCISReport/#Get-MFAStatus
|
https://criticalsolutionsnetwork.github.io/M365FoundationsCISReport/#Get-MFAStatus
|
||||||
#>
|
#>
|
||||||
function Get-MFAStatus {
|
function Get-MFAStatus {
|
||||||
|
[OutputType([System.Object])]
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param (
|
param (
|
||||||
[Parameter(Mandatory = $false)]
|
[Parameter(Mandatory = $false)]
|
||||||
@@ -37,6 +38,7 @@ function Get-MFAStatus {
|
|||||||
|
|
||||||
begin {
|
begin {
|
||||||
# Connect to Microsoft Online service
|
# Connect to Microsoft Online service
|
||||||
|
Import-Module MSOnline -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
process {
|
process {
|
||||||
|
Reference in New Issue
Block a user