File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed
Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ function Set-CIPPIntunePolicy {
2323 $PolicyFile = $RawJSON | ConvertFrom-Json
2424 $Null = $PolicyFile | Add-Member - MemberType NoteProperty - Name ' description' - Value $description - Force
2525 $null = $PolicyFile | Add-Member - MemberType NoteProperty - Name ' displayName' - Value $displayname - Force
26+ $PolicyFile = $PolicyFile | Select-Object * - ExcludeProperty ' apps'
2627 $RawJSON = ConvertTo-Json - InputObject $PolicyFile - Depth 20
2728 $TemplateTypeURL = if ($TemplateType -eq ' windowsInformationProtectionPolicy' ) { ' windowsInformationProtectionPolicies' } else { " $ ( $TemplateType ) s" }
2829 $CheckExististing = New-GraphGETRequest - uri " https://graph.microsoft.com/beta/$PlatformType /$TemplateTypeURL " - tenantid $tenantFilter
You can’t perform that action at this time.
0 commit comments