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 when logging in. Username and password, 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 a timed task

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 choose “Start →Run”, enter “at 22:00 Shutdown -s”, so that at 22 o'clock the computer will appear &ldquo The 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 run. In addition, enter "ldtdown -i" to open the Set Auto Shutdown dialog box to set the Auto Shutdown.

The parameters of Shutdown.exe, each with a specific purpose, each will produce different effects, such as “-s” means to shut down the local computer, “-a” means cancel the shutdown operation More parameters are listed below, you can use them as needed in Shutdown.exe.

-f: Force the application to close

-m\\\\computer name: control remote computer

-i: display graphical user interface, but must be the first of Shutdown Options

-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 (cannot exceed 127 characters)

To stop 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 Step, finish, it's OK.

Auto Login

Step 1: Run the Registry Editor, expand the [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon] branch, and then double-click on the right window. DefaultUserName”, then enter your login username. 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.

Regardless of the situation, users mostly 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, Then you don't need to rely on third-party software, it's not safe, and it's easy to set it up.

Copyright © Windows knowledge All Rights Reserved