How to Auto Login to Azure Windows VM After Reboot for Startup Apps

Michael J 20 Reputation points
2023-02-02T05:31:46.8733333+00:00

Hi,

Is there anyway to get an Azure Windows Server to Auto Login after the machine is rebooted from auto updates?

Problem Overview

We have a Virtual Machine running Windows Server 2019.

There are a number of applications in the Startup Apps that need to run to support other services on the machine.

Such as SSH Tunnels and things like this.

When the automatic monthly Windows updates are applied to the server and the machine gets rebooted, the Startup Apps don't start.

I have to Login to the machine via Remote Desktop before the Apps get triggered to start.

This means I have to constantly monitor the machine to see when the Automatic Update and Reboot for the month has occurred.

Is there anything I can configure so that the machine will automatically login after a reboot?

Or some way for the Startup Apps to be trigged without logging in?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,125 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,124 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2023-02-02T12:52:27.0833333+00:00

    You can use the regedits here.

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon#use-registry-editor-to-turn-on-automatic-logon

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 43,931 Reputation points
    2023-02-02T16:53:43.7+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to Auto start Apps.

    1. You can create Task scheduler to check and start your Apps if they are stopped.
    2. Also you can put your Apps in Startup folder of Windows so they will be auto started once you logged in,
    3. Also please check if there are any Options to configure your Apps as Windows services so they will be auto started when VM booted.

    --If the reply is helpful, please Upvote and Accept as answer--