Intune automatic sign in?

Max 26 Reputation points
2022-07-22T04:28:15.087+00:00

Hi,
I am building a Intune deployment that requires the PC's to auto sign in with the same username for each deployment. This can be either a local account or a Azure account, doesn't really matter.

How can I automate this process into the intune build?

I tried the guest account in shared pc but could not get it to auto login as it changes guest account name after each reboot.

Kind regards,
Max

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,470 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Crystal-MSFT 51,221 Reputation points Microsoft Vendor
    2022-07-22T06:20:30.897+00:00

    @Max , Research and find the following methods for your reference:

    1. Windows Kiosk mode has the setting to configure Auto logon under "User logon type". You can configure this to make the auto logon work. Here is a link with more details for the reference:
      https://learn.microsoft.com/en-us/mem/intune/configuration/kiosk-settings-windows
    2. I find on windows side, we can enable Automatically Sign in Account at Startup. You can choose one device to test if change the registry key can make it work. If it works, we can try to deploy the registry key via script in Intune.
      https://www.elevenforum.com/t/enable-or-disable-automatically-sign-in-account-at-startup-in-windows-11.835/
      Note: Non-Microsoft link, just for the reference.

    You can try either of the above method. If there's any question, feel free to let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

  2. Max 26 Reputation points
    2022-07-24T22:42:10.473+00:00

    Option 1 will not work as I do not want the devices in the Kiosk mode. I will try option 2 and report back.

    2 people found this answer helpful.

  3. Max 26 Reputation points
    2022-07-25T06:04:23.827+00:00

    Ok so I made the following script.

    1. Tested in standard Windows 10 environment - Works fine and does what's advertised.
    2. Packaged it into a win32.intune and deployed it as Required
    3. New Autopiloted machine - Fails during build process

      Description - This PS script will first create a local user and then set the PC to auto logon using that account

      Configuration

      $username = "XXUSERNAME" # Username of local account
      $password = ConvertTo-SecureString "XXXXXXXXXXXXX" -AsPlainText -Force # Password of local account
      $RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

      Creating the user

      New-LocalUser -Name "$username" -Password $password -FullName "$username" -Description "XXX"

      Update registry

      Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String
      Set-ItemProperty $RegPath "DefaultUsername" -Value "$username" -type String
      Set-ItemProperty $RegPath "DefaultPassword" -Value "$password" -type String

  4. Max 26 Reputation points
    2022-08-03T04:46:08.85+00:00

    No it needs to autologin sorry


  5. Alex You 25 Reputation points
    2023-12-14T09:55:57.1033333+00:00

    Have you able to find a way to do it during Autopilot, if I run a script, it only works when a user login. Thank you.I tried to deploy as an application, failed at Autopilot


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.