Using extension attributes values in a policy script

emmayche
New Contributor III

I need to run a once-per-day script on each computer which requires a manually-set value for each computer which currently lives in the extension attributes for the computer.

  1. Is this the best way to keep computer-specific values in the JSS?
  2. How do I extract that value into the script so it can be used?

Thanks in advance.

1 REPLY 1

mm2270
Legendary Contributor III

You would need to write a script using the API to get that value from the computer record in the JP server. Rather than write another script of which was likely done already a few times, I would say to search here on API scripts, maybe include 'getting an EA value back' and you will find some good examples.

If you still can't locate anything that helps you, post back and I can throw an example together for you.