After the Remote Desktop, there is a small problem that the remote host cannot be switched off from the remote host. Specifically, the remote host cannot be switched off directly (as we usually do ), this location is not displayed when you are remotely [shut down the computer], but [disconnected ].
Generally, I want to enable other software, and then let it shut down automatically after performing an operation. I am not familiar with many applications. It's just like cool dog and thunder...
In fact, there are simpler methods. As we all know about computer science, we didn't need an operating system for a long time before, but used it in DOS. That means you can use the command line to shut down the system. However, over time, people prefer to drag or click to complete the work.
Since the command is too lazy to knock on, a mountain is higher than a mountain. In fact, you can write the command in notepad in advance, and then double-click to execute it. Those. BAT files have this function, that is, batch processing. Bat is the batch processing file,Is a computer applet that can be automatically executed.
The procedure is extremely simple. Open notepad and write the following content:
At 10: 30 shutdown-S-F-T 3
Save as the shutdown. BAT file and double-click it. The result is that the instance will be shut down in 3 seconds .... You can change the time on your own. It is very user-friendly when you want to change the time. Let's write a desktop...
The figure shows that shutdown is not allowed during remote operation. I wrote a small shutdown. BAT file.
PS: Good for fun!