Categories
Life hack

How to remotely shut down or restart windows pcs

Friday, March 18, 2016

Do you have a habit of working late at nights? Have you forgotten to switch off your computer after using? In order to avoid it, you should know how to shut down your computer automatically at night when it is not in use. Setting up auto shut down will not only make you feel relax but also it will save the battery power. This article will tell you how to get your computer to shut down at a time specified by you.

Step 1: Open the start menu and choose “Settings”.

How to remotely shut down or restart windows pcs

Step 2: Under Settings, please go to the option of “System

How to remotely shut down or restart windows pcs

Step 3: Please choose “Power and sleep” in System.

How to remotely shut down or restart windows pcs

Step 4: After clicking “Power and sleep”, you will find a new window with mainly two parts called “screen” and “sleep”.

How to remotely shut down or restart windows pcs

1. The option under Screen:

Open the drop-down menu of “When plugged in, turn off after” and choose the time as you need so that you can set auto shutdown.

2. The option under Sleep:

Open the drop-down menu of “When plugged in, PC goes to sleep after”, choose the time according to your need.

Once you have done as the above steps, you PC will shut down or sleep automatically. Enjoy!

In addition, I recommend you to use Wise Auto Shutdown, it not only let you configure timers for effecting automatic shutdowns, but also for other associated actions such as restart, hibernate, log off, reboot and so on. Sounds great?

Step 1: Download and install Wise Auto Shutdown in your PC, and you will find its easy-to-use interface.

How to remotely shut down or restart windows pcs

Step 2: Please choose a task from the left and set a schedule.

How to remotely shut down or restart windows pcs

Step 3: Don’t forget to click after all the setting finished.

If you are interested in Wise Auto Shutdown, try it now! Appreciate if you can leave your thoughts in the comment below.

Account Information

Share with Your Friends

How to connect Grafana to a remote MySQL database

How to connect Grafana to a remote MySQL database

Grafana needs data to be useful. Jack Wallen walks you through the process of using a MySQL database as a source for data visualization in Grafana.

Grafana is one of the most widely-used interactive data visualization tools on the market. It’s open-source, powerful, highly configurable and free to use. I’ve walked you through the process of installing Grafana on Ubuntu Server 20.04, and this time around I’ll help you connect that newly installed platform to a MySQL database, so you can visualize that data.

Must-read big data coverage

  • Best ETL tools and software 2022
  • Power BI vs. Tableau: BI tools comparison
  • Surveys: Data literacy can’t keep up with data sprawl
  • Snowflake data warehouse platform: A cheat sheet (free PDF)

Grafana allows you to connect to numerous data sources (Google Sheets, Amazon Timestream, Elasticsearch and many databases). Because MySQL is such a popular database, I thought that would be a great data source to use as an illustration. This will also refresh your memory on how to set MySQL up for remote connections.

What you’ll need

To make this work, you’re going to need a running instance of Grafana, a running instance of MySQL and a user with sudo privileges. I am going to assume your instance of MySQL is on a remote Linux server.

How to configure MySQL for remote connection

The first thing we must do is configure the MySQL server to allow remote connections. On top of that, we’re going to create a specific user that has specific permissions for the database we’ll view on Grafana.

First, log into your MySQL server and open the MySQL configuration file with:

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

In that file, look for the line:

Save and close the file. Restart the MySQL service with:

sudo systemctl restart mysql

Next, we need to create a new user and give it the correct permissions. Log in to the MySQL console with:

sudo mysql -u root -p

Make sure you know which database you’re going to be using. You can list them out with:

Create the new user with:

CREATE USER ‘grafanareader’ IDENTIFIED BY ‘PWORD’;

Where PWORD is a strong/unique password for the new user.

Now, we can grant that new user the SELECT permission for the database with:

GRANT SELECT ON DB.* TO ‘grafanareader’;

Where DB is the name of the database to be read by Grafana.

Flush the privileges and exit from the MySQL console with:

flush privileges;
exit

Your database server is now ready.

How to connect Grafana to MySQL

Log into your Grafana instance and click the gear icon in the left sidebar. From the resulting popup, click Data Sources. In the next window, scroll down and select MySQL from the listing. You will then be presented with the necessary configuration options for a MySQL data connection (Figure A).

Figure A

The MySQL Grafana configuration editor.

Here’s what you must fill out:

  • Host—the IP address or domain name of the MySQL hosting server along with the port used for the database server (default is 3306).
  • Database—the database to be used as a source.
  • User—grafanareader
  • Password—PWORD used to create grafanareader in the MySQL console.

You might also have to enable Skip TLS Verify.

Configure those options and click Save & Test. You should eventually see Database Connection OK (Figure B).

Figure B

Our MySQL connection is good to go.

Congratulations, you now have Grafana connected to a remote MySQL server. In our next piece in the series, we’ll create a new dashboard to view some of the data from the source.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.

How to remotely shut down or restart windows pcs

Data, Analytics and AI Newsletter

Learn the latest news and best practices about data science, big data analytics, and artificial intelligence.

Chris Hoffman is Editor-in-Chief of How-To Geek. He’s written about technology for over a decade and was a PCWorld columnist for two years. Chris has written for The New York Times and Reader’s Digest, been interviewed as a technology expert on TV stations like Miami’s NBC 6, and had his work covered by news outlets like the BBC. Since 2011, Chris has written over 2,000 articles that have been read nearly one billion times—and that’s just here at How-To Geek. Read more.

How to remotely shut down or restart windows pcs

Windows includes Shutdown.exe, a simple utility for remotely shutting down or restarting Windows computers on your local network. To use Shutdown.exe, you must first configure the PCs you want to shut down or restart remotely.

Once you’ve configured the PCs, you can use a graphical user interface or command to restart the PCs from another Windows system. You can even remotely shut down or restart the PCs from a Linux system.

Configuration

The remote registry service must be enabled on each computer you want to shut down remotely – it’s disabled by default.

To enable it, first launch the Services control panel on the computer you want to shut down remotely. To do this, click the Start button, type services.msc into the Start menu and press Enter.

Locate the “Remote Registry” service in the list, right-click it and select Properties.

How to remotely shut down or restart windows pcs

From the properties window, set the Startup type to Automatic and click the Start button to launch the service.

How to remotely shut down or restart windows pcs

Next, you’ll have to open the required port in the computer’s firewall. Click Start, type “Allow a program” and press Enter. In the window that appears, click the “Change settings” button. Scroll down in the list and enable the “Windows Management Instrumentation (WMI)” exception.

How to remotely shut down or restart windows pcs

Your user account must also have administrator permissions on the remote computer. If it doesn’t, the shutdown command will fail due to lack of permissions.

Remote Shut Down

To shut down the computer, launch a Command Prompt window on another computer (click Start, type Command Prompt, and press Enter). Type the following command into the command prompt window for a graphical interface:

From the remote shutdown dialog window, you can add one or more computer names and specify whether you want to shut down or restart the system. You can optionally warn users and log a message to the system’s event log.

How to remotely shut down or restart windows pcs

Not sure what the name of the remote computer is? Click Start on the remote computer, right-click Computer in the Start menu, and select Properties. You’ll see the computer’s name.

How to remotely shut down or restart windows pcs

You can also use a command instead of the graphical interface. Here’s the equivalent command:

shutdown /s /m \\chris-laptop /t 30 /c “Shutting down for maintenance.” /d P:1:1

How to remotely shut down or restart windows pcs

Shut Down From Linux

Once you’ve set up the computer, you can also shut it down from a Linux system. This requires the samba-common package installed – you can install it on Ubuntu with the following command:

sudo apt-get install samba-common

Once you have, use the following command from a terminal:

There will be times as a Windows Administrator that you will need to reboot or shutdown a remote computer or server.

In this tutorial, I’ll show you two easy methods for rebooting and shutting down remote computers.

The first method uses a built in Windows command and the second method uses PowerShell.

Windows Shutdown Command

Windows systems has a built in shutdown command that can be used to restart or shutdown local and remote computers.

The command is shutdown.

To use this command just open the windows command prompt and type shutdown.

To view the full list of command options type shutdown /? in the CMD window.

There are several command line switches, below I list the most useful options.

/s – Shutdown the computer

/r – restart computer

/m \\computer – Specify the remote computer

/t xxx – Set the time out period before shutdown to xxx seconds

/c “comment” – Message to display on the screen before restart or shutdown

Now lets move onto some examples

Restart or Shutdown Examples with Command Line

In these examples, I’ll be on PC1 and will initiate a remote restart or shutdown on PC2.

I’ll be using the /r switch in these examples, you can change them to /s to shutdown instead of restart.

Example 1: Restart Remote Computer

By default, this will prompt the remote computer and give it about a minute before it restarts.

The pop up below is what a Windows 10 system will display.

Example 2: Restart With a Custom Message

You may want to display a custom message to the logged on users, to do that just use the /c command.

Below is the pop up on the remote computer with the custom message.

Example 3: Immediate Restart no Countdown

If you want to immediately restart with no countdown or message use this command.

If you want a longer countdown just specify the seconds /t 60

Example 4: Log user off remote computer

If you just want to log a user off the remote computer use this command.

Restart or Shutdown with Powershell

Here are a few examples of how you can restart or shutdown computers with PowerShell.

The downside to PowerShell is it doesn’t have as many options as the shutdown command. There is no option to prompt users with a custom message or provide a countdown.

Example 1: Use Powershell to restart a computer

This command will immediately restart a remote computer. The -Force option will force a restart even if a user is logged on.

Example 2: Use PowerShell to shutdown a computer

This command will shutdown a remote computer. Use the -Force to force a shutdown even if a user is logged on.

Example 3: Use PowerShell to restart a list of computers

This is handy if you have several computers to restart. Just list all the computers you want in a text file and add that to the PowerShell command.

Example 4: Use PowerShell to shutdown down two computers

Recommended Tool: Hybrid Cloud Monitor

The Hybrid Cloud Monitor tool is designed to monitor and analyze IT infrastructure across on-premises and multi-cloud environments.

Monitor Azure, Active Directory, virtual and physical servers, manage IP addresses, log management and analysis, network flow and bandwidth graphs, and much more.

Get end-to-end visibility, analytics, and performance monitoring from a single web dashboard.

24 thoughts on “How to Restart or Shutdown a Remote Computer”

If i performed a shutdown on a target server using the /m command with /s, can i do the same afterwards with the /r command to restart it when it has already shut down? Would this work?

No the commands only work for shutting down and restarting a computer that is powered on. To turn on a computer that is shutdown it will need to be configured for Wake on LAN.

Can I use this for a PC I know the external IP address for? Im having trouble connecting to a PC on a site in UK (I’m in Cyprus) via UltraVNC, it appears to have not disconnected properly last time I was connected and I need to get the PC rebooted so I can update my software on it?

This traffic would most likely be blocked by a firewall but it can be done.

Hello can you help me with acces denied error at “/r /m \\pc2 /t 0” command

How to remotely shut down or restart windows pcs

Windows 10 provides us with a utility through which we can remotely shut down or restart any Windows 10 PC connected to our network. We can use this utility only if all the PCs that we want to remotely shut down or restart are configured accordingly. Once we manage to configure the desired PCs, it is just a matter of seconds to remotely shut down or restart any Windows 10 PC. In this article, we will explain to you the method through which you can remotely shut down or restart a Windows 10 PC.

Remotely Shutting Down or Restarting a Windows 10 PC

In order to remotely shut down or restart a Windows 10 PC, you will need to perform the following steps:

First, you will need to configure all the PCs that you want to remotely shut down or restart. For doing this, type services.msc in the search section of your taskbar and click on the search result in order to launch the Services window. The newly opened Services window is shown in the following image:

How to remotely shut down or restart windows pcs

Locate the Remote Registry field as highlighted in the image shown above. You can clearly see that it is disabled by default.

Right click on the Remote Registry field in order to launch a menu as shown in the image below:

How to remotely shut down or restart windows pcs

Now click on the Properties option from this menu. As soon as you will click on it, the Remote Registry Properties window will appear on your screen as shown in the following image:

How to remotely shut down or restart windows pcs

Click on the dropdown list corresponding to the field of Startup type as highlighted in the image shown above.

Select the Automatic option from the Startup type dropdown list as highlighted in the image shown below:

How to remotely shut down or restart windows pcs

After selecting the Automatic option, click on the Start button as shown in the following image:

How to remotely shut down or restart windows pcs

Click on the Apply button and then click on the OK button.

Now you will need to do some configurations in Windows Firewall. For doing this, type Allow an app through Windows Firewall in the search section of your taskbar and click on the search result to launch the Allowed Apps window as shown in the image below:

How to remotely shut down or restart windows pcs

Click on the Change Settings button as highlighted in the image shown above.

How to remotely shut down or restart windows pcs

Locate the Windows Management Instrumentation (WMI) field as highlighted in the image shown above.

Check the checkbox corresponding to the field of Windows Management Instrumentation (WMI) in order to enable it.

After enabling this, you are done with your configurations. Now you need to set up the machine with which you want to remotely shut down or restart the PCs connected to your network.

You will need to launch the Command Prompt in that machine. For doing this, type cmd in the search section of your taskbar and click on the search result to launch the Command Prompt window. The newly opened Command Prompt window is shown in the following image:

How to remotely shut down or restart windows pcs

Type the command

in the Command Prompt window and press the enter key in order to launch the graphical interface of the Remote Shutdown Dialogue window. This command is highlighted in the image shown below:

How to remotely shut down or restart windows pcs

As soon as you will press the enter key, the Remote Shutdown Dialogue window will appear on the screen as shown in the following image:

How to remotely shut down or restart windows pcs

Now you can add those computers that you want to remotely shutdown or restart by typing their names, one by one to the text box corresponding to the field of Computers and then click on the Add button.

Select the Restart or Shutdown option according to whatever you want to do with these computers from the dropdown list corresponding to the field of “What do you want these computers to do”.

Finally, click on the OK button in order to perform your desired action.

Conclusion

By following the method discussed in this article, you can remotely shutdown or restart any Windows 10 PC that is connected to your network. In this method, the configuration part is a bit too difficult and you need to follow all the steps very carefully in order to get your work done. However, once you manage to do all the required configurations, it is just a piece of cake to remotely shutdown or restart a Windows 10 PC.

Do you want to reboot, restart, or shut down Windows through a remote desktop connection? It is pretty easy to do. Let me show you the exact steps and methods.

The Remote Desktop feature in Windows 10 and 11 makes it easy to access and manage remote PCs as if you are physically there. The good thing is that it is pretty easy to turn on or enable Remote Desktop in Windows 10 and 11. All it takes is toggling a single option, and you are good to go.

Once you are done connecting and using the remote desktop, you might want to shut it down. If you installed new software or driver on the remote desktop, you might want to restart it.

For instance, say you installed a graphics driver on the remote machine. It is necessary to restart the remote desktop computer to ensure the driver is installed and all the changes are correctly made. Otherwise, you might not be able to utilize all the features and stability of the video driver.

The good thing is that unlike in older versions, in Windows 10 and 11, it is pretty easy to shut down or restart a remote Windows machine via the remote desktop connection.

If you are confused, that is where this easy Windows how-to guide comes into play. Let me show you the steps to shut down or restart Windows via Remote Desktop.

Table of contents:

  • Shut down Windows via Remote Desktop
  • Restart/Reboot Windows via Remote Desktop
  • I cannot find the shut down or restart option in Remote Desktop

Note: The steps shown below work in Windows 10 and 11 operating systems.

Shut down Windows via Remote Desktop

Shutting down Windows through a remote desktop is easier than you think. In fact, it is similar to how you shut down a normal computer with physical access. Let me show you how.

  1. Right-click on the Start icon on the taskbar.
  2. Choose the “Shut down or sign out.”
  3. Choose the “Shut down” option.
  4. The remote system should shut down immediately.
  5. The remote desktop connection is automatically disconnected.

How to remotely shut down or restart windows pcs

Alternate method: Command to shut down Windows via remote desktop

You can use a simple Run command to shut down Windows through the remote desktop if you want. Here’s how.

  1. Open the Run dialog box with “Start + R.”
  2. Type “shutdown /s”
  3. Press the “Ok” button.
  4. The remote system should shut down immediately.
  5. The remote desktop connection is automatically disconnected.

Restart/Reboot Windows via Remote Desktop

You can choose the Restart option from the Start menu to reboot windows through the remote desktop. Let me show you the exact steps.

  1. Right-click on the Start icon on the taskbar.
  2. Choose the “Shut down or sign out.”
  3. Choose the “Restart” option.
  4. The remote system should restart immediately.
  5. The remote desktop connection is automatically disconnected.
  6. You have to initiate the remote connection again to access the remote computer.

How to remotely shut down or restart windows pcs

Command to restart Windows through remote desktop

If you cannot find the Start menu option or it is not working for some reason, you can use a Run command to restart Windows via Remote Desktop. Let me show you the steps.

  1. Open the Run dialog box with “Start + R.”
  2. Type “shutdown /r /t 0”
  3. Press the “Ok” button.
  4. The remote system should restart immediately.
  5. The remote desktop connection is automatically disconnected.
  6. You have to initiate the remote connection again to access the remote computer.

I cannot find the shut down or restart option on the remote desktop

You might not find the shut down, restart, or sign-out options in the Start menu. This can happen due to activating a group policy. Let me show you how to fix the problem and show the shut down and restart options in the remote Windows Start menu. How to remotely shut down or restart windows pcs

  1. Open the Start menu.
  2. Search and open “Edit group policy.”
  3. Go to the “Computer Configuration > Administrative Templates > Start Menu and Taskbar” folder.
  4. Double-click on the “Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands” policy.
  5. Choose the “Not configured” option.
  6. Press the “Ok” button.
  7. Close the Group Policy.
  8. Restart the remote computer.
  9. You should see the Shut down and Restart options in the Start menu.
  10. This should fix the problem.

How to remotely shut down or restart windows pcs

That is all. It is that simple to shut down or restart Windows through the remote desktop.

I hope this simple and easy Windows how-to guide helped you.

If you are stuck or need some help, comment below, and I will try to help as much as possible.

How to remotely shut down or restart windows pcs

Hitesh J Last Updated : 12/07/2021

Suppose you are a Windows System Administrator and responsible for managing remote computers. In that case, there will be times that you will need to restart or shut down a remote computer or server. There are several tools available to manage and shut down the Windows system remotely. However, Windows has some in-built tools that allow you to shut down or restart a computer remotely.

In this post, we will show you how to shut down or restart a Windows computer remotely.

How To Enable Remote Shutdown

Before performing remote shutdown, all computers must be in the same network, and all should have one common administrative account. You will also need to configure the target computer to allow the remote shutdown.

To allow the remote shutdown, perform the following steps on all target computers:

Step 1 – Press the Windows + R key, type services.msc, and click on the OK button. This will open the Windows service manager as shown below:

How to remotely shut down or restart windows pcs

Step 2 – Scroll down and right-click on Remote Registry, then select the properties icon. You should see the following screen:

How to remotely shut down or restart windows pcs

Step 3 – Click on the Startup type drop-down menu and select Automatic. Then, click on the OK button to save the changes.

Step 4 – Next, you will also need to allow remote shutdown in the Windows firewall. To do so, open the Windows firewall as shown below:

How to remotely shut down or restart windows pcs

Step 5 – Click Allow an app through Windows Firewall. You should see the following screen:

How to remotely shut down or restart windows pcs

Step 6 – Scroll down and find the “Windows Management Instrumentation (WMI)” then enable it and click on the OK button to apply the changes.

How to Shutdown a Remote Computer Using PsExec

PsExec is a portable tool by Microsoft that allows you to run commands on the remote computer using the user’s credentials. By default, PsExec is not installed on any Windows operating system. You will need to install it manually.

To use this tool, file and printer sharing must be enabled on local and remote computers. Also, both computers belong to the same Workgroup.

You can download the PsExec on the computer from which you will need to perform the remote shutdown.

Once the file is downloaded, extract the files from the PsTools.zip download. Next, open the Windows Command prompt and navigate to the PsTools folder. You can now start running PsExec.exe on the remote computer.

The basic syntax to perform a remote shutdown is shown below:

For example, to shut down a remote computer named CLOUD-9GA5IF08G, run the following command:

To restart a remote computer, run the following command:

How to remotely shut down or restart windows pcs

Shut Down a Remote Computer Using a Native Windows Shutdown Command

Windows also provide a native shutdown command-line utility that allows you to shut down and restarts a remote computer.

The basic syntax to perform a remote shutdown is shown below:

There are several options available that you can run with the shutdown command:

  • /s – Shut down the remote computer.
  • /r – Restart the remote computer.
  • /l – Log out the remote computer.
  • /c – Display a message on the screen before performing restart or shutdown.
  • /t – Set a timeout period before performing shutdown.
  • /m – Specify the remote computer.

For example, to restart a remote computer named CLOUD-9GA5IF08G, run the following command:

To shut down a remote computer named CLOUD-9GA5IF08G, run the following command:

To restart a remote computer and display a custom message, run the following command:

How to remotely shut down or restart windows pcs

To restart a remote computer after 90 seconds, run the following command:

To shut down a remote computer without any prompt, run the following command:

Shutdown a Remote Computer with PowerShell

You can also shut down or restart a remote computer with PowerShell. However, compared to the shutdown command, PowerShell does not have many options.

PowerShell provides two commands Restart-Computer and Stop-Computer, to restart and shut down a remote computer.

To restart a remote computer forcefully, run the following command:

To shut down a remote computer forcefully, run the following command:

To shutdown multiple remote computers, run the following command:

Suppose you want to restart several computers. Just create a text file named computer-list.txt, add all remote computer names and run the following command:

Conclusion

The guide explained how to shutdown and restart a remote Windows computer using PsExec and the shutdown command. I hope this helps you if you want to continue or shut down multiple remote computers.

Microsoft’s Remote Desktop service is a great way to manage remote Windows PCs, regardless of whether they’re in the next room or on the other side of the world. With a good network connection between systems, Remote Desktop gives a user virtually all of the power and capabilities in a remote session that they would enjoy if sitting in front of the remote computer directly, with one notable exception: shutdowns and reboots. If you open a Remote Desktop session to another Windows PC, even via an account with full admin privileges, you won’t be able to shut down or restart the PC via the traditional GUI methods. Heading to the Power Users Menu in Windows 8, for example, or the Start Menu in earlier versions of Windows, only reveals a “Disconnect” button where options like sleep, shutdown, and restart normally reside.

Thankfully, you can still reboot or shut down a remote PC, but you’ll need to do it manually via the Command Prompt. While connected to a remote PC, save all open documents and then launch the Command Prompt from the Start Menu in Windows 7 and earlier (Start > Run > cmd) or search for Command Prompt or cmd from the Windows 8 or Windows 10 Start Menu.

In the Command Prompt window, we’ll be using the command shutdown. But we can’t just use it by itself — doing so will simply log off the current user, but leave the PC powered on. Instead, like many command line operations, we’ll need to add specific parameters to tell the shutdown command exactly what we want to do. So, to get started, type “shutdown” into the Command Prompt window, followed by a single space. Next, we’ll add the necessary parameters, with the major ones listed below:

Shutdown Command Parameters

How to remotely shut down or restart windows pcs

There are many more parameters and options for the shutdown command, most of which are only useful for those administering large networks. Small businesses and home users will primarily stick with the parameters above.

How to remotely shut down or restart windows pcs

Shutdown Command Examples

To bring this all together, let’s go over a few examples. First, let’s say that you are connected to your office PC via Remote Desktop and you want to reboot it immediately. You know that no one else is using it and all of your documents and data are saved. While in the Remote Desktop session, launch Command Prompt on your office PC and type the following command:

That command will reboot the computer (-r), force all applications to close so that one doesn’t get stuck and prevent the reboot from happening (-f), and it will happen immediately with a zero second delay (-t 0). In this case, we’re accessing the Command Prompt via Remote Desktop directly on the office PC, so we don’t need to specify the computer name with the -m parameter because we are, in effect, operating on the local machine, even though we’re not sitting in front of it.

Here’s a second example: you work from home with your spouse, but have different offices in the house. In your office, you need to shut down your spouse’s computer (computer name “UPSTAIRS”) because a lightning storm is rolling in and you want to be on the safe side. You think your spouse isn’t currently using the computer, but you can’t be sure. Here’s a shutdown command that you could initiate on your own PC:

This command shuts down the computer (-s), forces running applications to close (-f), designates the remote PC by name (-m \UPSTAIRS) because you’re executing the command on your own PC, gives a time delay of 60 seconds (-t 60), and provides a descriptive message (-c) that will appear on your spouse’s computer to notify them of the impending shutdown.

Now, before you start worrying about pranksters and hackers remotely shutting down your PC without authorization, note that you’ll need to have admin access to the target PC you’re trying to shut down. That is, in our example, you’ll need to have an admin account on the “UPSTAIRS” PC with the same name and password as the account you’re using on your own PC. Alternatively, in business environments, your Active Directory account will need to be authorized on both PCs.

How to remotely shut down or restart windows pcs

There are many more parameters and options, including some logging and reporting options that are useful to IT administrators. To view them all, bring up the shutdown command’s help document by typing:

While the intent of this article was to show you how to use the shutdown command to shut down or reboot remote PCs, you can always use any of the commands on your own local PC if you feel so inclined. So the next time you need to reboot, don’t head for the Start Menu or charms bar, get your geek on in the Command Prompt instead.

If you’re frequently using the Windows Remote Desktop feature (aka Terminal Services) during your daily activity, you most likely already know that the “System Shutdown” and “System Reboot” options are missing from the GUI. As a matter of fact, these buttons have been intentionally removed to protect the remotely connected user from accidentally or unwillingly shutdown or reboot the machine, thus shutting out himself and without being able to operate with it anymore.

That said, if you know what you’re doing and you really need to remotely perform a system shutdown or reboot, you can use one of the following methods.

Method #1: Keyboard Shortcut

This is a neat & clean solution, fully manageable via GUI, which will most likely be appreciated by most keyboard shortcut fans.

  • Ensure that the focus is on the Desktop by simultaneously pressing Win + D
  • Press ALT + F4 to bring up the “Shut down Windows” popup window.
  • From such window, you’ll be able to choose between the following list of actions: Disconnect, Sign out, Shut down, and Restart. Just pick the one corresponding to what you need to do, and you’re done.

How to remotely shut down or restart windows pcs

Method #2: Command Prompt

This option is slightly more complicated, however it might have sense whenever, for any reason, you are unable to use keyboard shortcuts in a decent way – for example if you are connecting via a mobile device using some not-so-great RDP native app.

  • From the START menu, go to All Programs >Accessories (on Windows 7) or just type “prompt” (Windows 8 / 8.1 and Windows 10).
  • Right-click on the Command Prompt icon, then left-click on Run as Administrator. Depending on the security settings on your machine, a warning popup might appear or not: if it does, just click OK to continue.
  • A black window will appear on the screen: in case you don’t know it already, this is the Command Prompt.
  • Click inside the window to make sure you have the focus in it, then type in one of the following commands:
    • To perform a machine shutdown: shutdown / s / t 0
    • To issue a machine reboot: shutdown / r / t 0

How to remotely shut down or restart windows pcs

Conclusion

That’s it, at least for now: we hope this post can be useful for those who need to turn off or restart their machines remotely.

Did you know that we can issue a shutdown and/or reboot of a Windows PC from any other LAN-connected Windows machine? The only two things we need to do that are the following:

  • An administrative account (local or domain) valid for the PC you want to reboot
  • The feature “Allow users to connect remotely to this computer” (from Control Panel >System >Remote Desktop Settings) active for that user (or for all users).

If we got these two things, we can force a remote shutdown by following the steps below. For convenience, let’s call LOCAL PC the machine we want to use to issue the shutdown/reboot command from, and REMOTE PC the machine which we want to shutdown.

  • Create a new account on the LOCAL PC with the same username and password of the REMOTE PC elevated account’s credentials.
  • Open an elevated Command Prompt from the LOCAL PC and issue the following command, replacing with the number of seconds to wait before activating the shudown/reboot process – any value between 0 to 315360000 – and with the REMOTE PCIP address or hostname.

Users of Microsoft Windows version 2000 and later can remotely shut down another computer in their network with the shutdown command.

To start the GUI version of this command, follow these steps:

Windows 8 and 10 users

  1. Press the Windows key + X on the keyboard to open the Power User menu.
  2. Select the Search option in the menu.
  3. In the Search text box, type shutdown -i and press Enter .

Windows Vista and 7 users

  1. Click the Start button.
  2. In the Search text box at the bottom of the Start menu, type shutdown -i and press Enter .

Windows 2000 and XP users

  1. Click the Start button, then select the Run option.
  2. In the Run window, type shutdown -i and press Enter .

After running this command, you’ll see a dialog window shown in the following example.

How to remotely shut down or restart windows pcs

As you can see in the example above, you’ll have different options to choose from in the Remote Shutdown dialog.

You need administrative privileges to access and shut down the computer remotely to complete the following steps.

  1. Specify the name or IP address of the computer you want to shut down by clicking the Add button.
  2. Select Shutdown from the list of values under “What do you want these computers to do”.
  3. If you want to warn the user of the shutdown before it occurs, keep the check box labeled Warn users of the action checked.
  4. In the Shutdown Event Tracker section, choose the option that you want the Event Log to show when the computer shuts down and enter a comment.
  5. Click OK to initiate the shutdown of the remote computer.

For Windows Home edition computers

The Windows Resource Kit is no longer available for download from Microsoft. The following instructions work only for a legacy Windows computer that already has the Resource Kit installed.

If the remote computer you’re attempting to shut down is running a Home edition of Microsoft Windows, you need to enable guest remote shutdown privileges before the above steps work. To do this, follow these steps.

  1. From the Microsoft Windows Resource Kit (required), copy the NtRights.exe file from the “Program Files\Windows Resource Kits\Tools” directory into the “Windows\System32” directory.
  2. After the file is copied, open a command prompt window by clicking Start, Run, and typing cmd and pressing Enter . At the prompt, type the following commands exactly as you see them here (unless your Windows directory is in a different path).
  1. If successful, after typing each of the above NtRights commands, a success message appears. Once this task is completed, exit the command prompt window and restart your computer.

Once the above steps are completed, you can remotely shutdown that computer from another Windows computer.

Unable to get remote shutdown to work

Inoperable remote shutdown could be caused by any of following reasons.

  • The domain administrator has group policies in place to prevent remote shutdown.
  • Remote administration or the $ADMIN share is disabled.
  • You’re logged in to an account that does not have administrative privileges.

Alternative solutions

If you’re still unable to remotely shutdown a computer or are using an earlier version of Windows, try PsShutdown, which is part of the free SysInternals Suite.

Windows operating system contains the utility Shutdown.exe, a simple utility to shut down or restart the computer remotely via the local network. To use the Shutdown.exe utility, you must first configure the PCs that users want to shut down or restart remotely.

  • 6 ways to restart your Windows computer from simple to ‘Pro’
  • All Frequency Restart, Shutdown, Remote Off . with Command Prompt

Windows operating system contains the utility Shutdown.exe , a simple utility to shut down or restart the computer remotely via the local network. To use the Shutdown.exe utility, you must first configure the PCs that users want to shut down or restart remotely.

After you have configured the PC, users can use the graphical interface or command line interface to restart the PC from another Windows machine. You can even turn off or restart the PC remotely from a computer running Linux .

Configuration

Activate the ‘ remote registry ‘ service on PCs that want remote control off. This service is not enabled by default. Launch Services control panel on the machine you want to turn off remotely by clicking Start , typing services.msc into Start menu and pressing Enter .

Find the service ‘ Remote Registry ‘ in the list, right-click it and select Properties .

From the Properties window, set Startup type to Automatic and click Start to launch the service.

Next, the user must open the port in the computer firewall. Click Start , type ‘ Allow a program ‘ and press Enter . In the window that appears, click Change settings . Scroll down and activate the ‘Windows Management Instrumentation ‘ exception.

User accounts must also have administrative rights on the remote computer. Otherwise, the shutdown command will fail due to lack of permissions.

Turn off the remote computer

To turn off the remote computer, launch the Command Prompt window on the remote computer (press Start , type Command Prompt and press Enter ). Type the following command into the command prompt window:

From the Remote Shut down Dialog window, users can add one or more computers and specify whether to restart or shutdown or not. Select a warning for the user in the Option section.

If you are unsure about the name of the remote machine, click Start on the remote machine, right-click Computer in Start menu and select Properties . We will see the host name.

Users can also use a command instead of the graphical interface. This is an equivalent statement:

shutdown / s / m chris-laptop / t 30 / c ‘Shutting down for maintenance.’ / d P: 1: 1

Turn off from a computer running Linux

It is also possible to turn off the computer from a Linux machine. This requires the package ‘ samba ‘ to be installed. Install this package on Ubuntu with the following command:

July 12, 2019

By Peter Barnett

If you have multiple computers on your network, you can shut them down remotely regardless of their operating system. If you are using Windows, you’ll need to set the remote computer to be able to shutdown computer remotely. Once this is set up, you can perform the shut down from any computer, including Linux.

Enabling the Remote Registry Service (Windows)

Open the Start menu on the computer you want to be able to shut down remotely. Before you can remotely shut down a Windows computer on your network, you’ll need to enable Remote Services on it. This requires administrator access to the computer.

The Next Step Is Type Services.Msc

Type .services.msc while the Start menu is open and press ↵ Enter. This start the Microsoft Management Console with the “Services” section open.

Then You Need to Find “Remote Registry”

Find “Remote Registry” in the list of services. The list is sorted alphabetically by default.

How to remotely shut down or restart windows pcs

Select “Properties” of Remote Registry

Right-click “Remote Registry” and select “Properties.” This will open the Properties window for the service.

How to remotely shut down or restart windows pcs

Select Option “Automatic” And Accept Your Choice

Select “Automatic” from the “Startup type” menu. Click “OK” or “Apply” to save changes.

How to remotely shut down or restart windows pcs

After That Open Firewall

Click the Start button again and type “firewall.” This will launch Windows Firewall.

How to remotely shut down or restart windows pcs

Allow Application or Feature Through Firewall

Click “Allow app or feature through Windows Firewall.” You’ll find this on the left side of the window.

How to remotely shut down or restart windows pcs

Choose and Click Change Settings Button

Click the “Change settings” button. This will allow you to make changes to the list below it.

Check the “Windows Management Instrumentation”

Check the “Windows Management Instrumentation” box. Check the box in the “Private” column.

Note. Your user account must also have administrator permissions on the remote computer. If it doesn’t, the shutdown command will fail due to lack of permissions.

How to remotely shut down or restart windows pcs

Use Command Line to Remote Shutdown

To shut down the computer, launch a Command Prompt window on another computer (click Start, type Command Prompt, and press Enter). Type the following command into the command prompt window for a graphical interface:

Add One or More Required Computer Names

From the remote shutdown dialog window, you can add one or more computer names and specify whether you want to shutdown or restart the computer. You can optionally warn users and log a message to the system’s event log.

Further Step Is Checking Computer Name

Not sure what the name of the remote computer is? Click Start on the remote computer, right-click Computer in the Start menu, and select Properties. You’ll see the computer’s name.

How to remotely shut down or restart windows pcs

You Can Also Use the Command Line Instead of the Graphical Interface

You can also use a command instead of a graphical interface. Here’s the equivalent command:

shutdown /s /m \\chris-laptop /t 30 /c “Shutting down for maintenance.” /d P:1:1

Consider Using Action1 to Shutdown Remote Computer if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 is a cloud-based platform for patch management, software distribution, remote desktop, software/hardware inventory, endpoint management, and endpoint configuration reporting.

There could be a situation when you left home only to realize you left your PC running. But thankfully you can Shut down or restart the computer remotely from another PC using the IP address. The need can arise anytime, but you always have to ensure that you know the right way to do that. There are several options to restart your computer remotely. You can do it either using the Windows inbuilt tools or by using any third-party application or program.

Windows has a shortcut to shut down or restart remote computers on your local network. To use this particular shortcut you’ll have to set up and configure your PC with an aim to shut down or restart it remotely anytime.

There are a few ways to help you shut down or restart remote computers. What are these? Follow the list below to learn how to reboot computers remotely. As a simplest tactic, you can use graphical user interface or command to restart your PC from another Windows PC or by using Linux computer.

How To Restart Remote Computer (Windows 10)

1. Use IP Address To Remotely Restart A Computer

Restarting remote computers using IP addresses is for the users on the same network. To either shut down the computer remotely you can use the Windows shutdown.exe tool or otherwise you can do it by opening the PowerShell tool. How to restart remote computer? Follow the steps below to learn the process:

  • Open Windows PowerShell.
  • Now, issue the shutdown command using the syntax: shutdown /r /f /m \\[remotecomputerIP] -t 00
    • /m \[remotecomputerIP]– to target a specific device. You can also substitute [remotecomputerIP] with either the network name or IP address of the computer.
    • /r forces full restart
    • /hybrid—shutdown followed by fast start up, used in conjunction with /s
    • /f forces all running applications to close
    • /t 00 tells the command to restart without any time delay (zero seconds)
    • /c enables the addition of a message, such as: “The IT department is remotely restarting your computer.”
    • /? displays a full list of commands

In case the command does not work, you can try it again by replacing the forward slash ‘/’ with a hyphen ‘-’. The only limitation while using this process to shutdown remote computers is that you are required to be connected to your remote computer with admin privileges. If you have configured high security on your system, this might be a bit of a difficult process.

2. Use Remote Desktop to Restart Remote Computer

Remote Desktop is Windows inbuilt app and saves you from following the command approach to restart remote computer. This is used over a network and you’ll be required to set up port forwarding on your router. Type ‘rdp’ in the search bar to locate Remote Desktop Connection.

How to remotely shut down or restart windows pcs

Run the Remote Desktop Connection app and input IP address or the hostname of your PC.

How to remotely shut down or restart windows pcs

Enter the asked credentials to proceed further. When the connection is established you can use your mouse to reboot your computer in the usual way. Your system is restarted. You can follow the same process to shut down remote computers.

Were We Worth Your Help?

Try these hacks to shut down the remote computer if you have left something open and forget shutting it down. Also, you can anytime restart the computer remotely using the above stated process or using a third-party source like Shutter. Open this program on another PC using a web browser and follow the instructions ahead.

Let us know in the comments below, were you able to shut down or restart remote computer? Till then, signing off!

Don’t forget to Like us on Facebook, Follow us on Twitter and also Subscribe to our YouTube channel.

For regular tech updates, keep following Tweak Library!

In this article, we gonna show you ” how to use the remote shutdown command ” in Windows. It is used to remotely shutdown, log off or restart a local or networked computer.

This method can be very advantageous if you have multiple computers at your workplace or at home. You can do a remote shutdown from the command prompt (CMD) using the shutdown command.

Things You will Need:

1. A computer that runs on Microsoft Windows.
2.Network Connection (which is required to find a target computer)

Step To Remotely Shutdown A Computer

Step 1: Open Command Prompt

How to remotely shut down or restart windows pcs

Windows 7: Click on the ” Start ” menu And Select “Run…” from the given list. Now type “ cmd ” into the Run dialog and press enter.

Windows 8: Directly type ” command prompt ” in the search bar present on the side drag screen.

Step 2: Get the list of computers connected

Type ” net view ” command and press enter. Now a list of computers connected to that network will be displayed.

Step 3: Choose your target

Choose your target computer from the list and remember that computer name.

Step 4: Shutdown command

Now Type ” shutdown -m \\computer name ” in the command prompt. Replace ” -m with -f ” for closing all the running applications on the target computer.

You can also replace ” -m with -s ” For a normal shutdown or you can even replace “ -m with -r ” for restarting the target computer.

Some other commands are ” -e ” for documenting the reason of an unexpected shutdown, -i for displaying the graphic user interface ( GUI ) or -c to comment on the reason for the shutdown or restart. computer name is most probably where you should type the name of the target computer.

Step 5: Shut down

Now your target computer will automatically shutdown.

Note :

If you use this method for anything other than educational purposes you could get into lots and lots of trouble.

Now that you have learned how a computer can be remotely shutdown, you may also like to learn how to disable this remote shutdown. It is available at this link.

Share your views and experiences regarding this topic in the form of comments..

Technical support The new generation of the WORLD.

How to remotely shutdown, restart or logoff a Windows

January 16, 2010

This article will describe how we can remotely restart, shutdown, log off or even abort a system shutdown in our Local/Network machines using Remote Shutdown Tool (shutdown.exe).

We can use the Remote Shutdown Tool with GUI or from the command prompt but we need to have administrative privileges on those machines.

We can start the GUI of Remote Shutdown Tool by executing:—

If we need to use the command line tool here are the options:

Note: We can use the – switch in case / switch does not work or vice versa

Usage examples:
Restart a network machine and force any running applications to close

shutdown /m \\computername /r /f

Abort a previous shutdown command

shutdown /m \\computername /a

Shutdown a network machine and force any running applications to close

shutdown /m \\computername /s /f

Logoff a machine and force any running applications to close (This cannot be used with /m to specify the target machine)

shutdown computername /l /f

Hibernate a local machine and force any running applications to close

shutdown /m \\computername /h /f

Note: By default the time-out period in previous examples is set to 30 seconds.

Restart a network machine and force any running applications to close giving a reason and set the time-out period to 1 minute (120 sec)

shutdown /m \\computername /r /f /c “Computers will restart in 1 minute, please save any work. System Administrator” /t: 120

Schedule a restart of a machine:

at 23:00 /every:M,T,W,Th,F shutdown /r /m \\computername

In case we want to shutdown/restart multiple network machines through a batch file have a look at the following :—

This article will describe how to shutdown remote network computers by using a small batch script to loop into each hostname/ip line within a text file and issuing the shutdown command to the computer(s).

The above code will take an argument for the shutdown time which we specify while running the script:

@echo off
if “%1″==”” goto fin
for /f “tokens=1″ %%i in (computers.txt) do ^
shutdown -s -t %1 -f -m \\%%i
:fin

Explaining the above code we first check if an argument exist so it continues with the batch file else it ends.
For each hostname/ip inside the computers.txt it executes the shutdown command for each remote machine inside the network.

We could even simplify the script without asking for any arguments with the following snippet:

@echo off
for /f “tokens=1″ %%i in (computers.txt) do ^
shutdown -s -t 30 -f -m \\%%i

The -t 30 is for the time limit which by default is 30 if you do not specify that option.
The -s option shutdown the computer.
The -f option forces the application to close while the system shutdown without asking the user to interact.
The -m option is to specify the computer(s) hostname/ip.

After we finish with the batch file we can schedule it to run through a domain admin account to remotely shutdown the network computer(s) at specific times and dates.

Need to restart all the Windows computers on the network? Need a script to add to the domain controller’s Task Scheduler to shut all the computers down at night? This script reads a text file populated with computer names and performs the remote shutdown command on them. In the script as-is, the computers will restart after 5 minutes (300 seconds), and display a warning to any users currently logged on to save their work before their computer automatically restarts. Of course, the delay and message can be changed, and if you want the script to instead shutdown, replace the “-r” switch with “-s”. Create a text file with one computer name on each line and change the “C:\computers.txt” part of the script to match the path and filename of the text file.

It may look like a somewhat clumsy method when you run this, as it opens several windows to run the commands (your server should handle it just fine though—my Windows 2000, 2003 and 2008 DCs all tested okay), but this method allows all the switches to be used in the remote shutdown command including the “comment” switch, giving users a warning of the impending restart/shutdown in case this has to be done during normal working hours and would otherwise forcibly close everything without a chance to save open documents. When you have users of mixed computer-literacy, this courtesy will reduce staff disruption and, in turn, make things easier for the IT staff.

I use this all the time to forcibly restart computers that are still logged on (but in distant locations on the network) when performing system maintenance and software upgrades outside of office hours, or if there is a situation where all users must be logged off due to an organization-wide incident during normal working hours (whenever our database crashes, all users must be logged off for this to be rebuilt; I run this script, giving them a short while to save their work, then I alter their permitted logon hours in Active Directory to prevent them from logging on again until everything is ready). I also add this script to the Task Scheduler on the domain controller so as to forcibly restart all computers at the end of the work day, as there is invariably *someone* who forgets to log off their computer with medical data still on the screen: a major security liability when the cleaning staff service the building later in the evening. In each case, the delay and warning message are there in case there are users who have elected to work overtime hours or if the script is run ad hoc during regular working time.

On many occasions, sure that after leaving home or from the office running, we have subsequently realized that we have left our PC on. Although perhaps others are those who do it consciously since they have left some process running or finishing some download or installation. In these cases, we will have to wait to return home or the office to restart or shut down the computer. However, the ideal would be to do it from any other computer remotely. Luckily, in many cases it is possible and that is why we will show how to restart the PC remotely.

Basically, we can distinguish between three different ways to restart our computer remotely:

  • From the command prompt.
  • Making use of the Remote Desktop application .
  • Using some third party application.

How to restart your PC from the command line

The first way to restart a computer remotely is to do it from the command prompt or Windows Powershell. However, this method is valid as long as the PC we want to shut down or restart is on the same network as the computer from where we are going to order its shutdown or restart.

In this case, the first thing we have to do is open the Windows Powershell tool, something we can do by typing the name of the tool itself from the search box on the taskbar. Once we have the command line in front, the next thing we should know is the command we will use to shut down or restart the PC remotely.

In this case, the command in question is “shutdown”, and the syntax to be used for this case will be:

  • [/ m // team] [/ t xxx]

Specifically, what we are going to have to indicate is the name of the command itself, followed by the / m parameter and then the name of the device in that network or its IP address. Therefore, the command to be executed from any other equipment within the same network will be:

  • shutdown / m // teamname ->shutdown / m //192.168.1.197 ->shutdown / m // team075B

Optionally, we can also add the / t parameter followed by the number of seconds we want the device to wait to restart. That is, if we add / t 60, then the indicated equipment will restart after 60 sg from executing the command.

So you can restart your PC with Remote Desktop

Remote Desktop is a Microsoft application that allows, as its name implies, connect remotely to the desktop of any other computer on our same network or through the Internet. A tool that is preinstalled in Windows 10 and therefore does not require that we perform any installation.

Of course, the first thing we have to do to be able to control our PC from another computer is to configure everything so that the remote connection can be made correctly, as long as we have not previously used and configured it.

To allow remote connections to a computer, we have to go to the file browser, right-click on This Computer and access the Properties . This will open the system properties window, where we have to click on the Remote Access Configuration option and in the Remote Access tab of the system properties, check the box Allow Remote Assistance connections to this equipment .

When our PC is correctly configured, we can start the tool on the PC from which we want to connect to shut down or restart ours remotely, indicate its IP and enter the unlock password if necessary. Once this is done, we will access the desktop of our PC remotely and we can turn it off or restart it as if we were sitting in front of it without major problem.

Shutter allows you to restart your PC remotely

Another way to restart the PC remotely is to use an application like Shutter. It is a software that we can get completely free from this link and is available in installer and portable version.

Anyway, once we launch Shutter on our desktop, we will see that it is a tool that allows us to schedule the execution of certain actions remotely. Therefore, it will allow us to schedule the restart of the computer through an event.

Once Shutter is installed on the destination PC, we can perform several remote functions from another computer through the browser. Therefore, in this case, we will use Shutter as a server that will give us remote access to our PC from any browser.

To configure it this way, we open Shutter and from the Options menu option, we enter Web Interface . Once there, check the Enable box and enter the IP of the listening device and the port through which communication will be established. There, we can also indicate the username and password to unlock the device when we connect to it remotely.

With this configuration, we will have everything ready to connect to our computer remotely from another device connected to our same network, however, it is possible that sometimes we want to connect from another computer outside our network . In this case, we can use any device to shut down or restart the PC remotely easily.

To do this, we will have to access the page of our router and make sure that the IP and port configured in Shutter are enabled. In that case, we can open any browser on any device and type in the address bar the IP address of our equipment followed by the port established for communication with Shutter. If all goes well, from there we can restart the PC remotely among other things.

Search Blog

what’s new

How to remotely shutdown or reboot a Windows PC

There are many situations in which you might need to reboot or shutdown a remote computer. Depending on the case, one of the options below may suit you. A quick reminder: this tutorial is aimed at MS Windows environments.

1. RDP Session

If you have remote desktop access to a Windows PC, you should know that all you have to do is sign in through the Remote Desktop Connection client and do it the old school way.

Connecting to remote PC via RDP client

Normally shutting down or restarting the PC using the Windows -> Power button

1.1 Command line

Shutting down via command line on a remote desktop connection

shutdown /s /f

Rebooting via command line on a remote desktop connection

/f : force running apps to close down

2. Command line / RDP disabled

If RDP is disabled or you just don’t want – or can’t – open a session to the remote computer, you should use an elevated session of Powershell to shutdown or reboot it via the following commands. Note that you have to be within the domain environment.

Remotely rebooting a PC via command line

shutdown.exe /r /f /m \\remotepc

where:
/r : restart
/f : force running apps to close down
/m \\remotepc : remotepc is the hostname of the machine to execute the command on; the IP address can also be used here, instead of \\remotepc.

To shutdown rather than reboot, replace /r with /s .

2.1. “Access Denied” error / System has hung

If you didn’t run the command with elevated privileges, the server was unable to validate your credentials, or the system has hung, you’ll probably get an “Access Denied” error. Either way, if that’s what shutdown.exe returns, try the following before using the shutdown command.

Remotely accessing PC to validate credentials firsthand

NET USE \\remotepc\IPC$ password /USER:user

where:
remotepc : hostname or IP address
password : user’s password
user : administrator or user account; note that you might also need to specify the domain (e.g., [email protected]).

Now, run the shutdown command as in 2.

3. Conclusion

There are many options for us to remotely shutdown or restart a Windows PC/ Server.

Always remember to check the domain you’re at. If that’s your case, log in to your VPN first in order to reboot a machine within that specific network.

Moreover, after restarting the PC, it is a good idea to check if it went up again as expected:

Finally, you can use a little help to check for options that you may want to use with shutdown command:

Open a command window (or Windows Key + R ) and type the following.

The answer Marcus Adams gave also has a keyboard shortcut: Ctrl + Alt + End . You do have to be in full screen and/or have the RDP session set to Apply Windows key combinations on the remote computer. This effectively sends a Ctrl + Alt + Del to the remote computer (so it’s handy to know for other occasions/uses too). From there, as Marcus said, you can get to Restart, Shutdown, etc. from the little red power button icon in the lower right corner.

Alternatively, you can click once on the Desktop (or the Taskbar) of the remote computer, then press Alt + F4 and you get the old-fashioned pop-up with all the shutdown options in the drop down.

Update: as noted in the comments, Ctrl + Alt + End in Windows 10 only gives you the option to Disconnect. You can’t Restart or Shutdown from there. I also can’t find a Windows Security option in the Start Menu. But no worry, as mentioned the Alt + F4 method still works, and I use that exclusively now (I remote in for work every day, and also manage multiple machines at home).

From Ways to shutdown/restart your computer via Remote Desktop

Another trick is to click on the desktop and type Alt + F4 . This will call up the shutdown dialog, where you get the usual shutdown options like “Shut down”, “Shut down without installing updates”, “Restart”, “Stand by”, and “Hibernate”.

Akemi Iwaya has been part of the How-To Geek/LifeSavvy Media team since 2009. She has previously written under the pen name “Asian Angel” and was a Lifehacker intern before joining How-To Geek/LifeSavvy Media. She has been quoted as an authoritative source by ZDNet Worldwide. Read more.

How to remotely shut down or restart windows pcs

Getting your home network set up for ease of use is a highly desirable goal to achieve, but what do you do when the computer you want to use as a media server lacks remote desktop support? Today’s SuperUser Q&A post has some helpful advice for a frustrated reader.

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

The Question

SuperUser reader regularmike wants to know how to remotely shut down a Windows computer lacking remote desktop support on his home network:

I have an older Dell Dimension desktop that originally had Windows XP running on it but has recently been upgraded to Windows 8.1. I plan on using it as a media server running Plex so that I can easily move files onto it over my home network and update the library through the Plex web administration interface.

I also want the ability to shut the computer down when I am not using it. I do not want to plug a monitor and keyboard into it, so I am not sure how to do this since remote desktop support seems to only be available in Windows 8.1 Pro for some reason.

The only thing I can think of is to set up a web server that runs some highly-trusted code that can invoke the shutdown command on the host, but I believe there must be a simpler way to do this.

How do you remotely shut down a Windows computer lacking remote desktop support on a home network?

The Answer

SuperUser contributor GeraldB has the answer for us:

VNC (TightVNC or one of the many other flavors available) is a freeware graphical remote control solution like the remote desktop feature you wanted to use and it supports Windows 8.x. VNC via an SSH tunnel is recommended for usage across the Internet.

Alternatively, if you enjoy the command line, try running an SSH server on your media server. You can then run an SSH client (like PuTTY) which would allow the automation of file transfers and access to the command line with high security. You can use the shutdown command inside of an SSH session or even directly from another Windows machine. This allows you to shut down or restart a local or remote computer.

For a low-tech solution, try holding the power button down quickly for a second or less (not the five seconds for a hard power off). Windows should shut down gracefully or go into standby mode (depending on the configuration).

Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

As a sysadmin you will eventually have to deal with a system that has become unresponsive at the GUI. Fortunately, there are several ways to reboot a Windows PC from another windows PC or server on the network. Here are four of my favorite methods to do this:

1. The shutdown command. This is a command line tool available on most any windows computer which will allow you to remotely reboot any computer joined to an active directory domain. All that’s required are the right credentials.

  • shutdown -r — reboots the system.
  • shutdown -m — specifies a remote computer to be shutdown/restarted/logged off (\computername)
  • shutdown -s — shuts the system down (and powers it off).
  • shutdown -l — logs the current logged on user off the system.
  • shutdown -t xx — where xx is number of seconds to wait untill shutdown/restart/logoff
  • shutdown -i — launches the GUI version of shutdown tool.
  • shutdown -a — aborts the previous shutdown command.

Force system named opti390.domain.local to reboot now.
shutdown -m \opti390.domain.local -t 0 -r -f

2. Rundll32. This method invokes Windows’ native ability to run system DLL’s which can perform system functions.

  • rundll32.exe user.exe,ExitWindows – shuts down windows completely.
  • rundll32.exe user.exe,ExitWindowsExec – restarts windows.
  • rundll32.exe shell32.dll,SHExitWindowsEx x where x stands for:
  • 0 – logoff
  • 1 – shutdown
  • 2 – reboot
  • 4 – force
  • 8 – power off

3. Powershell restart-computer command.

Example: Reboot server.domain.local
Restart-Computer -Force -ComputerName opti390.domain.local

4. Taskkill and tasklist. Two commands that can be used on a network connected windows system to list and terminate running processes. Taskkill can also be used to reboot a system by killing critical windows processes.

  • tasklist – lists processes currently running
  • taskkill – terminates any process by process number

Example: First you can list the processes on opti390.domain.local (to find out which processes may be hung). Then you can force terminate those processes that are not responding.

Example: Find processes that are not responding and terminate all of them.
taskkill /f /fi “status eq not responding”

Example: Reboot opti390.domain.local remotely.
taskkill -S \opti390.domain.local /U domainusername /P password /im lsass.exe /fp

5. BONUS due to popularity. PSExec is a free suite of tools by Sysinternals created for remotely managing windows systems in a business network environment. If your systems are joined to a domain and you have an administrative account, you can use the following to command to remotely reboot a system using PSExec.exe.

First download and extract PSTools.zip to a folder on the system you’re going to be doing the remote rebooting from. Open a command prompt window and change directory to the PSTools folder (you extracted previously).

Example: Remotely reboot a domain joined PC using psexec.exe.
psexec.exe \\opti390.domain.local -u DOMAIN\ -p

-i -d cmd /c shutdown /r /f /t 1
psexec.exe command options

  • -i Interactive session
  • -d don’t wait for process to terminate

cmd.exe command options

  • cmd windows shell on remote host
  • /c Run command and then terminate from
  • shutdown windows shutdown command
  • /r restart (/h if you want to shutdown)
  • /f Force shutdown, don’t wait for processes
  • /t 1 timeout of 1 second

It is possible to turn on a remote computer by using a 3rd party Wake On LAN (WOL) tool that is able to send a magic packet. Logically the computer will have to be plugged in to a power point so that there’s electricity to boot up the computer and keep the computer running. Turning off or shutting down a remote computer is also possible and it is actually much easier since the computer is already booted up and assumed is connected to the network.

There are a few different methods to remotely shut down, restart or log off a user from the computer, each with its own pros and cons.

Method #1: Third Party Software

The easiest method is probably to use a third party software to shutdown a remote computer because the configuration is much simpler than using the built-in shutdown.exe tool that is also covered in this article. Most of the time you will need to have the software running on both computers, one is listening for command to shutdown while the other sends a command to request the computer to shutdown.

1. Airytec Switch Off

Airytec Switch Off is probably the best option for third party software because you only need to run the program on the remote computer and the remote commands such as shutdown, restart, sleep, hibernate and opening predefined scripts can be accessed through your web browser including your mobile or tablet.

After installing Airytec Switch Off, run the program, right click on the tray icon at the notification area and select Options. Go to Remote tab and click the Edit web interface settings button followed by accepting the UAC prompt. Again go back to the Remote tab, and click on the “Enable web interface” checkbox. By default it uses port 8000 and it is advisable to set a password for the username “User”. Click OK to save the settings. You will need to allow the program through Firewall or else you won’t be able to access the web interface.

How to remotely shut down or restart windows pcs

To shut down the remote computer that you’ve just configured, simply launch the web browser from other computer and enter the URL http://ComputerName:8000 in the address bar. You will need to change the ComputerName with the name that is set on the computer or alternatively specify the internal IP address. You will be prompted to enter a username and password to access the webpage. The username is “User” without the quotes and the password is what you’ve entered earlier at the Remote tab. Once you get in the Airytec Switch Off page, simply click on any commands that you want to perform the actions on the remote computer.

How to remotely shut down or restart windows pcs

Once you’ve enabled the Remote feature, Airytec Switch Off will automatically install itself as a service to run during Windows startup. Although they have portable builds for 32 and 64-bit systems, the remote functions are only available in the full installer version. Airytec Switch Off is free and has successfully tested on Windows 7 32-bit.

2. DShutDown

DShutDown is a small and portable shutdown tool that comes with quite a good amount of shut down types including other actions such as wake on LAN, alarm clock, lock workstation, hanging up modem, disable LAN adapter and etc. The good thing about DShutDown is it can automatically search for all online computers on your network and add it to the list.

After downloading DShutDown, extract the archive and run “RDShutdown Setup Utility.exe” on the computer that you want to shutdown. First set a password, and then check the “Auto start when Windows starts” checkbox. We failed to get the Install as Service option working because it kept on terminating by its own when it receives any shutdown command. Once you’ve configured DShutDown to automatically start when Windows is booted up, RDShutdown.exe file will run and sit in the notification area.

How to remotely shut down or restart windows pcs

To shut down the computer that you have setup, run DShutdown.exe and click the Get PC list button. Once the remote computer has been added to the list, tick on the checkbox to select the PC, select the shutdown type and enter the password. To send the command, click the Enable Timer button where you are given 10 seconds to cancel the task.

How to remotely shut down or restart windows pcs

3. Poweroff

Poweroff is an open source free utility that is able to control the power state of your computer. Even though it is a bit outdated, Poweroff is still one of our favorite tool because of the powerful features and the support for command line arguments. The functionality still works except it requires a bit of manual configuration to get it working or else you’ll end up with connection timed out error.

First of all, you need to run Poweroff.exe as administrator (right click and select “Run as Administrator”). Then at the menubar, click on Service and select Create service. Check the “Allow remote control” checkbox and click the Settings button. You can change the port number, set a new password and click OK.

How to remotely shut down or restart windows pcs

Finally click File at the menubar and select “Save settings”. You will need to manually add poweroff.exe to the allowed programs in Firewall which is located in C:\Windows\System32\poweroff.exe. The file is automatically copied to the System32 folder after creating the service.

To shutdown the remote computer, run poweroff.exe from another computer, select Remote Computer and click the Specify button. Enter the name of the computer that you want to shutdown, type in the password and click OK. If you’ve changed the port, make sure you change it to match the one on the other PC.

How to remotely shut down or restart windows pcs

Select the action that you want to send to the remote computer along with any additional options such as a warning message, allow cancel, run program, etc and finally when to do the action. Click the Do it button.

How to remotely shut down or restart windows pcs

There are 4 more methods to shutdown remote computers via LAN/WAN on page 2.

Problem

When installing a SQL Server cluster, Services Packs, Hotfixes, etc.. there may be a need to reboot both the nodes for changes to take affect and to reboot the server we have to login to each node which is time consuming. Also, there may be a time when you are not able to login to the server after a reboot due to the server being hung. In this tip we will take a look at the SHUTDOWN command and how it could be used.

Solution

This article will guide you through how to use the DOS SHUTDOWN command in Windows to remotely shutdown, restart or log off the local or network computer..

Shutdown command is useful for these scenarios:

1. In case we have to restart multiple computers
2. Server is pingable, but not allowing user to login, in that case we can restart the server remotely
3. User is able to login, but can see only a blue screen, so at that time we can remotely restart the computer

Permission

You must have administrative access to the local or network computer to restart it remotely. For multiple computers in the domain it is recommended to use the Domain Administrator account.

Command Syntax

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c “comment”] [-d up:xx:yy]

-i Show the graphical user interface of shutdown window
-l To log off from the machine. Make sure that you are not using -l switch with -m switch
-s Shutdown the desired computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m -m\\machine name is used for to shutdown/restart/abort remote computer
-f Forces running application to close without warning
-t -t xx set timeout for shutdown command to xx seconds
-c -c”comment” to add shutdown comment, you can add up to max 127 characters

You can also see above output by executing shutdown \? command from DOS

SHUTDOWN command using GUI

Go to > RunCmd — type the shutdown -I command

How to remotely shut down or restart windows pcs

Here you can select the different options (Restart/Shutdown/Log Off) as per your need. Click on Add. button to add the remote server name.

How to remotely shut down or restart windows pcs

Execute SHUTDOWN command using command prompt

Next Steps
  • Take some time to lear about the different switches
  • Create a batch file by adding a number of servers with the SHUTDOWN command
  • Execute shutdown command by using the time (-s,-t) and immediately execute the abort (-a) command
  • By Mike Williams
  • Published 10 years ago

How to remotely shut down or restart windows pcsIf you’d like to remotely restart or shut down a system on your network then Windows already provides some basic assistance. A command like shutdown /s /m \\hostname, say, will try to close down the named computer, and you can tweak precisely how this will work in many different ways (enter shutdown /? at a command line for the full list).

Command line tools aren’t always the most convenient way to manage your network, though. So if you’d like an easier way to monitor running systems, remotely restart or shut them down whenever you like, and wake them up as well, then you’ll probably prefer the small but surprisingly powerful RemoteRebootX.

The configuration process starts by giving RemoteRebootX the list of hosts you’d like to manage. There’s no option to automatically scan your network, unfortunately, but it’s easy enough to add them manually: just type the “+” button and enter your host names or IP addresses. Or if you’ve a really big network, there’s also the option to import host names from a file.

If you intend to use the Wake-On-LAN feature then you’ll need your host’s MAC addresses, too, but these can be captured automatically by selecting them all and clicking Actions > Get MAC Address.

And then you can get started. To reboot or shut down one or most hosts, for instance, just choose the systems you need, right-click and select the appropriate reboot or shutdown function. (RemoteRebootX supports both regular shutdowns, which can be cancelled if someone is working at the PC and needs to save something, and forced shutdowns, which will close applications even if they have unsaved data.)

Once you have the MAC address, it’s just as easy to wake up a remote system. Well, in theory, anyway: the remote network adapter needs Wake-On-LAN support, and it has to be enabled by the driver, so if this doesn’t work then you might want to check those details first.

RemoteRebootX also includes a capable scheduler, so you can set up any reboot, shutdown or wake tasks to run entirely automatically.

And useful bonus features include easy access to key system information details on the remote system (last boot time, free space on the system drive, Windows services status), a ping option to help you see which PCs are online, and the ability to initiate a remote desktop connection to your chosen host in a couple of clicks.

If there’s one complication here, it’s that RemoteRebootX doesn’t automatically save your network data, presumably because it’s a portable tool which can be used on many different systems. So keep in mind that you’ll have to click File > Save State to save your hosts, MAC addresses and so on, and File > Load State when launching the program to reload them.

Otherwise, though, the program is straightforward, easy to use and packed with handy features, and should make an excellent addition to most people’s networking armory.

If you open a Remote Desktop session to another Windows PC, even via an account with full admin privileges, you won’t be able to shut down or restart the PC via the traditional GUI methods. Heading to the Power Users Menu in Windows 8, for example, or the Start Menu in earlier versions of Windows, only reveals a “Disconnect” button where options like sleep, shutdown, and restart normally reside.

Thankfully, you can still reboot or shut down a remote PC, but you’ll need to do it manually via the Command Prompt. While connected to a remote PC, save all open documents and then launch the Command Prompt from the Start Menu in Windows 7 and earlier (Start > Run > cmd) or search for Command Prompt or cmd from the Windows 8 Start Screen.

In the Command Prompt window, we’ll be using the command shutdown. But we can’t just use it by itself — doing so will simply log off the current user, but leave the PC powered on. Instead, like many command line operations, we’ll need to add specific parameters to tell the shutdowncommand exactly what we want to do. So, to get started, type “shutdown” into the Command Prompt window, followed by a single space. Next, we’ll add the necessary parameters, with the major ones listed below:

Shutdown Command Parameters

PARAMETER FUNCTION
-s Shuts down the comptuer.
-r Reboots the computer.
-f Force-close all running applications.
-m \\Computer Specifies a specific computer on the network that you want to shut down or reboot. Absent this parameter, the command affects only the local PC on which it is run.
-t xx Sets a delay (xx seconds) before the specified operation commences.
-c “message” Add your own text inside the quotations to provide remote users with a message about why and when their PC will shut down or reboot.
/a Aborts a shutdown or restart if used during the (-t) delay period.
/h Hibernates the computer.
/? Displays the full help document with all commands.

There are many more parameters and options for the shutdown command, most of which are only useful for those administering large networks. Small businesses and home users will primarily stick with the parameters above.

Shutdown Command Examples

First, let’s say that you are connected to your office PC via Remote Desktop and you want to reboot it immediately. You know that no one else is using it and all of your documents and data are saved. While in the Remote Desktop session, launch Command Prompt on your office PC and type the following command:

That command will reboot the computer (-r), force all applications to close so that one doesn’t get stuck and prevent the reboot from happening (-f), and it will happen immediately with a zero second delay (-t 0). In this case, we’re accessing the Command Prompt via Remote Desktop directly on the office PC, so we don’t need to specify the computer name with the -m parameter because we are, in effect, operating on the local machine, even though we’re not sitting in front of it.

Here’s a shutdowncommand that you could initiate on your own PC:

This command shuts down the computer (-s), forces running applications to close (-f), designates the remote PC by name (-m \\UPSTAIRS) because you’re executing the command on your own PC, gives a time delay of 60 seconds (-t 60), and provides a descriptive message (-c) that will appear on your spouse’s computer to notify them of the impending shutdown.

There are many more parameters and options, including some logging and reporting options that are useful to IT administrators. To view them all, bring up the shutdown command’s help document by typing:

While the intent of this article was to show you how to use the shutdown command to shut down or reboot remote PCs, you can always use any of the commands on your own local PC if you feel so inclined. So the next time you need to reboot, don’t head for the Start Menu or charms bar, get your geek on in the Command Prompt instead.

Steps:

  1. Open Run prompt, type taskschd.msc and click ok.

How to remotely shut down or restart windows pcs

    Now Go to Action >>Create task.

How to remotely shut down or restart windows pcs
set the name of your task and select the operating system of your windows vps from drop-down.

How to remotely shut down or restart windows pcs
Now Go to Trigger tab and schedule the time of reboot.

How to remotely shut down or restart windows pcs
Now set the reboot action with adding command C:\Windows\System32\shutdown.exe with add argument /r and click ok.

Last Updated: January 27th, 2021 by How to remotely shut down or restart windows pcs Hitesh J in Guides, Windows

If you are a Windows Administrator and responsible for managing hundreds or thousands of computers then you may often need to restart or shutdown multiple computers at a time. Performing this task manually will take lots of time. In this case, you can use tho methods to reboot or shutdown the remote computer.

In this guide, we will show you how to restart and shutdown the remote computers using command-line or PowerShell.

Restart or Shutdown with Command Line

In this section, we will show you how to use shutdown command to restart or shutdown the Windows computer with examples.

Basic Syntax

The basic syntax of the shutdown command is shown below

shutdown [option] “Computer Name”

A brief explanation of each option is shown below:

  • /s : Used to restart the computer.
  • /r : Used to shutdown the computer.
  • /l : Used to log off the computer.
  • /m \\computer : Used to specify the remote computer.
  • /c “Message” : Used to specify the message to display on the remote computer screen before restart or shutdown.
  • /t : Used to set the time period for restart or shutdown.

Restart the Local Computer

If you want to restart your own computer, run the following command:

Restart the Multiple Computer with GUI

You can use the option /i with shutdown command to open a graphical interface to restart a single or multiple computers:

You should see the following screen:

How to remotely shut down or restart windows pcs

From here, you can add multiple remote computers and restart or shutdown them easily.

Restart the Remote Computer with Command Line

You can use the option /r and specify the remote computer name to display the prompt on the remote computer and give it a minute before it restarts.

shutdown /r /m \\computer-name

How to remotely shut down or restart windows pcs

You can also use the /s option to shutdown the remote computer.

shutdown /s /m \\computer-name

Restart a Remote Computer with Message

You can also send a message on the remote computer screen before restart or shutdown it.

shutdown /r /m \\computer-name -c “The IT department has initiated a remote restart on your computer”

How to remotely shut down or restart windows pcs

Shutdown a Remote Computer After Specified Time

You can use the option /t to shutdown a remote computer after a specific time.

For example, shutdown a remote computer after 10 seconds, run the following command:

shutdown /s /t 10

Restart or Shutdown the Remote Computer with PowerShell

You can shutdown or restart one or more computers easily with the Windows PowerShell. In this section, we will show you how to restart or shutdown the remote computer with PowerShell.

Restart a Single Computer with PowerShell

You can use the following command to restart the remote computer with PowerShell:

Restart-Computer -ComputerName computer-name -Force

Shutdown a Single Computer with PowerShell

You can also shutdown the remote computer using the Stop-Computer command:

Stop-Computer -ComputerName computer-name -Force

Restart Multiple Computers with PowerShell

If you want to shutdown the two computers, run the following command:

Restart-Computer -ComputerName “computer1”, “Computer2”

Restart a Multiple COmputers with PowerShell

If you want to restart multiple computers then you can create a text file, add all computers in the file then specify this file path with Restart-Computer command to restart all computers listed inside the file.

Restart-Computer (get-content C:\computer-list.txt)

Conclusion

In the above guide, you learned how to restart and shutdown the remote computer with the PowerShell and command line. I hope you can now easily restart and shutdown the single or multiple remote computers.

This article gives you an overview of ways to shutdown remote PCs. It demonstrates how to make an automatic shutdown from command-line or using special tools.

Every modern Windows PC connected to a local network can be managed remotely. Network administrators can reboot and shut down individual PCs remotely, but they also can manage multiple PCs from the central location. It allows companies and organizations to organize an automatic shutdown of network PCs at nights and on weekends to reduce energy wasting and cut energy costs. There are a number of tools and technologies that can be used for automatic PCs shutdown across organizations, their main features, advantages and limitations are overviewed in this article.

Automatic PCs Shutdown Using Windows Shutdown Command and PsShutdown

Using free command-line utilities allow network administrators to create basic custom solution to shutdown PCs in the local network. It requires to create a command or script that allows to turn off multiple remote PCs and then use Windows functionality to execute it on a regular basis.

Using Windows Shutdown Command

The standard shutdown utility is included into distribution of all Windows versions, starting from Windows XP. If you have an administrative access you can use it to turn off and reboot PC. Shutdown of remote PCs is also supported. Microsoft extends functionality of this utility in almost every new Windows release, so you can get actual information about all supported features and command-line parameters for your version by typing following command in Windows command prompt:

In order to turn off a remote PC you have to use \m parameter and specify a name of the remote PC with leading double-slash. Other parameters of this command instruct to make a shutdown and force close open applications:

Windows automatic shutdown across network requires to turn off multiple PCs at once, but Windows shutdown utility can accept only one PC name as a parameter. In this case you can run a simple BAT file that extracts PC names from a text file and turns off remote PCs one-by-one:

Using PsShutdown

If you need more features than offered by Windows shutdown command, you can consider using PsShutdown. It’s a free command-line utility that can be used similarly to the standard Windows utility, but has few advantages over it.

PsShutdown allows remote user to cancel initiated operation. It prevents unconditional powering down remote PCs if they are in use and users would like to continue their work. This utility has a special syntax that allows to specify names of multiple PCs in the command-line or refer a file that stores names of remote PCs. As the result you can run only one command to execute operation on multiple PCs. Also PsShutdown allows to specify credentials for administrative access to remote PCs. This feature is important if you need to shutdown remote PCs that have different administrative credentials.

To execute shutdown on PCs which names are listed in file and give remote users an option to cancel operation, use a following command:

How to Automate Shutdown Operations

Once you created a script or tried a command that allows you to turn off remote PCs across the network you can start thinking how to automate its execution at a required date and time. On Windows you can use visual interface of task scheduler or ‘at’ command to schedule tasks. You have to specify command with parameters and time execution conditions to run it in automatic mode. You can learn more about this in the article How to Schedule an Automatic Shutdown of Remote PCs.

Automatic PCs Shutdown Using PC Power Management Software

If you prefer to use a professional software for an automatic PC management across organization, you have few options to select a suitable product from EMCO, 1E or Verdiem. Professional PC power management tool allows you not only to turn off remote PCs, but also to turn them on using Wake-on-LAN technology and perform other operations on demand and on schedule. Such products are specially designed to work in large networks, so they guarantee a higher performance and flexibility than custom solutions. Advantages of professional power management software are highlighted in a demonstration of the EMCO Remote Shutdown tool.

We are used to let technology make everything easier for us and while it may seem like we are only looking for comfort, the truth is that we should be glad about this kind of laziness. After all, the search for simple solutions has enabled us to develop amazing applications that give us more free time to relax. Remote Desktop is one of the programs that allow us to avoid complications, by enabling access to any computer on your network. You don’t have to be in front of the PC to work on it and the best part is that Microsoft has included the Remote Desktop Connection in every operating system since Windows XP.

Remote Desktop offers you the possibility of accessing files and applications from your local computer, using a remote PC. The RDC client offers features like 24-bit colour, audio and file system redirection. The Remote Desktop Protocol and the Terminal Services Client (mstsc.exe) work to ensure that you can conveniently enjoy services from your local computer in another machine within the same Windows network. There are many things that you can do thanks to this feature, including restarting or shutting down the remote computer. The Shutdown and Restart buttons appear to the right of the lock icon, whenever you connect to a Microsoft server.

The thing is that when you use a remote connection on a computer running a Windows 7, the Shutdown and Restart options are not available and you would only see Lock and Disconnect. However, there is a way to enjoy the convenience of shutting down or restarting a computer remotely in Windows 7. In order to be able to restart the remote machine, click the Start button and type this command in the search box:

The /r switch prompts the computer to reboot and the /t option determines the number of seconds that will take the command to be executed. In this case, the restart should be initiated instantly, but you can modify the time by simply changing the zero to whatever time suits you best. To shutdown the computer remotely, all you need to do is to type this command:

Alternatively, you can click the Desktop and press Alt +F4 to open the shutdown menu. In case you activate the shutdown command by mistake, you can type: shutdown /a, which will interrupt the shutdown sequence. We hope this practical solution helps you to effectively manage the shutdown and restart options for a remote machine running Windows 7.