3.10.0.8
Fix renaming Settings Catalog policies
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user