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: 818
Download

Synopsis

sudo unlockRegionCodeSetting.sh
sudo unlockRegionCodeSetting.sh <mountPoint> <computerName> <username> <locked>

If the $locked parameter is specified as true or false (in parameter 4), this is the setting
that will be set.

If no parameter is specified for parameter 4, the hardcoded value in the script will be used.

Description

This script unlocks or locks the system preference authorization to allow or disallow users to set the DVD region code, as reflected in the DVD player application. It has been designed to function on Mac OS X 10.4 and higher with DVD Player.app 1.0 and higher. The locked/unlock value will be set according to the value specified in the paramter $locked. It 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 forth parameter ($4) as the passable parameter. If no parameter is passed, then the hardcoded value will be used.

Preview

Generating Preview...