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 {
23
23
$PolicyFile = $RawJSON | ConvertFrom-Json
24
24
$Null = $PolicyFile | Add-Member - MemberType NoteProperty - Name ' description' - Value $description - Force
25
25
$null = $PolicyFile | Add-Member - MemberType NoteProperty - Name ' displayName' - Value $displayname - Force
26
+ $PolicyFile = $PolicyFile | Select-Object * - ExcludeProperty ' apps'
26
27
$RawJSON = ConvertTo-Json - InputObject $PolicyFile - Depth 20
27
28
$TemplateTypeURL = if ($TemplateType -eq ' windowsInformationProtectionPolicy' ) { ' windowsInformationProtectionPolicies' } else { " $ ( $TemplateType ) s" }
28
29
$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