Force restart mac via terminal

Use the kickstart command-line utility in Apple Remote Desktop You can use kickstart to execute Apple Remote Desktop commands without restarting the remote computer.

Get started You can find the kickstart tool at: For more information about the kickstart command, use the -help flag: Sample commands The commands in this article work with Apple Remote Desktop 3. Here are commands that you can use: Restart the ARD Agent and helper: You must use it as in the last two samples above.

Remove access privileges for specified users "student" in this example: Published Date: Mon Oct 15 This option is perhaps best for managing security and running scheduled maintenance tasks for your various purposes. This can be done in two ways: For example, the following will schedule a one-time event to shut down at midnight on January 1, You can look up more about the pmset command and its options in the pmset manual page.

The last approach to restarting and shutting down is to use the power button on your Mac, which has several modes you can use.

How to Update macOS From the Command Line

This approach will invoke the standard Shutdown and Restart procedures as can be accessed from the Apple menu, and will similarly be relatively gentle on programs. However, this also means that if your Mac is unresponsive and you cannot open the Terminal, then this likewise may not allow you to shut down your system. Therefore, as a last resort, you can perform a hard shutoff of any Mac by holding the Power key down until the system powers off.

Ah yes, though this invokes the same option as using the Power key, it is more immediate; however, it is only available on Macs with an eject key, and those are only systems with optical drives.

Top Rated Comments

Apple has not made a Mac with an optical drive for a while now, but it is still relevant for people who do have these Macs. My iMac has no optical drive, but it does have an eject key, presumably for the times I connect an external optical drive.

Format A Drive In OSX Terminal

Unless you chose another option, your iMac came with a wireless Apple keyboard, which has an eject button. The reason, of course, is that this keyboard first became available when Macs still had optical drives and are still in use with such Macs. This keyboard looks like an iMac keyboard but in fact can be used with Mac Pros, Mac minis and even Mac laptops. Ironically, it may not work with external optical drives.

How to Remotely Restart or Shut Down Your Mac

I have a new MacBook Pro retina, which does not have a dedicated eject key, but has a key for power-on like I think the Macbook Air. Also useful are ways to put the Mac to sleep to save energy, including applications that do it for you after downloading, etc, like GoodNight: Sometimes the only method to restart a Mac, especially in the situation the Mac will not restart using the power button, is to unplug the computer.

Wait one minute before plugging the Mac back in. The power button should now function and be able to start and restart the computer.

How to Shutdown a Mac from Terminal

If you would like to perform multiple events with pmset, such as shut a machine down and then start it up on a schedule you need to define the events within a single pmset command. For example, if you want to shut a machine down at 9: More methods to reboot or shutdown the Mac after failed reboot or shutdown from the Finder or when the USB ports get blocked:.

I wonder if Topher could make one and share it here. Configure two Macs for remote access with Timbuktu Pro and restart or shutdown with the other Mac obviously, must be done in advance http: There are two options that I can think of that might help solve the issues you are experiencing.

How to Run Mac Software Update via the Terminal

The first is to start your Mac in Safe Mode. Shut down your computer and wait 10 seconds. Press the power button.