Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.
Posted: by jake
Product: Mac OS X
Downloads: 1140


sudo <mountPoint> <computerName> <currentUsername> <serverAddress> <username>  <password>

If the $serverAddress, $username, and $password parameters are specified (parameters 4, 5, and 6), these will be used to unbind the machine from Open Directory. The username/password that should be used in this script should be an Open Directory user that has permissions to remove/unbind a machinefrom Open Directory.

If no parameters are specified for parameters 4, 5, and 6, the hardcoded value in the script will be used.


This script will unbind a client machine from an Open Directory domain. The <serverAddress>, <username>, and <password> values can be used with a hardcoded value in the script, or read in as a parameter. Since the Casper Suite defines the first three parameters as (1) Mount Point, (2) Computer Name and (3) username, we are using the fourth, fifth, and sixth parameters ($4, $5, $6) as the passable parameters.


Generating Preview...