From 5a995c702f93f48148cb998585b8b623c1848cd9 Mon Sep 17 00:00:00 2001 From: DrIOS <58635327+DrIOSX@users.noreply.github.com> Date: Mon, 10 Mar 2025 10:06:49 -0500 Subject: [PATCH] add: UpdateCheck variable off for pnp powershell. --- source/Public/Invoke-M365SecurityAudit.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Public/Invoke-M365SecurityAudit.ps1 b/source/Public/Invoke-M365SecurityAudit.ps1 index ead0492..8ae5278 100644 --- a/source/Public/Invoke-M365SecurityAudit.ps1 +++ b/source/Public/Invoke-M365SecurityAudit.ps1 @@ -175,6 +175,7 @@ function Invoke-M365SecurityAudit { } if ($AuthParams) { $script:PnpAuth = $true + $env:PNPPOWERSHELL_UPDATECHECK = 'Off' } # 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