Skip to content

Commit

Permalink
Update Compliance Quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialEsco committed Aug 9, 2024
1 parent e02c23e commit 242097a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Set-CIPPIntunePolicy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Set-CIPPIntunePolicy {
Write-Host $RawJSON
if ($displayname -in $CheckExististing.displayName) {
$PostType = 'edited'
$ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $PolicyName
$ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName
$CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($tenantFilter) -message "Updated policy $($PolicyName) to template defaults" -Sev 'info'
} else {
Expand Down

0 comments on commit 242097a

Please sign in to comment.