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

Synopsis

sudo setSearchDomains.sh
sudo setSearchDomains.sh <mountPoint> <computerName> <currentUsername> <networkInterface> <searchDomains>

If the $networkInterface parameter is specified (parameter 4), this is the Netowrk Interface for
which the search domains will be set. The expected values for the $networkInterface parameter can
be found by running the command:

networksetup -listallnetworkservices

If the $searchDomains parameter is specified (parameter 5), this is the search domain that will
be set.

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

Description

This script will set a search domain in the network settings for whichever network interface has been specified.

Preview

Generating Preview...