To automatically log in to the system when Windows Server restarts, clear the option to enter a password and username. Press the key combination "Win + R". Enter the command control userpasswords2. In the window that opens, uncheck the Require username and password entry box and click Apply. To automatically launch programs after a system restart, add them to the scheduler and specify the account under which they should be launched.