From b24bee4ffbd78dfd0e21a066fecae8e42e7c2208 Mon Sep 17 00:00:00 2001 From: Luke Lauterbach <104774644+LukeLauterbach@users.noreply.github.com> Date: Mon, 9 Jan 2023 11:03:43 -0500 Subject: [PATCH 1/2] Fix Results Indentation In the previous version, there were two tab issues that resulted in the indentation of the table being off: 1. If ActiveSync was enabled, only three tabs were used. This resulted in the "Yes" being one tab to the left of the other results. 2. The tabs for ADFS were off, both for enabled and disabled. Both of these tab issues have been corrected. --- MFASweep.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MFASweep.ps1 b/MFASweep.ps1 index d43d7b4..85d5eef 100644 --- a/MFASweep.ps1 +++ b/MFASweep.ps1 @@ -224,8 +224,8 @@ Function Invoke-MFASweep{ else{Write-Host "Active Sync $Tab$Tab$Tab$Tab| $global:asyncresult"} If($IncludeADFS){ - if($glotbal:adfsresult -contains "YES"){Write-Host -NoNewLine "ADFS $Tab$Tab$Tab|"; Write-Host -ForegroundColor Green " $global:adfsresult"} - else{Write-Host "ADFS $Tab$Tab| $global:adfsresult"} + if($glotbal:adfsresult -contains "YES"){Write-Host -NoNewLine "ADFS $Tab$Tab$Tab$Tab$Tab|"; Write-Host -ForegroundColor Green " $global:adfsresult"} + else{Write-Host "ADFS $Tab$Tab$Tab$Tab$Tab| $global:adfsresult"} } } From 61b9de4ccf197bd3a40462ba465cc728763a4e93 Mon Sep 17 00:00:00 2001 From: Luke Lauterbach <104774644+LukeLauterbach@users.noreply.github.com> Date: Mon, 9 Jan 2023 11:05:28 -0500 Subject: [PATCH 2/2] Update MFASweep.ps1 --- MFASweep.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MFASweep.ps1 b/MFASweep.ps1 index 85d5eef..badffaa 100644 --- a/MFASweep.ps1 +++ b/MFASweep.ps1 @@ -220,7 +220,7 @@ Function Invoke-MFASweep{ else{Write-Host "O365 w/ Windows Phone UA $Tab$Tab| $global:o365wpresult"} if($global:ewsresult -contains "YES"){Write-Host -NoNewLine "Exchange Web Services $Tab$Tab$Tab|"; Write-Host -ForegroundColor Green " $global:ewsresult"} else{Write-Host "Exchange Web Services $Tab$Tab$Tab| $global:ewsresult"} - if($global:asyncresult -contains "YES"){Write-Host -NoNewLine "Active Sync $Tab$Tab$Tab|"; Write-Host -ForegroundColor Green " $global:asyncresult"} + if($global:asyncresult -contains "YES"){Write-Host -NoNewLine "Active Sync $Tab$Tab$Tab$Tab|"; Write-Host -ForegroundColor Green " $global:asyncresult"} else{Write-Host "Active Sync $Tab$Tab$Tab$Tab| $global:asyncresult"} If($IncludeADFS){