Skip to Content
AutomatisierungBackup & Restore

Backup & Restore

Strategien und Werkzeuge fĂĽr die Sicherung und Wiederherstellung von Intune-Konfigurationen. Da Intune ein Cloud-Service ist und Microsoft keine native Backup-Funktion bietet, ist ein eigenes Backup-Konzept unverzichtbar.

Important

Intune Backups sichern nur die Konfiguration (Policies, Profile, Zuweisungen) — nicht die Gerätedaten, App-Inhalte oder Benutzerdaten. Sie sind ein Schutz gegen versehentliche Fehlkonfigurationen und ermöglichen eine schnelle Wiederherstellung des gewünschten Zustands.


Warum Backup?

SzenarioOhne BackupMit Backup
Admin löscht versehentlich eine PolicyPolicy muss manuell neu erstellt werden — Einstellungen unklarJSON-Import in 2 Minuten
OIB-Update geht schiefRollback unklar, was war der vorherige Zustand?Letztes Backup wiederherstellen
Mandanten-Wechsel (MSP)Alle Konfigurationen manuell dokumentieren und übertragenExport → Import in neuen Tenant
Security Audit„Zeigen Sie uns den Config-Stand von vor 3 Monaten” — unmöglichGit-Historie durchsuchen

Backup-Methoden

IntuneBackupAndRestore (Concat Standard)

Community-PowerShell-Modul fĂĽr automatisierte Policy-Backups. Produziert JSON-Dateien, die in einem Git-Repository versioniert werden.

Modul installieren

Install-Module -Name IntuneBackupAndRestore -Force Install-Module -Name Microsoft.Graph.Authentication -Force

Backup erstellen

# Verbindung herstellen Connect-MgGraph -Scopes "DeviceManagementConfiguration.Read.All", "DeviceManagementApps.Read.All", "DeviceManagementManagedDevices.Read.All", "Policy.Read.All" # Backup in datiertem Ordner $backupPath = "C:\IntuneBackup\$(Get-Date -Format 'yyyy-MM-dd')" Start-IntuneBackup -Path $backupPath Write-Host "Backup erstellt: $backupPath" -ForegroundColor Green

In Git committen

# Im Backup-Repository Set-Location "C:\IntuneBackup" git add . git commit -m "Intune Backup $(Get-Date -Format 'yyyy-MM-dd HH:mm')" git push

Restore (bei Bedarf)

# Einzelne Policy wiederherstellen Connect-MgGraph -Scopes "DeviceManagementConfiguration.ReadWrite.All" Start-IntuneRestoreDeviceCompliancePolicy -Path "C:\IntuneBackup\2025-01-15" # Oder: Start-IntuneRestoreDeviceConfiguration # Oder: Start-IntuneRestoreConfigurationPolicy

Was wird gesichert?

ObjektGesichert?FormatRestore möglich?
Compliance Policiesâś…JSONâś… Ja
Configuration Profilesâś…JSONâś… Ja
Settings Catalog Policiesâś…JSONâś… Ja
Endpoint Security Policiesâś…JSONâś… Ja
App Protection Policiesâś…JSONâś… Ja
Conditional Access Policiesâś…JSONâś… Ja
Autopilot Profilesâś…JSONâś… Ja
PowerShell Scriptsâś…JSON + PS1âś… Ja
Group Policy Analytics✅JSON⚠️ Read-only
Apps (Konfiguration & Zuweisung)✅JSON⚠️ Teilweise
Apps (Binaries / .intunewin)❌—❌ Nein
Gerätedaten❌—❌ Nein
Benutzerdaten❌—❌ Nein
Warning

App-Binaries werden nicht gesichert! Die .intunewin-Dateien müssen separat archiviert werden (z. B. in einem Dateiserver-Share oder Azure Blob Storage). Ohne die Binaries kann eine gelöschte App nicht wiederhergestellt werden.


Backup-Strategie (Concat Standard)

AspektStandard
HäufigkeitWöchentlich (automatisiert, Sonntag Nacht)
Vor ÄnderungenManuelles Backup vor jedem OIB-Update oder größeren Policy-Änderungen
SpeicherortGit-Repository (Azure DevOps oder GitHub)
AufbewahrungUnbegrenzt (Git-Historie) — mindestens 6 Monate aktiv
Restore-TestQuartalsweise in einem Test-Tenant
App-BinariesSeparat archivieren (nicht in Git — Dateien sind zu groß)
VerantwortlichConcat Operations Team (bei Managed Services) oder Kunden-IT

Querverweise

ThemaVerwandte Seite
Graph API GrundlagenGraph API Basics
Tenant Deployment WorkflowTenant Deployment
PowerShell SkriptePowerShell Repo
Config-Backup vor Go-LiveGo-Live Checkliste
Projektabschluss: Baseline sichernMigrations-Roadmap Phase 5
Last updated on