Skript Beschreibung
Zusammenfassung: Device-Health-Check - A self-service diagnostic tool for end-users.
Prüfstatus: Ungeprüft
Aus dem bestehenden GitHub-Bestand übernommen; fachliche und Tenant-Abnahme ausstehend.
Gathers basic device health information (Sync status, Compliance, OS version)
and presents it as a "Health Card". Ideal for users to provide a snapshot
of their device state to the helpdesk.
#>
[CmdletBinding()]
param ()
process {
Write-Host "[INFO] Running Device Health Check..." -ForegroundColor Cyan
$Device = Get-MgDeviceManagementManagedDevice -Filter "deviceId eq '$((Get-MgDevice -Filter "displayName eq '$env:COMPUTERNAME'")