Public/Start-IntuneRestoreConfig.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
function Start-IntuneRestoreConfig() { <# .SYNOPSIS Restore Intune Configuration .DESCRIPTION Restore Intune Configuration .PARAMETER Path Path where backup (JSON) files are located. .EXAMPLE Start-IntuneRestore -Path C:\temp .NOTES Requires the MSGraphFunctions PowerShell Module Connect to MSGraph first, using the 'Connect-Graph' cmdlet. #> [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$Path ) [PSCustomObject]@{ "Action" = "Restore" "Type" = "Intune Backup and Restore Action" "Name" = "IntuneBackupAndRestore - Start Intune Restore Config" "Path" = $Path } Invoke-IntuneRestoreConfigurationPolicy -Path $Path Invoke-IntuneRestoreDeviceCompliancePolicy -Path $Path Invoke-IntuneRestoreDeviceConfiguration -Path $Path Invoke-IntuneRestoreDeviceManagementScript -Path $Path Invoke-IntuneRestoreGroupPolicyConfiguration -Path $Path Invoke-IntuneRestoreDeviceManagementIntent -Path $Path Invoke-IntuneRestoreAppProtectionPolicy -Path $Path } |