Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

Get DeviceDiagnosticsDownloadUrl

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

72_Get-DeviceDiagnosticsDownloadUrl.ps1

<#
.SYNOPSIS
    Holt Download-URL für Diagnoseprotokolle.
    
.DESCRIPTION
    Wenn 'Collect Diagnostics' fertig ist, kann hier die URL abgerufen werden.
    Erfordert die Berechtigung 'DeviceManagementManagedDevices.Read.All'.

.NOTES
    File Name: 72_Get-DeviceDiagnosticsDownloadUrl.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param (
    [string]$DeviceName
)

# Implementation logic: check deviceLogCollectionRequests endpoint
Write-Host "Prüfung auf verfügbare Log-Downloads..."