How to find out scripts are being used in a policy

howie_isaacks
Valued Contributor II

I need to remove a lot of scripts from my Jamf Pro server. I inherited this Jamf Pro server from the person who held my position before. He didn't leave behind any documentation. To speed up the process I need to find out what scripts are actually in use. I want to remove all of the unused scripts. I will save them somewhere in case any of them are needed later. I looked around for some ideas but none that I could find posted here worked. Does anyone have a good way of doing this?

1 ACCEPTED SOLUTION

dsavageED
Contributor III

You probably want to look at Prune - https://github.com/BIG-RAT/Prune

 

View solution in original post

3 REPLIES 3

dsavageED
Contributor III

You probably want to look at Prune - https://github.com/BIG-RAT/Prune

 

howie_isaacks
Valued Contributor II

Thank you! This seems to work pretty well. It doesn't seem to actually export unused scripts but I don't care. I can copy the scripts into a new file and save it.

sdagley
Esteemed Contributor II

@howie_isaacks If you want to export scripts, or any other object in a JSS, then take a look at JamfMigrator with the Export Only option enabled.