Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

Sync VppToken

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

147_Sync-VppToken.ps1

<#
.SYNOPSIS
    Startet Synchronisation eines VPP Tokens.
    
.DESCRIPTION
    Aktualisiert Apps und Lizenzen von Apple Business Manager.
    Erfordert die Berechtigung 'DeviceManagementApps.ReadWrite.All'.

.NOTES
    File Name: 147_Sync-VppToken.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param (
    [string]$TokenId
)

Connect-MgGraph -Scopes "DeviceManagementApps.ReadWrite.All"

Invoke-MgSyncDeviceAppMgtVppToken -VppTokenId $TokenId
Write-Host "Sync gestartet."