Skip to main content

Remove Casper JSS Client Components

Description

To remove all Casper JAMF Software-related components from computers that have been managed by the JSS.

Ingredients

  • FW Central
  • (Other tools, features, and applications that will be needed)

Directions

  1. Create a new empty Fileset (From the Fileset View : New Desktop Fileset > Empty : Type a Name > OK)
  2. With it selected: Click the Scripts item in the button bar
  3. Create a new activation script and name it.
  4. Paste the script below and edit
    #!/bin/zshbash
    
    # Identify the location of the jamf binary for the jamf_binary variable.
    CheckBinary (){
        # Identify location of jamf binary.
        jamf_binary=`/usr/bin/which jamf`
    
        if [[ "$jamf_binary" == "" ]] && [[ -e "/usr/sbin/jamf" ]] && [[ ! -e "/usr/local/bin/jamf" ]]; then
            jamf_binary="/usr/sbin/jamf"
        elif [[ "$jamf_binary" == "" ]] && [[ ! -e "/usr/sbin/jamf" ]] && [[ -e "/usr/local/bin/jamf" ]]; then
            jamf_binary="/usr/local/bin/jamf"
        elif [[ "$jamf_binary" == "" ]] && [[ -e "/usr/sbin/jamf" ]] && [[ -e "/usr/local/bin/jamf" ]]; then
            jamf_binary="/usr/local/bin/jamf"
        fi
    }
    
    # This will remove JAMF from macOS
    /usr/local/jamf/bin/jamf$jamf_binary removeFramework
    
    exit
    
  5. Associate as standard or scheduled