As a follow-on to my previous post on removing the Restart Options section from Jamf Pro policies, I’ve written a script to target the policies in a particular Jamf Pro category. For more details, please see below the jump.
This script is designed to do the following:
- List all categories on a Jamf Pro server.
- Allow a category to be specified.
- List all policies (if any) associated with that category.
- Confirm that the restart options should be removed from all policies in that category.
- Remove the restart options from all policies in that category.
When the script is run, you should see output similar to that shown below.
You’ll be requested to enter the name of a category.
You’ll be asked to confirm that you want to remove the restart options from the relevant policies.
Once confirmed, the restart options will be removed.
The script is available from following address on GitHub: