Vous êtes sur la page 1sur 5

How to Remotely Shut Down or Restart Windows PCs http://www.howtogeek.com/109655/how-to-remotely-shut-down-or-rest...

How-To Geek

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 youve 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 its 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.

1 de 5 31-05-2013 16:00
How to Remotely Shut Down or Restart Windows PCs http://www.howtogeek.com/109655/how-to-remotely-shut-down-or-rest...

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

Next, youll have to open the required port in the computers 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.

2 de 5 31-05-2013 16:00
How to Remotely Shut Down or Restart Windows PCs http://www.howtogeek.com/109655/how-to-remotely-shut-down-or-rest...

Your user account must also have administrator permissions on the remote computer. If it doesnt, 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:

shutdown /i

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 systems event
log.

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. Youll see the computers name.

You can also use a command instead of the graphical interface. Heres the equivalent command:

3 de 5 31-05-2013 16:00
How to Remotely Shut Down or Restart Windows PCs http://www.howtogeek.com/109655/how-to-remotely-shut-down-or-rest...

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

Shut Down From Linux

Once youve 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:

net rpc shutdown -I ip.address -U user%password

Replace ip.address with the numerical address of the Windows computer, user with the username of an
account that has administrator privileges on the remote computer, and password with the user accounts
password. You can add a -r option to the command if you want the computer to restart instead of shutting
down.

If you have remote desktop access, you can also access the desktop and shut down or restart that way. The
shutdown.exe command is a faster way of doing the same thing designed for system administrators you can
shut down or reboot multiple computers much faster than you could by logging into them one-by-one.

Got Feedback? Join the discussion at discuss.howtogeek.com

SHOW ARCHIVED READER COMMENTS (25)


Chris Hoffman is a technology writer and all-around computer geek. He's as at home Published 03/26/12
using the Linux terminal as he is digging into the Windows registry. Connect with him 74,364 Views
on Google+.

RECOMMENDED POSTS

How to View and Disable What Is the Purpose of the The Painless Way to Ditch
Installed Plug-ins in Any Do Not Cover This Hole Your Old Windows XP for a

4 de 5 31-05-2013 16:00
How to Remotely Shut Down or Restart Windows PCs http://www.howtogeek.com/109655/how-to-remotely-shut-down-or-rest...

Browser Hole on Hard Drives? More Secure Linux

How to Convert Your Color How to Install Ubuntu Linux How to Automate Your
Photos to Stunning Black on Your Chromebook with Always-On Raspberry Pi
and White Prints Crouton Download Box

5 de 5 31-05-2013 16:00