jseerden / IntuneBackupAndRestore

PowerShell Module that queries Microsoft Graph, and allows for cross-tenant Backup & Restore actions of your Intune Configuration.
MIT License
345 stars 102 forks source link

integer values are not being returned correctly #53

Open brooke-azure opened 2 years ago

brooke-azure commented 2 years ago

From Backup file

Same setting "@odata.type": "#microsoft.graph.omaSettingInteger" "value": "O:BAG:BAD:(A;;RC;;;BA)",

Previous Backup file back in April "@odata.type": "#microsoft.graph.omaSettingInteger" "value": 1,

jseerden commented 2 years ago

Hi Brooke,

What version of the IntuneBackupAndRestore PowerShell module are you using?

As far as I can tell this is about a "Custom" device configuration with an integer value. Do you have an example policy configuration that this applies for, as I am unable to reproduce it?

image

brooke-azure commented 2 years ago

using 3.2

Custom oma-uri settings configuration. Example of one item in the config. { "@odata.type": "#microsoft.graph.omaSettingInteger", "description": "User Account Control: Admin Approval Mode for the Built-in Administrator account\u0027 is set to \u0027Enabled\u0027", "omaUri": "./Device/Vendor/MSFT/Policy/Config/LocalPoliciesSecurityOptions/UserAccountControl_UseAdminApprovalMode", "secretReferenceValueId": null, "value": "O:BAG:BAD:(A;;RC;;;BA)", "isEncrypted": false, "displayName": "User Account Control: Admin Approval Mode for the Built-in Administrator account\u0027 is set to \u0027Enabled\u0027" }

This is pretty continuous on multiple integer settings Can provide more examples.