Defining Windows Server Automatic Login and Startup Programs
On corporate servers or PVP game servers, when the machine is rebooted after an update or hardware maintenance, Windows waits on the "Lock Screen" until you connect to the server via Remote Desktop (RDP). This means that your game servers, websites and database will remain down until you connect. Follow these steps to have the server log in and start programs on its own at startup.
Step 1: Secure Autologin with Sysinternals Autologon
Instead of saving the password from the Windows registry without encryption, it is safest to use Autologon, Microsoft's official tool:
- Official from Microsoft website autologon Download the widget and run it on the server.
- On the incoming screen
Username(Usually Administrator),Domain(Default may remain) and serverPasswordBy entering (your password) enable Press the button. - Now, when the server reboots physically or virtually, it will not be stuck on the lock screen, it will automatically load the Administrator desktop in the background.
Step 2: Automatically Launch Game/Application Files When Server Starts
As soon as the desktop starts automatically, your game panels or sql startup bat files should also be activated:
- from your keyboard
Windows Logosu + ROpen the Run window by pressing the keys. - into the box
shell:startupType and press Enter. An empty Windows folder will open (Startup Folder). - Any programs, .exe files or startup scripts (.bat/.sh) that you want to run automatically when the server boots up shortcuts Copy and paste into this folder.
Now, even if your server is rebooted at night while you are asleep, the system will boot on its own, log in and start the game services in the startup folder, respectively.
This article is specially prepared for PvPServer.