Posted on 08-17-2022 04:33 AM
Hi All,
I am having hard time finding a solution to something that should be easy thing to do.
More details: I am working on a script that will change the status of a computer that is inactive longer then X days. I am using smart group for the filter and policy to deploy it.
The problem is to run a policy you need a trigger from the computer which is impossible given that the script and policy is for inactive computers to run and it will do the changes from the Jamf server side nothing on the local machine.
Is there a way how I can do this?
Posted on 08-17-2022 05:54 AM
@EK2000 You could run a script on your computer that uses the Jamf API to pull the list of Macs that have been added to your Smart Group of inactive machines and then runs your script to make the changes to their info on the server side (which would also entail using the Jamf Pro API)