How to remotely shut down a computer

Author: Randy Alexander
Date Of Creation: 25 April 2021
Update Date: 1 July 2024
Anonim
How to Remotely Shutdown any Computer with CMD New 2018
Video: How to Remotely Shutdown any Computer with CMD New 2018

Content

If there are multiple computers on the network, no matter what operating system, you can remotely turn them off. If you're using Windows, you'll need to set up a target computer so you can remotely shut it down. Once setup is complete, you can perform a remote shutdown on any computer including Linux. Mac computers can also be remotely shut down using a simple Terminal command.

Steps

Method 1 of 5: Activate remote registry service (Windows)

  1. Open the Start menu on the target computer. Before you turn off any Windows computer on the remote network, you need to enable Remote Services on that computer. This action requires administrator access to the computer.
    • If you're looking to remotely shut down your Mac, see method 4.

  2. Import .services.mscGo to the Start menu and click↵ Enter. The Microsoft Management Console opens with the "Services" section.

  3. Find "Remote Registry" in the list of services. By default, this list is ordered in alphabetical order.
  4. Right click on "Remote Registry" and select "Properties". The service's Properties window will open.

  5. Select "Automatic" from the "Startup type" menu. Then, click "OK" or "Apply" to save your changes.
  6. Click the Start button again and type "firewall". Windows Firewall will launch.
  7. Click "Allow an app or feature through Windows Firewall" (Allow an app or feature through the Windows firewall). This option is on the left side of the window.
  8. Click the "Change settings" button. You will be able to change the list below.
  9. Check the box "Windows Management Instrumentation". Check the box in the "Private" column. advertisement

Method 2 of 5: Shut down remote Windows computers

  1. Open Command Prompt on the computer. You can use the Shutdown program to manage the shutdowns of multiple computers on the network. The fastest way to open this program is to use Command Prompt.
    • On Windows 8.1 and 10 - Right-click the Windows button and choose "Command Prompt."
    • Windows 7 and earlier - Choose "Command Prompt" from the Start menu.
  2. Import .shutdown / iand press↵ Enter. The Remote Shutdown feature will launch in a separate window.
  3. Click the "Add" button. This will allow you to add computers that you want to manage network shutdowns on.
    • You can add as many computers as you want as long as they are configured for remote shutdown.
  4. Enter a computer name. Enter the name of the computer and click "OK" to add it to the list.
    • You can find the name of the computer in the "System" window (press the key combination ⊞ Win+Pause).
  5. Set shutdown options. There are many options that you can set before sending a shutdown signal:
    • You can choose to shut down or restart the target computer.
    • You can warn users that their computer is about to shut down. This option is highly recommended if you know someone else is using the computer. You can adjust the display time of notifications.
    • You can add reasons and comments at the bottom of the window. These contents will be added to the log, which is very important if the computer has many administrators or you want to review your actions later.
  6. Click "OK" to turn off the target computer. Your computer will shut down immediately or shut down after the warning time you set up has ended. advertisement

Method 3 of 5: Shut down remote Windows computers on Linux

  1. Prepare the computer for remote shutdown. Follow the steps in the first part of this article to prepare for a remote Windows computer shutdown.
  2. Find your computer's IP address. You need to know the IP address of the target computer to be able to shut it down through a Linux computer. There are several ways to determine this:
    • Open Command Prompt on the target computer and enter ipconfig. Find the address.
    • Open the router's configuration page and look for the DHCP client table. This table will display all devices connected to the network.
  3. Open Terminal on your Linux computer. The Linux computer must be on the same network as the Windows computer that you are planning to shut down remotely.
  4. Install Samba. This protocol needs to be connected to the Windows computer. The following command will install Samba on Ubuntu:
    • sudo apt-get install samba-common
    • You will be asked to enter your Linux computer's master password in order to proceed with the installation.
  5. Execute a remote shutdown command. After the Samba protocol is installed, you can execute the shutdown command:
    • net rpc shutdown -I IP address -U user%password
    • Instead IP address equal to the IP address of the target computer (for example: 192.168.1.25)
    • Instead user using your Windows computer's username.
    • Instead password using your Windows computer's user password.
    advertisement

Method 4 of 5: Turn off a Mac remotely

  1. Open Terminal on another Mac computer on the network. Terminal can be used to shut down any Mac computer for which you have administrator access on the network.
    • You can find the Terminal in the Applications folder> Utilities.
    • You can do this on a Windows computer using an SSH protocol program like PuTTY to connect to your Mac via the command line. Take a look online to learn how to use the SSH protocol (such as PuTTY) on Windows. Once connected via SSH protocol, you can use the same commands as on your Mac.
  2. Import .ssh username@ipaddress. Please change username by the username of the target computer and ipaddress is equal to that computer's IP address.
    • You can see more online about how to find an IP address on a Mac computer.
  3. Enter the user password of the target Mac computer when prompted. After entering the command just now, you will be prompted for the password for that user account.
  4. Import .sudo / sbin / shutdown nowthen press⏎ Return. The Mac will be turned off remotely, and your SSH connection to the target computer will end.
    • If you want to restart your computer, add it -r come in later shutdown.
    advertisement

Method 5 of 5: Shut down Windows 10 computers remotely

  1. Click anywhere on the desktop. If the desktop is not activated, you will need to close the program that was active instead of opening the shut down menu. Make sure that the desktop is active and that all other programs are closed or minimized.
  2. Press.Alt+F4while logging in remotely. If using Windows 10 Remote Desktop, you will see that there is no Shut Down option in the Power menu. If you want to shut down your computer, you can proceed with the new Windows Shut Down menu.
  3. Select "Shut down" from the drop-down menu. You can also choose other options including "Restart", "Sleep" and "Sign out".
  4. Click "OK" to turn off the computer. Because you are using Remote Desktop, connection to the target computer will be lost. advertisement

Advice

  • You will not be able to shut down someone's computer from a code without knowing their login information or without administrator access on their computer.