Installation manual
-setsearchdomains networkservice domain1 [domain2]
Use this command to designate the search domain for the specied network service. You can list any
number of search domains (replace domain1, domain2, and so on with the name of a local domain).
If you want to clear all search domain entries for the specied network service, type “empty” in place
of the domain name. Example:
networksetup -setsearchdomains "Built-in Ethernet" company.com corp.com
-setwebproxy networkservice domain portnumber (on | off) [username
password]
Set Web proxy for a network service with domain and port number. Turns proxy on. Optionally,
specify on or o to enable and disable authenticated proxy support. Specify username and password
if you turn authenticated proxy support on. Example:
networksetup -setwebproxy "Built-In Ethernet" proxy.company.com 80 on
bob mypassword
-help
Displays a list of all the commands available in the Network Setup Tool, with explanatory information.
Any command that uses networksetup can be used in Remote Desktop using the
Send UNIX Command task.
Using systemsetup
The command-line tool systemsetup is used to congure other nonnetwork system
settings. You can use it to query or alter time zones, network time servers, sleep
settings, Energy Saver preferences, Remote Login (SSH) preferences, and more. You’ll
nd the command-line syntax, explanations, and example in the tool’s help prompt by
entering the following line in the Terminal:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/
Support/systemsetup -help
A few of the capabilities of systemsetup are listed below:
-setallowpowerbuttontosleepcomputer (on | off)
Enable or disable whether the power button can sleep the computer. Example:
systemsetup -setallowpowerbuttontosleepcomputer on
-setdate mm:dd:yy
Use this command to set the current month, day, and year. Example:
systemsetup -setdate 04:15:02
-setlocalsubnetname name
Set Local Hostname to name. Example:
systemsetup -setlocalsubnetname LabMac1
158 Chapter 8 Administering Client Computers