Skip to content

Commit a1591da

Browse files
committed
suppress extra output
1 parent 9b53353 commit a1591da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Set-CIPPCAExclusion.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Set-CIPPCAExclusion {
4343

4444
$RawJson = ConvertTo-Json -Depth 10 -InputObject $NewExclusions
4545
if ($PSCmdlet.ShouldProcess($PolicyId, "Add exclusion for $UserID")) {
46-
New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$($CheckExisting.id)" -tenantid $tenantfilter -type PATCH -body $RawJSON -AsApp $true
46+
$null = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$($CheckExisting.id)" -tenantid $tenantfilter -type PATCH -body $RawJSON -AsApp $true
4747
}
4848
}
4949

@@ -65,7 +65,7 @@ function Set-CIPPCAExclusion {
6565
}
6666
$RawJson = ConvertTo-Json -Depth 10 -InputObject $NewExclusions
6767
if ($PSCmdlet.ShouldProcess($PolicyId, "Remove exclusion for $UserID")) {
68-
New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$($CheckExisting.id)" -tenantid $tenantfilter -type PATCH -body $RawJSON -AsApp $true
68+
$null = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$($CheckExisting.id)" -tenantid $tenantfilter -type PATCH -body $RawJSON -AsApp $true
6969
}
7070
}
7171

0 commit comments

Comments
 (0)