Simple setup, experience a timed shutdown and automatic login

  
Today I want to share with you the windows timed shutdown and automatic login settings, those computer novices do not miss it. The first thing to say is that if the computer is used by yourself , then there is no need to enter the username and password when logging in, but should take the automatic login method. The Registry Editor makes it easy to automate logins to Windows systems. Secondly, understand the shutdown principle of the Windows system, which is controlled by the Shutdown.exe program. It is located in the Windows\\System32 folder. By combining this program with the batch processing, you can DIY an automatic shutdown program.
Add Timed Tasks
If you want to go out, but the computer is working again, then you need to use automatic shutdown. Most of the methods to achieve automatic shutdown are to use some third-party software, which is not only troublesome, but also uses a software to achieve this small function, which is obviously a big problem! In fact, Windows XP (Windows 2000 can also) has a regular shutdown The function, below we will take a look at how to achieve automatic shutdown of Windows XP.
Windows XP shutdown is controlled by the Shutdown.exe program, located in the Windows\\System32 folder. If you want Windows 2000 to achieve the same effect, you can copy Shutdown.exe to the system directory.
For example, if your computer needs to be shut down at 22:00, you can select “Start →Run”, enter “at 22:00 Shutdown -s”, so that at 22 o'clock the computer will appear "System shutdown & rdquo; dialog box, the default has a 30 second countdown and prompts you to save the work. If you want to shut down in a countdown mode, you can enter “Shutdown.exe -s -t 3600”, which means that it will automatically shut down after 60 minutes, "3600” represents 60 minutes.
After setting the automatic shutdown, if you want to cancel, you can enter “shutdown -a” in the running. In addition, enter "ldtdown -i" to open the Set Auto Shutdown dialog box to set the Auto Shutdown.
Shutdown.exe parameters, each have a specific purpose, each will produce different effects, such as "-s", it means to shut down the local computer, "-a", said cancel the shutdown operation, the following column More parameters are available, you can use them in Shutdown.exe as needed.
-f: Force the application to close
-m\\\\ computer name: control remote computer
-i: display graphical user interface, but must be the first option of Shutdown
-l: logout Current user
-r: Shut down and restart
-t Time: Set shutdown countdown
-c "Message content": Enter the message content in the shutdown dialog box (cannot exceed 127 characters)
To shut down or restart periodically, you can make it into a BAT file and then execute it with the scheduled task. Such as:
Timed Shutdown
at 10:00 shutdown -f
Save as "Shutdown.bat" Create a new scheduled task, the program points to this BAT file, the next step, complete, it will be OK.
Automatic Login
Step 1: Run the Registry Editor, expand the [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon] branch, then double-click "DefaultUserName" in the right window, then enter you Login user name. If there is no default user name, you can add this item by selecting “edit →new →string value(s)→DefaultUserName” in the menu bar of the Registry Editor. Note that you should distinguish between uppercase and lowercase letters.
Step 2: Also under the branch, double-click “DefaultPassword” in the right window of the Registry Editor, and enter your password in the blank field. If you do not find the “DefaultPassword” item, you can create the string value by following the steps above.
Step 3: Next, double-click “AutoAdminLogon” in the right window to set the value to “1”. If you do not find “AutoAdminLogon”, you can follow the steps above to create a new one.
No matter what the situation is based on, most users need to set a timed shutdown and automatic login. Usually, everyone chooses to download some free third-party software on the Internet to meet this demand. After learning this tutorial, it will not It needs to rely on third-party software, which is not very safe and can be easily set up.

Copyright © Windows knowledge All Rights Reserved