From 595892526c9690478c266b685abf40a26570ef4f Mon Sep 17 00:00:00 2001 From: John Duprey Date: Thu, 3 Oct 2024 18:31:33 -0400 Subject: [PATCH] Update Get-GraphRequestList.ps1 --- Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1 b/Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1 index ba85c3884bbf..769796f02504 100644 --- a/Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1 +++ b/Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1 @@ -296,7 +296,7 @@ function Get-GraphRequestList { $GraphRequestResults = New-GraphGetRequest @GraphRequest -Caller 'Get-GraphRequestList' -ErrorAction Stop if ($GraphRequestResults.nextLink) { - $Metadata['nextLink'] = $GraphRequestResults.nextLink | Select-Object -Last 1 + #$Metadata['nextLink'] = $GraphRequestResults.nextLink | Select-Object -Last 1 #GraphRequestResults is an array of objects, so we need to remove the last object before returning $GraphRequestResults = $GraphRequestResults | Select-Object -First ($GraphRequestResults.Count - 1) }