Skip to main content
Jamf Nation, hosted by Jamf, is a dynamic and knowledgeable community of Apple-focused IT admins and Jamf Pro users. Join us in person, in October, for the annual Jamf Nation User Conference (JNUC) to discover new and better ways to manage Apple devices.

flushPolicyHistory.sh -- Flush an individual computer's policy history in the JSS

Synopsis

sudo flushPolicyHistory.sh
sudo flushPolicyHistory.sh <mountPoint> <computerName> <currentUsername>

Description

This script is designed to be run on any clients that have been previously managed by The Casper Suite. Running the script will attempt to connect to the JAMF Software Server (JSS) and will flush any historical policy logs for the computer so that the computer appears to have not run any policies. This script is most commonly used as an "At Reboot" script that runs as part of a Casper Imaging configuration to ensure that any policies that were previously run on a client will run again after the machine has been re-imaged.

Download

Preview

Generating Preview...