Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

Get ConfigurationProfiles

Review the purpose, inspect the code, then test it safely in your own tenant.

24_Get-ConfigurationProfiles.ps1

<#
.SYNOPSIS
    Listet alle Konfigurationsprofile (Device Configuration) auf.
    
.DESCRIPTION
    Ruft alle Konfigurationsprofile ab, inkl. Settings Catalog und Admin Templates.
    Erfordert die Berechtigung 'DeviceManagementConfiguration.Read.All'.

.NOTES
    File Name: 24_Get-ConfigurationProfiles.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Connect-MgGraph -Scopes "DeviceManagementConfiguration.Read.All"

$Profiles = Get-MgDeviceManagementDeviceConfiguration -All

Write-Host "Anzahl Profile: $($Profiles.Count)" -ForegroundColor Cyan
$Profiles | Select-Object DisplayName, Id, LastModifiedDateTime | Format-Table -AutoSize