From 8952e2894aa6327f1cf3a682b1962048e469bb80 Mon Sep 17 00:00:00 2001 From: Mikael Karlsson <43226266+Micke-K@users.noreply.github.com> Date: Sun, 3 Aug 2025 20:12:34 +1000 Subject: [PATCH] 3.10.0.8 Fix renaming Settings Catalog policies --- Extensions/EndpointManager.psm1 | 6 +++--- Extensions/MSGraph.psm1 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Extensions/EndpointManager.psm1 b/Extensions/EndpointManager.psm1 index f334c1d..febe37f 100644 --- a/Extensions/EndpointManager.psm1 +++ b/Extensions/EndpointManager.psm1 @@ -221,7 +221,7 @@ function Invoke-InitializeModule Id = "CompliancePoliciesV2" ViewID = "IntuneGraphAPI" API = "/deviceManagement/compliancePolicies" - NameProperty = "Name" + NameProperty = "name" PropertiesToRemove = @('settingCount') ViewProperties = @("name","description","Id") Expand="settings" @@ -606,7 +606,7 @@ function Invoke-InitializeModule API = "/deviceManagement/configurationPolicies" PropertiesToRemove = @('settingCount') Permissons=@("DeviceManagementConfiguration.ReadWrite.All") - NameProperty = "Name" + NameProperty = "name" ViewProperties = @("name","description","Id") Expand="Settings" Icon="DeviceConfiguration" @@ -625,7 +625,7 @@ function Invoke-InitializeModule API = "/deviceManagement/inventoryPolicies" PropertiesToRemove = @('settingCount') Permissons=@("DeviceManagementConfiguration.ReadWrite.All") - NameProperty = "Name" + NameProperty = "name" ViewProperties = @("name","description","Id") Expand="Settings" Icon="DeviceConfiguration" diff --git a/Extensions/MSGraph.psm1 b/Extensions/MSGraph.psm1 index e886482..f916b43 100644 --- a/Extensions/MSGraph.psm1 +++ b/Extensions/MSGraph.psm1 @@ -4082,8 +4082,8 @@ function Show-GraphObjectInfo return } # Save settings here... - $nameProp = (?? $global:dgObjects.SelectedItem.Object.NameProperty "displayName") - $idProp = (?? $global:dgObjects.SelectedItem.Object.IDProperty "id") + $nameProp = (?? $global:dgObjects.SelectedItem.ObjectType.NameProperty "displayName") + $idProp = (?? $global:dgObjects.SelectedItem.ObjectType.IDProperty "id") $updateObj = [PSCustomObject]@{ $idProp = $global:dgObjects.SelectedItem.Object."$idProp"