Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

Get CAPolicies

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

131_Get-CAPolicies.ps1

<#
.SYNOPSIS
    Listet alle Conditional Access Policies auf.
    
.DESCRIPTION
    Ruft alle bedingten Zugriffsregeln ab.
    Erfordert die Berechtigung 'Policy.Read.All'.

.NOTES
    File Name: 131_Get-CAPolicies.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

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

Get-MgIdentityConditionalAccessPolicy | Select-Object DisplayName, State, CreatedDateTime