About systemsetup in Remote Desktop
The command-line tool
systemsetup is installed with macOS and can be used to change client settings. Any command that includes
systemsetup will run in Remote Desktop using the Send UNIX Command task.
Find the command-line syntax, explanations, and example in the tool’s help prompt:
sudo systemsetup -help
Make sure you precede
A few of the capabilities of
systemsetup are listed below.
Enables or disables the power button to put the computer to sleep. For example:
Sets the current month, day, and year. For example:
Sets Local Hostname to
Designates a network time server. Enter the IP address or DNS name for the network time server. For example:
Sets remote login (SSH) to either on or off.
Important: If you turn off remote login, you won’t be able to administer the computer using SSH for remote login. For example:
Specifies whether the computer restarts automatically after the system freezes. For example:
Specifies whether the computer automatically restarts after a power failure. For example:
Sets amount of idle time until computer sleeps. Specify “Never” or “Off” for computers that should never sleep. If you set the system to sleep, you won’t be able to administer the computer remotely while it is sleeping. For example:
Sets the current time. The provided time argument should be in 24-hour format. For example:
Sets the local time zone. Use
to list valid time zone arguments. For example:
Specifies whether network time use is on or off. For example:
Sets the number of seconds after which the computer will start up after a power failure. The seconds value must be a multiple of 30 seconds. For example:
Specifies whether the computer wakes from sleep when a network admin packet is sent to it. For example: