change: refactor Get-CISSpoOutput to support application auth using Pnp Powershell

This commit is contained in:
DrIOS
2024-08-04 13:51:29 -05:00
parent 357f284d08
commit da968db3e2
2 changed files with 133 additions and 21 deletions

View File

@@ -33,7 +33,7 @@ function Invoke-TestFunction {
return $result
}
catch {
Write-Error "An error occurred during the test: $_"
Write-Error "An error occurred during the test $recnum`:: $_"
$script:FailedTests.Add([PSCustomObject]@{ Test = $functionName; Error = $_ })
# Call Initialize-CISAuditResult with error parameters