14 July 2026

Intune - documentation and backup. Part 4

IntuneManagement

Now, download "Intune Management" from "https://github.com/Micke-K/IntuneManagement", and copy all files to the "intunemanagement" file share.

Because we want "IntuneManagement" to run unattended, we will have to create 2 json files:

  • BulkDocumentation.json
  • BulkExport.json
and put them in the intunemanagement share.


BulkDocumentation.json


{
    "BulkDocumentation":  [
                              {
                                  "Name":  "cbDocumentationType",
                                  "Value":  "html"
                              },
                              {
                                  "Name":  "cbDocumentationLanguage",
                                  "Value":  "en"
                              },
                              {
                                  "Name":  "cbDocumentationPropertySeparator",
                                  "Value":  ";"
                              },
                              {
                                  "Name":  "cbDocumentationObjectSeparator",
                                  "Value":  "\r\n"
                              },
                              {
                                  "Name":  "txtDocumentFilter",
                                  "Value":  ""
                              },
                              {
                                  "Name":  "txtDocumentFromFolder",
                                  "Value":  ""
                              },
                              {
                                  "Name":  "cbNotConifugredText",
                                  "Value":  null
                              },
                              {
                                  "Name":  "chkSkipNotConfigured",
                                  "Value":  false
                              },
                              {
                                  "Name":  "chkSkipDefaultValues",
                                  "Value":  false
                              },
                              {
                                  "Name":  "chkSkipDisabled",
                                  "Value":  true
                              },
                              {
                                  "Name":  "cbDocumentationValueOutputProperty",
                                  "Value":  "value"
                              },
                              {
                                  "Name":  "chkSetUnconfiguredValue",
                                  "Value":  true
                              },
                              {
                                  "Name":  "chkSetDefaultValue",
                                  "Value":  false
                              },
                              {
                                  "Name":  "chkIncludeScripts",
                                  "Value":  true
                              },
                              {
                                  "Name":  "chkExcludeScriptSignature",
                                  "Value":  false
                              },
                              {
                                  "Name":  "chkExcludeAssignments",
                                  "Value":  false
                              },
                              {
                                  "Name":  "txtHTMLDocumentName",
                                  "Value":  "C:\\Intune\\IntuneManagement\\Documentation\\%Date%-Doc.html"
                              },
                              {
                                  "Name":  "txtHTMLCSSFile",
                                  "Value":  ""
                              },
                              {
                                  "Name":  "chkHTMLOpenDocument",
                                  "Value":  false
                              },
                              {
                                  "Name":  "cbHTMLDocumentOutputFile",
                                  "Value":  "Full"
                              },
                              {
                                  "Name":  "txtDocumentationRawData",
                                  "Value":  ""
                              },
                              {
                                  "Name":  "ObjectTypes",
                                  "Type":  "Custom",
                                  "ObjectTypes":  [
                                                      "AppConfiguration",
                                                      "AppProtection",
                                                      "AppleEnrollment",
                                                      "Azure",
                                                      "Apps",
                                                      "ConditionalAccess",
                                                      "CustomAttributes",
                                                      "CompliancePolicies",
                                                      "DeviceConfiguration",
                                                      "WinDriverUpdatePolicies",
                                                      "EndpointAnalytics",
                                                      "EndpointSecurity",
                                                      "EnrollmentRestrictions",
                                                      "WinFeatureUpdates",
                                                      "PolicySets",
                                                      "WinQualityUpdates",
                                                      "Scripts",
                                                      "TenantAdmin",
                                                      "WinUpdatePolicies",
                                                      "WinEnrollment"
                                                  ]
                              }
                          ]
}

BulkExport.json

{

    "BulkExport":  [

                       {

                           "Name":  "txtExportPath",

                           "Value":  "C:\\Intune\\IntuneManagement\\Backup\\%Date%"

                       },

                       {

                           "Name":  "txtExportNameFilter",

                           "Value":  ""

                       },

                       {

                           "Name":  "chkAddObjectType",

                           "Value":  true

                       },

                       {

                           "Name":  "chkExportAssignments",

                           "Value":  true

                       },

                       {

                           "Name":  "chkAddCompanyName",

                           "Value":  true

                       },

                       {

                           "Name":  "chkExportScript",

                           "Value":  true

                       },

                       {

                           "Name":  "chkExportApplicationFile",

                           "Value":  true

                       },

                       {

                           "Name":  "chkExportPolicyFile",

                           "Value":  true

                       },

                       {

                           "Name":  "ObjectTypes",

                           "Type":  "Custom",

                           "ObjectTypes":  [

                                               "AdministrativeTemplates",

                                               "ADMXFiles",

                                               "AndroidOEMConfig",

                                               "AppConfigurationManagedApp",

                                               "AppConfigurationManagedDevice",

                                               "AppProtection",

                                               "AppleEnrollmentTypes",

                                               "Applications",

                                               "AuthenticationContext",

                                               "AuthenticationStrengths",

                                               "AutoPilot",

                                               "AzureBranding",

                                               "HardwareConfigurations",

                                               "CoManagementSettings",

                                               "CompliancePolicies",

                                               "CompliancePoliciesV2",

                                               "ComplianceScripts",

                                               "ConditionalAccess",

                                               "MacCustomAttributes",

                                               "DeviceCategories",

                                               "DeviceConfiguration",

                                               "DriverUpdateProfiles",

                                               "EndpointSecurity",

                                               "EnrollmentRestrictions",

                                               "EnrollmentStatusPage",

                                               "FeatureUpdates",

                                               "AssignmentFilters",

                                               "DeviceHealthScripts",

                                               "IntuneBranding",

                                               "InventoryPolicies",

                                               "NamedLocations",

                                               "Notifications",

                                               "PolicySets",

                                               "QualityUpdates",

                                               "ReusableSettings",

                                               "RoleDefinitions",

                                               "ScopeTags",

                                               "PowerShellScripts",

                                               "MacScripts",

                                               "SettingsCatalog",

                                               "TermsAndConditions",

                                               "TermsOfUse",

                                               "UpdatePolicies",

                                               "W365ProvisioningPolicies",

                                               "W365UserSettings"

                                           ]

                       }

                   ]

}


Create these two json files and put them in the intunemanagement share.

Then we are ready for the Automation Account.


No comments:

Post a Comment