Switch from a cainiao to a Shutdown system command

Source: Internet
Author: User

Shutdown windows xp. Windows XP is a program named shutdown.exethat completes the shutdown operation. shutdown.exe is used when the host is shut down. In the use of Windows XP, if we can make good use of this tool, it will be of great benefit to our work. For the use of shutdown.exe, I want to do the following.
I. Automatic shutdown

In fact, we only need to search the Internet for a large number of small software that can be automatically shut down. That is to say, most methods to achieve automatic shutdown are to use some third-party software, which is not only troublesome, but also dedicated to the use of a software to implement this small function! In fact, Windows XP itself has a Timed Shutdown function. Let's take a look at how to achieve automatic shutdown of Windows XP.

To find the answer, we need to first understand the shutdown of windows xp. Windows Firewall. In this case, shutdown.exe must be automatically shut down. For example, if you want to shut down your computer at, you can select start> Run and enter at Shutdown-s, at, the "system shutdown" dialog box appears, with a 30-second countdown by default, prompting you to save your work. If you want to shut down the server by a time-based method, you can enter “shutdown.exe-s-t 3600 ", which indicates that the server will automatically shut down after 60 minutes, and" 3600 "indicates 60 minutes. Result:


System Shutdown

If you want to cancel Automatic shutdown, enter "shutdown-a" in the running process ". In addition, enter "shutdown-I" to open the Set automatic shutdown dialog box and set the automatic shutdown.

Each Shutdown.exe parameter has a specific purpose, and each execution will have different effects. For example, "-s" indicates that the local computer is disabled, and "-a" indicates that the local machine is shut down, and more values are listed below. You can use Shutdown.exe as needed.
Shutdown.exe-a cancel Shutdown
Shutdown.exe-d [u] [p]: xx: yy lists the cause code for system shutdown.
Shutdown.exe-f forcibly shut down the application.
Shutdown.exe-m computer name controls the remote computer.
Shutdown.exe-I displays the graphical user interface, but must be the first parameter of Shutdown.
Shutdown.exe-l log out of the current user.
Shutdown.exe-r shut down and restart.
Shutdown.exe-t time sets shutdown countdown. The default value is 30 seconds.
Shutdown.exe-c "message content": Enter the message content in the shutdown dialog box (cannot exceed 127 characters ).

2. One-Click Shutdown


1. Right-click the blank area of the desktop to create a new shortcut ".

2. Enter the following command in "command line" to create a shortcut:

"Shutdown-s-t 0 ". (In Windows 98, press "C: windowsRUNDLL32.EXE user, ExitWindows ".)

3. Press the mouse and select "Next". In the shortcut name bar, enter "one-click shutdown" or another name you like.

4. Then, you will see a shortcut icon named "one-click shutdown" on the desktop. Right-click the icon and select "properties ", go to the shortcut page, and then select a function key (such as F1-F12) in the shortcut bar ). We recommend that you select a function key that is not commonly used, and click OK to exit.

Iii. Remote Shutdown

I have already introduced some application of shutdown. How can I operate on a remote computer?

In the format of this command, a parameter [-m [ComputerName] has been listed. You can use this parameter to specify the name of the computer to be shut down or restarted, if this parameter is omitted, the local operation is performed by default. In Windows XP's default security policy, only users in the Administrator group have the right to disable the computer from the remote end. Generally, when we access the computer from other computers in the LAN, only the guest user permission is required. This user permission cannot shut down a remote computer. to shut down a remote computer, you only need) grant the remote shutdown permission to the guest user. This can be achieved using Windows XP's "Group Policy" or "Local Security Policy" in "Administrative Tools. The following describes the "Group Policy" as an example:

1. Click Start, select Run, enter gpedit. msc in the dialog box, and click OK to open the Group Policy Editor ". 2. In the left pane of the Group Policy window, choose computer configuration> Windows Settings> Security Settings> Local Policy> User Privilege assignment ". ()


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


4. In the displayed dialog box, only members in the "Administrators" group have the right to remotely shut down the instance. Click the "add user or group" button at the bottom of the dialog box, in the displayed dialog box, enter "guest" and click "OK ". :

Force Shutdown attribute

5. Close the Group Policy window.

After the above operations, we grant the remote shutdown permission to the guest user on the computer. Then, in Start/run, enter:

Shutdown-s-m ComputerName-t 30

At this time, a "system shutdown" dialog box will be displayed on the ComputerName computer screen, prompting "the system is about to shut down. Save all running jobs and log out. Unsaved changes will be lost. Shutdown is initiated by ComputerName guest ." There is a timer at the bottom of the dialog box, showing the time to stop. During the waiting time, You can execute other tasks, such as closing the program or opening a file. However, you cannot close the dialog box unless you use the shutdown-a command to stop the shutdown task.

The ability to flexibly use these parameters can help us better solve computer faults. For example, when we encounter a shock wave or shock wave virus, we can use shutdown-a to terminate the current shutdown process, in this way, we can avoid unnecessary losses caused by forced shutdown due to these viruses. Shutdown.exe is not only available in windows xp. You can also use it in Win2000 as follows:

Program ", you can use this program as in Windows XP.

In fact, there are many practical commands in windows xp. The example introduces a small part of shutdown.exe usage. It also has many other practical usage, which is not listed here. Here, I want to say that the command is dead and the thinking is live. Only by using thinking commands can we use them to survive and use them to survive. In this way, we can better use these commands to solve practical problems in application.

 

Related Article

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: info-contact@alibabacloud.com 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.