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 scott.mielke
Product: Mac OS X
Downloads: 3354
Download

Synopsis

[script]sudo setTimeZone.sh[/script]
[script]sudo setTimeZone.sh <mountPoint> <computerName> <currentUsername> <timeZone>[/script]

If the $timeZone parameter is specified (parameter 4), this is the time sone that will be set.

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

Description

The system time zone will be set according to the value specified in the paramter $timeZone. 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...