Joke Collection Website - Public benefit messages - How to automatically close the chat window on the computer after sending a message? How to set it?
How to automatically close the chat window on the computer after sending a message? How to set it?
The following is an explanation.
Open drive C under Windows XP, and there is a shutdown program in system32 under Windows, which can be copied to other systems.
Start-> Run-> (shut down after entering the command)
grammar
Shutdown [/i |/l |/s |/r |/a |/p |/h |/e] [/f] [/m//computer name] [/txxx] [/d [p:] xx: YY/c "comment"]
parameter
/i
Displays the Remote Shutdown dialog box. The /i option must be the first parameter typed, and all subsequent parameters will be ignored.
/l
Log off the current user immediately, without timeout. You cannot use /l with /m //ComputerName or/t.
/s
Turn off the computer.
/r
Restart the computer after shutdown.
/a
Cancel the shutdown operation (valid only within the timeout period). The a parameter can only be used with /m //ComputerName.
/p
Only turn off the local computer (not the remote computer) without timeout or warning. /p can only be used with/d. If your computer does not support the shutdown function, using /p will shut down the system, but it will not cut off your computer.
/h
Put the local computer into hibernation (if hibernation is enabled). Only h can be used with/f.
/e
Allows you to record the reason why the target computer unexpectedly shut down.
/f
Forcibly shut down the running application without warning the user in advance.
warn
6? 1 Using the /f option may result in the loss of unsaved data.
6? 1
/m// computer name
Specify the target computer. Cannot be used with the /l option.
/t XXX
Setting the timeout or delay before restarting or shutting down to XXX seconds will cause a warning message to be displayed on the local console. You can specify a range of 0-600 seconds. If /t is omitted, the default timeout is 30 seconds.
/d [p:]XX:YY
List the reasons for system restart, shutdown or power failure. The following table describes the parameter values.
Value description
p:
Indicates that the restart or shutdown is planned. If the p: option is not used, the shutdown event tracker will assume that there is no planned restart or shutdown.
xx
Specify the primary reason code (0-255).
YY
Specify the secondary reason code (0-65535).
/c "comments"
Enables you to make detailed comments on the closing reason. You must first provide a reason using the /d option. Comments must be enclosed in quotation marks. You can use up to 5 1 1 characters.
/?
Displays help at the command prompt, including a list of primary and secondary causes defined on the local computer. Just enter shutdown without any parameters to display help.
To annotate ...
6? 1 Users must be granted permission to shutdown the system before they can use the shutdown command to shut down computers managed locally or remotely. For more information, see "Overview of Access Control" and "Permissions" in related topics.
6? 1 The user must be a member of the Administrators group to comment on the unexpected shutdown of a locally or remotely managed computer. If the target computer has joined the domain, members of the domain administrators group can perform this procedure. For more information, see Default Local Groups and Default Groups.
6? 1 If you want to shutdown more than one computer at a time, you can use a script to call shutdown for each computer, or use shutdown /i to display a remote shutdown dialog box.
6? 1 Once primary and secondary reason codes are specified, you must first define them for each computer that plans to use a specific reason. If no reason code is defined on the target computer, closing the event tracker will not record the correct reason text.
6? 1 Remember to use the p: parameter to indicate that the shutdown is planned. Omit p: it means unplanned closing. If you type p: followed by the reason code for the unplanned shutdown, the command will not perform the shutdown. Conversely, if you omit p: and type the reason code for the planned shutdown, the command will not perform the shutdown.
example
To force the application to close and reopen the local computer after a one-minute delay, the reason is "Application: Maintenance (Planned)" and the comment is "Reconfigure myapp.exe", type:
Shutdown /r /t 60 /c "reconfigure myapp.exe" /f /d p:4: 1
To restart the remote computer //ServerName with the same parameters, type:
Shutdown /r /m //servername /t 60 /c "reconfigure myapp.exe" /f /d p:4: 1
Format legend
Format meaning
Italic movable type
Information that users must provide.
boldface
The element that the user must type accurately.
Omit the symbol (...)
Parameters that can be repeated multiple times on the command line.
Between square brackets ([])
Optional item
Between braces ({}); Separate options with a pipe symbol (|). For example: {Even | Odd}
An option group from which users can only select one option.
Courier font
Code or program output
Application:
(1) If you want to turn off your phone automatically after 1 hour, for example, you are downloading a software or a movie and MM asks you out for romance, what would you do? Stop downloading? What a pity! Continue? How to turn off the computer after downloading? Don't worry! You can use this command to solve:
Shutdown–S–T3600 (the system shuts down the computer after 3600 seconds, and the time is self-determined).
You can be romantic without worrying about the computer being turned on for a long time.
(2) The countdown automatic shutdown is caused by an RPC vulnerability. Use this command to cancel countdown automatic shutdown:
Shut down -a (method: "Start"-> "run"->; "power off-a" -a”-& gt;; "OK")
Previous network viruses were very rampant, such as shock wave and shock wave, which were all designed for RPC (Remote Procedure Call) vulnerability in WindowsXP, causing the system to shut down automatically after the countdown. Many people must have a headache for this, but you can solve it like this.
(3) Use shutdown command to realize unified network shutdown.
Many teachers in the author's unit often leave their computers off after work, and the leaders demand to solve this problem after finding out. I think going to the office will take a long time, so I wonder if all the machines can be turned off by computer. Because all office computers have Windows XP installed, I thought of using the remote shutdown command. The specific method is as follows:
Step 1 Click Start → Run, enter Gpedit.msc in the dialog box, and click to open the Group Policy Editor.
Step 2 Open "Computer Configuration →Windows Settings → Security Settings → Local Policy → User Permission Assignment" on the left side of the Group Policy Editor window, and select "Forced Shutdown from Remote System" on the right side of the window. In the pop-up dialog box, it shows that only members of the "Administrator" group have the right to remotely shut down at present; Click; Button, then enter "He Yongsheng" (administrator account) in the pop-up dialog box, and then click.
Step 3 At this point, a user named "He Yongsheng" is added to the "Forced Shutdown from Remote System" attribute. Click Last to close the Group Policy Editor window.
After completing the above operations on the computers in each office, we grant the "He Yongsheng" users of each computer the right to remotely shut down. When I get off work, I just need to do the following things on my machine:
Step 4: Click Start → Run, enter Shutdown -I in the dialog box, and the remote shutdown dialog box will appear (Figure 1).
Figure 1 Remote Shutdown Control Window
(4) Use ShutDown.exe of XP to restart the server regularly.
The shutdown of Windows XP is controlled by the Shutdown.exe program, which is located in the WindowsSystem32 folder. If you want Windows 2000 to achieve the same effect, you can copy Shutdown.exe to the system directory System32.
First of all, of course, the motherboard must support the software shutdown function, otherwise you have to press the power switch yourself to shut down. Now motherboards generally support software shutdown. Operating Steps: Click "Task Scheduling" in Start/Programs/Accessories/System Tools to pop up the task scheduling window, then double-click "Add Task Scheduling" to run the Task Scheduling Wizard, press "Browse" to find the Rundll32.exe file in the WINDOWS directory, click the "Open" button, and enter the task name (such as "Shut Down at Regular Time") in the dialog box that appears. Then press "Next" to select the scheduled shutdown time (you can try it later than the time displayed on the machine now 1 minute). Next, select "Click Finish to open the advanced properties of this task", click Finish, and finally right-click "Scheduled Shutdown" to open the properties, and enter "C: winntsystem32shutdown.exe-r-T655" in the run bar.
Shut down under linux
Linux command: Linux can be safely shut down or restarted. Before the system shuts down, it will send a warning message to all logged-in users on the system.
Format: Shutdown [Options] [Time] [Warning Message]
Meaning of the options in the command:
-k: It didn't really shut down, just sent a warning message to all users.
-r: restart immediately after shutdown.
-h: Don't restart after shutdown.
-f fast shutdown, skip fsck when restarting.
-n: Quick shutdown, no initialization program.
-c: Cancel the shutdown that has already been run.
- Previous article:Guo Moruo's information
- Next article:Grateful for the teacher's words
- Related articles
- Is Meizu s6 easy to use?
- Xiaomi 10 SMS reminder flashes.
- Carry out legal education and publicity for minors
- What should I do if my mobile phone can't send a short message and it is said that the network access point is abnormal?
- World of Warcraft WOW, how to remove the glowing and spinning thing on the mini map of the Magic Box?
- Save it. What if it doesn't pass?
- How to write a novel in Jinjiang?
- What happened when I suddenly received the transfer from Consumer Finance Co., Ltd.?
- How to resume receiving verification code
- "Country Love 16" is about to start. Will Xie Dajiao's departure have a great impact?