Skip to main content
Question

How to trigger a script from policy for inactive computers

  • August 17, 2022
  • 1 reply
  • 0 views

Forum|alt.badge.img+2

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? 

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • August 17, 2022

@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)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings