Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

Assign SecurityBaseline

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

68_Assign-SecurityBaseline.ps1

<#
.SYNOPSIS
    Weist eine Security Baseline zu.
    
.DESCRIPTION
    Weist eine Baseline-Instanz einer Gruppe zu.
    Erfordert die Berechtigung 'DeviceManagementConfiguration.ReadWrite.All'.

.NOTES
    File Name: 68_Assign-SecurityBaseline.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param (
    [string]$BaselineId,
    [string]$GroupId
)

# Placeholder: Baseline assignment is similar to Profile assignment but uses Intent objects.
Write-Host "Baseline Zuweisung (Logic placeholder)."