add: Adds new CSV for PowerShell commands and updates PnP update check handling

This commit is contained in:
DrIOS
2025-03-23 15:39:50 -05:00
parent 3e4214c070
commit e16c147e7d
3 changed files with 47 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ function Invoke-M365SecurityAudit {
}
if ($AuthParams) {
$script:PnpAuth = $true
$defaultPNPUpdateCheck = $env:PNPPOWERSHELL_UPDATECHECK
$env:PNPPOWERSHELL_UPDATECHECK = 'Off'
}
# Check for 4.0.0 specific tests when in 3.0.0 mode
@@ -333,5 +334,6 @@ function Invoke-M365SecurityAudit {
}
End {
# Placeholder
$env:PNPPOWERSHELL_UPDATECHECK = $defaultPNPUpdateCheck
}
}