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
- Create a new empty Fileset (From the Fileset View : New Desktop Fileset > Empty : Type a Name > OK)
- With it selected: Click the Scripts item in the button bar
- Create a new activation script and name it.
- Paste the script below and edit
#!/bin/bash # This will remove JAMF from macOS # 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 }
CheckBinaryRemoveJamf# This will remove JAMF from macOS(){ $jamf_binary removeFramework } CheckBinary RemoveJamf exit - Associate as standard or scheduled