sudo unbindAD.sh <mountPoint> <computerName> <currentUsername> <username> <password>
If the $username and $password parameters are specified (parameters 4 and 5), these will be
used to unbind the machine from Active Directory. The username/password that should be used in
this script should be an Active Directory user that has permissions to remove/unbind a machine
from Active Directory.
If no parameters are specified for parameter 4 and 5, the hardcoded value in the script will be
This script will unbind a client machine from an Active Directory domain. The <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 parameter ($4) as the passable parameter.