rtrouton / rtrouton_scripts

Scripts to share
MIT License
1.3k stars 489 forks source link

Jamf_Pro_Computer_Policy_Download.sh Includes Jamf Remote Policies #54

Closed apizz closed 4 years ago

apizz commented 5 years ago

Was just testing the https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/Jamf_Pro_Computer_Policy_Download/Jamf_Pro_Computer_Policy_Download.sh script and it appears that this will download all policies, including those created by Jamf Remote.

Is it possible to update the script such that it only includes those policies listed in the Computer Policies area?

Looking at the output XML, I can't tell any unique information other than the title containing a colon : but this results in (colon) in the actual output .xml filename.

The root problem here appears that despite these policies being triggered by Jamf Remote, the policy is listed as enabled: <enabled>true</enabled>

Not sure what the best solution is here to address this

rtrouton commented 5 years ago

My own shop isn't using Casper Remote, so I'm not able to do testing to see if there's a unique identifier for Casper Remote policies. If you find one, please let me know.

apizz commented 5 years ago

@rtrouton OK, will do some testing in the near future

apizz commented 4 years ago

I meant to address this, so sorry for leaving open so long. I made a few improvements in our environment which I'm not sure you'd accept in PR if it currently operates the way you need it to