From a5ba06c2bfcc0d9fc34da1c178429e1c21ebd064 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Wed, 19 Feb 2025 15:17:44 -0800 Subject: [PATCH] refactor: Simplify Connect-SharePoint by removing unsupported parameters --- SharePointFunctions.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SharePointFunctions.ps1 b/SharePointFunctions.ps1 index 7d66ff9..b792bbe 100644 --- a/SharePointFunctions.ps1 +++ b/SharePointFunctions.ps1 @@ -47,14 +47,11 @@ function Connect-SharePoint { # Ignore disconnection errors } - # Use web login with additional parameters for stability + # Use web login with simplified parameters Connect-PnPOnline -Url $siteUrl ` -UseWebLogin ` -ErrorAction Stop ` - -WarningAction SilentlyContinue ` - -RetryCount 3 ` - -RetryWait 3 ` - -Timeout 300 + -WarningAction SilentlyContinue Start-Sleep -Seconds 2 # Give the web login time to complete