PowerShell Module that authenticates and gets data from the Apple Business Manager APIs
Find a file
2025-06-12 10:19:07 -07:00
.gitignore Initial Version 2025-06-12 10:19:06 -07:00
ABMPS.psd1 Add icon 2025-06-12 10:19:07 -07:00
AppleBusinessManager.psm1 Add Get/Read operations, better credential refreshing 2025-06-12 10:19:07 -07:00
icon.png Add icon 2025-06-12 10:19:07 -07:00
LICENSE Add license, update to link to project URI 2025-06-12 10:19:06 -07:00
README.md Add icon 2025-06-12 10:19:07 -07:00

A terminal caret with a prompt line, with a briefcase in a squircle Apple Business Manager API Module for PowerShell

PowerShell Module that authenticates and gets data from the Apple Business Manager APIs

Installing the module

This module can be installed from the PowerShell Gallery using the following command:

Install-Module -Name ABMPS

Converting your private key

The private key that you can download from the Apple Business Manager portal isn't in a format that is currently supported. To use this module, you'll need to convert it, for example, using openssl:

openssl pkcs8 -topk8 -inform PEM -outform PEM -in FROM_APPLE_PATH.pem -out CONVERTED_PATH.pem -nocrypt

Using the module

After converting, you can connect to Apple Business Manager's APIs with the following commands, then use other commands to retrieve data:

$PrivateKey = (Get-Content -Path 'CONVERTED_PATH.pem') -join ''

Connect-AppleBusinessManager -ClientId 'YOUR_CLIENT_ID' -PrivateKey $PrivateKey -PrivateKeyId 'YOUR_PRIVATE_KEY_ID'

Get-AppleBusinessManagerOrgDevices