systemsetup Command Examples

Configure System Preferences machine settings. More information: https://support.apple.com/guide/remote-desktop/about-systemsetup-apd95406b8d/mac.

systemsetup -setremotelogin on

systemsetup -settimezone "{{US/Pacific}}" -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on

systemsetup -setsleep off -setrestartpowerfailure on -setrestartfreeze on

systemsetup -liststartupdisks

systemsetup -setstartupdisk {{path/to/directory}}