Unmanage device using API - None Mac

G_Man
Visitor

Hi Team,

Apologies if this was ask before but I cannot find the proper process to unmanaged devices that are no longer on the network.

A lot of conversation around using API and CURL command but as a none mac user, I cannot figure out how to use.

I know it's not great to other people who work hard to post and reply to those query but i'm struggling to know what to use and how to use the API

We use windows base system and servers and Jamf Pro cloud

Can someone please help me?

Thank you in advance

Regards

G_Man

2 REPLIES 2

AJPinto
Honored Contributor III

API is API, it does not matter what scripting language you use. Jamf is Apple focused, so all their documentation is in bash however you can just convert the commands to Powershell or whatever other scripting language you want. All that matters is the bits that get to the Jamf server are something Jamf understands, what language your device needs to use to deploy the commands is irrelevant to Jamf. You should be able to find quite a few guides on the internet, or use AI to craft a script for you. 

 

https://techitout.xyz/2024/02/03/automate-jamf-management-framework-redeployment-with-an-azure-runbo...

https://techitout.xyz/2024/07/29/update-using-powershell-with-jamf-pro-api/

https://www.powershellgallery.com/packages/JamfPSPro/1.0.0 

sdagley
Esteemed Contributor II

@G_Man Even if you're normally working on Windows systems and servers if you're managing Macs you hopefully have access to one for testing. As a good example of how to use the API see @rtrouton 's blog post on a script he wrote that will change a Mac from unmanaged to managed using the API: https://derflounder.wordpress.com/2023/08/15/updating-management-status-in-jamf-pro-computer-invento... 

Figuring out how to modify that script to change a Mac from managed to unmanaged would be a good learning experience.