You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far I can see I couldn't find VPP token in the graph module. But it also works by using Invoke-MgGraphrequest, remember to also add $headers when using this. Also this one only shows top 25 VPP tokens, so it needs to change a bit to show more.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
NDES Connector:
Get-MgDeviceManagementNdeConnector | Select ConnectorVersion, DisplayName, LastConnectionDateTime, State
DEP Token Status:
Get-MgDeviceManagementDepOnboardingSetting | select AppleIdentifier, TokenExpirationDateTime, LastModifiedDateTime, SyncedDeviceCount -ErrorAction SilentlyContinue
APNS Token Status:
Get-MgDeviceManagementApplePushNotificationCertificate -ErrorAction SilentlyContinue | select AppleIdentifier, ExpirationDateTime, LastModifiedDateTime
VPP Token Status:
$data = (Invoke-MgGraphRequest -Method GET -Uri 'https://graph.microsoft.com/beta/deviceAppManagement/vppTokens?$top=25&$orderBy=' -Headers $headers).value
$data = $data | select DisplayName, organizationName, LastSyncDateTime, state, appleid, ExpirationDateTime
As far I can see I couldn't find VPP token in the graph module. But it also works by using Invoke-MgGraphrequest, remember to also add $headers when using this. Also this one only shows top 25 VPP tokens, so it needs to change a bit to show more.
$headers = @{
"Content-Type" = "application/json"
"Authorization" = "Bearer $($Token.accesstoken)"
}
Beta Was this translation helpful? Give feedback.
All reactions