add: UpdateCheck variable off for pnp powershell.

This commit is contained in:
DrIOS
2025-03-10 10:06:49 -05:00
parent d62e914de0
commit 5a995c702f

View File

@@ -175,6 +175,7 @@ function Invoke-M365SecurityAudit {
} }
if ($AuthParams) { if ($AuthParams) {
$script:PnpAuth = $true $script:PnpAuth = $true
$env:PNPPOWERSHELL_UPDATECHECK = 'Off'
} }
# Check for 4.0.0 specific tests when in 3.0.0 mode # Check for 4.0.0 specific tests when in 3.0.0 mode
# Test variables for testing 3.0.0 specific tests for included 4.0.0 tests # Test variables for testing 3.0.0 specific tests for included 4.0.0 tests