MacOS – How to shutdown a windows computer via a mac terminal


Does anyone know how to shutdown a Windows 8 computer when connected via OS X terminal?

Best Answer

  • Sure, this is possible via Samba's implementation of the net command.

    net rpc shutdown -I <IP of Windows machine> -U <username on Windows machine>

    You'll be prompted for a password and the Windows user obviously needs to have enough privileges to do a shutdown.

    More information is available in the Samba documentation.

    To get Samba on your Mac, you can use a third party package manager such as MacPorts or Homebrew

  • Related Question