How does XP implement remote shutdown? How to implement XP remote shutdown

Source: Internet
Author: User

In Windows XP, a new command-line tool, "shutdown", is added to " shut down or restart a local or remote computer ." Using it, we can not only log off the user, shut down or restart the computer, but also to achieve a timed shutdown, remote shutdown.

  The syntax format for this command is as follows:

shutdown [-I |-l|-s |-r |-a] [f] [-M [ComputerName]] [-t XX] [-c ' message] [-D[P]:XX:YY]

  Among them, the meaning of each parameter is:

-I dialog box showing the graphical interface.

-L Unregister the current user, which is the default setting.

-M ComputerName preferred.

-S shuts down the computer.

-R restarts after shutdown.

-A abort shutdown. In addition to-L and ComputerName, the system ignores other parameters. During the timeout period, you can only use-a.

-F forces the application to be closed to run.

-M [ComputerName] Specifies the computer to shut down.

-T XX sets the timer used for system shutdown to xx seconds. The default value is 20 seconds.

-C "Message" Specifies the message to be displayed in the messages area in the System Shutdown window. You can use up to 127 characters. The quotation marks must contain a message.

-D [P]:xx:yy lists the reason codes for system shutdown.

  first, let's take a look at some basic uses of this command :

  1. Log off the current user


This command can only unregister native users and not for remote computers.

  2. Shut down the local computer


  3. Restart the local computer


  4, timing shutdown

Shutdown-s-T 30

Specifies that the computer automatically shuts down after 30 seconds.

  5, Stop the computer shutdown

Sometimes we set the computer to shutdown, if for some reason and want to cancel the shutdown operation, you can use Shutdown-a to stop. Such as:

SHUTDOWN-S–T 300 Sets the computer to shut down in 5 minutes.

Shutdown–a cancel this shutdown operation.

These are some of the basic applications of the shutdown command in this machine. As we've described earlier, the command is more important than shutting down and restarting the local computer, but it can also operate on a remote computer, but how can it be implemented?

In the format of the command, there is a parameter [-M [ComputerName], which specifies the name of the computer that will be turned off or restarted, and the default is the native action if omitted. You can try this with the following command:

Shutdown–s–m Sunbird-t 30

Shut down the machine named Sunbird in 30 seconds; Note: Sunbird is a computer with Windows XP installed in the LAN.

However, after the command executes, the computer sunbird a little reaction, but the screen prompts "access is denied (denied access)."

Why is this happening? Originally in the Windows XP default security policy, only users in the Administrators group have the right to shut down the computer from the far end, and normally when we access the computer from another computer on the local area network, we only have the guest user right, so when we execute the above command, "Access Denied" occurs.

Once the root of the problem is found, the solution is simple, as long as you give the guest user a remote shutdown in a client computer (a computer that can be remotely shut down, such as the Sunbird above). This can be achieved using the local security policy in the Group Policy or administrative Tools of Windows XP. The following is an example of Group Policy:

1, click the "Start" button, select "Run", enter "Gpedit.msc" in the dialog box, and then click OK to open the Group Policy Editor.

2. In the left pane of the Group Policy window, expand Computer configuration → Windows settings → security settings → local policy → user rights assignment.

3. In the right pane of the Group Policy window, select Force shutdown from remote system and double-click to open it.

4, in the pop-up dialog box shows that currently only members of the "Administrators" group have permission to shut down from the remote, click the Add User or Group button below the dialog box, and then enter guest in the new Pop-up dialog box, and then click OK. As shown in Figure 9.

5, then in the "from the remote system forced shutdown" of the attribute added a "guest" user, click OK.

6, close the Group Policy window.

Having done this, we gave the guest user sunbird the computer permission to remote shutdown. Later, if you want to turn off the computer Sunbird remotely, just enter the following command on other computers with Windows XP on your network:

Shutdown-s–m sunbird-t 30 (other parameter usage ibid.)

At this point, a "System shutdown" dialog appears on the screen of the Sunbird computer, prompting that the system is about to shut down. Please save any work that is running and log off. Unsaved changes will be lost. The shutdown was initiated by Sunbirdguest. "There is also a timer at the bottom of the dialog box that shows how much time is left for the shutdown." While waiting for the shutdown, the user can also perform other tasks, such as closing the program, opening the file, and so on, but not closing the dialog box unless you abort the shutdown task with the Shutdown–a command.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.