Skip to content

How-ToOS

How to Set Up Automatic Sign-In in Windows 11 (and When You Shouldn't)

Automatic sign-in is handy for a media PC, game-streaming host or home server. We explain how to switch it on with Microsoft's free Sysinternals Autologon tool, why the manual registry method is less safe, how to skip or disable it, when it won't work and the security risks Microsoft warns about.

By , Systems & Technical Editor

5 min read

How to Set Up Automatic Sign-In in Windows 11 (and When You Shouldn't)

A PC that signs itself in is handy when it lives under the TV as a media centre, runs a game-streaming host such as Sunshine, or acts as a home server that needs its apps running again after a restart. Windows has a built-in automatic sign-in feature (Microsoft calls it AutoAdminLogon), and Microsoft's free Sysinternals Autologon tool is the cleanest way to switch it on. This guide explains both methods, the security trade-offs Microsoft itself warns about, and how to switch it off again. It's based on Microsoft's own documentation.

Should you turn on automatic sign-in?

Microsoft is blunt about the risks. Its support article describes automatic sign-in as a convenience that "may be a security risk": if a PC signs in automatically, anyone who can physically get to it can get at everything on it, including any networks it's connected to. Microsoft recommends the setting only where the computer is physically secured and untrusted users can't remotely read the registry.

In practice that means:

  • Reasonable: a living-room media PC, a streaming host or a home server in a locked house, using an account that doesn't hold anything sensitive.

  • Not a good idea: a laptop you carry around, a shared family PC where the account has your email, banking or password manager, or any work PC.

If your real aim is just to sign in faster on your main desktop, Windows Hello face or fingerprint sign-in is the safer option. Our guide to setting up Windows Hello fingerprint and face sign-in covers that, and Windows Hello PIN vs password explains why a PIN is safer than a typed password.

Before you start: check your account has a password

Automatic sign-in works by storing an account's password, so the account needs one. If you've made your Microsoft account passwordless, check Settings > Accounts > Sign-in options > Additional settings. Microsoft explains that turning on "For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device" removes the option to use your password when signing in, leaving only Windows Hello face, fingerprint or PIN. Automatic sign-in may not work while that's switched on, so turn it off on a PC you want to sign in automatically.

A good habit is to create a separate local standard account just for the media PC or server, and set that account to sign in automatically rather than your main administrator account.

Autologon is a small free tool from Microsoft's Sysinternals suite, written by Mark Russinovich. The current version on Microsoft Learn is v3.10. It configures Windows' built-in automatic sign-in for you.

  1. Download Autologon from its page on Microsoft Learn (search for "Sysinternals Autologon") and extract the zip.

  2. Run autologon.exe.

  3. Fill in the Username, Domain and Password fields in the dialog for the account that should sign in.

  4. Click Enable.

  5. Restart. Windows will try to sign in to that account at the console automatically.

Two things to know:

  • Autologon doesn't check your details. Microsoft notes that it doesn't verify the credentials you enter, or whether that account is allowed to sign in to the PC. If you mistype the password, automatic sign-in won't work, so if Windows stops at the sign-in screen after a restart, run Autologon again and re-enter the details carefully.

  • It stores the password more safely than the manual method, but not perfectly. According to Microsoft, the tool keeps the password encrypted in the registry as an LSA secret rather than in plain text. However, Microsoft also warns that a user with administrator rights can easily retrieve and decrypt it. That's another reason to use a dedicated standard account with a password you don't use anywhere else.

You can also script it. Microsoft documents a command-line form that takes the user name, domain and password as arguments: autologon user domain password. Bear in mind a password typed on a command line can end up in scripts or command history, so only do this on a machine you control.

Method 2: The registry (manual, less safe)

Microsoft also documents a manual method that sets values under this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

It involves setting AutoAdminLogon, DefaultUserName and DefaultPassword. We don't recommend it for most people, for two reasons Microsoft gives itself: editing the registry incorrectly can cause serious problems (so back it up first), and with this method the password is stored in the registry in plain text, in a key that the Authenticated Users group can read remotely. Microsoft also notes that if no DefaultPassword value is present, Windows automatically switches AutoAdminLogon back off. Unless you have a specific reason, use Autologon instead.

How to skip automatic sign-in once, or turn it off

  • Skip it once: hold down Shift while Windows starts (or after you sign out). Both Microsoft pages say this bypasses automatic sign-in so you can sign in as a different user.

  • Turn it off for good: run autologon.exe again and click Disable.

When automatic sign-in won't work

Microsoft lists several situations where it fails or is ignored:

  • A logon banner is set by Group Policy or local policy. The registry setting won't work while a logon banner (legal notice) policy applies.

  • Exchange ActiveSync (EAS) password restrictions are in place. Microsoft says this is by design from Windows 8.1 onwards, and the workaround is to remove the EAS policies.

  • Microsoft Entra joined (work or school) PCs may try to sign in before the network is ready and fail, and Microsoft says there's no setting to delay it.

On an ordinary home PC with a local or Microsoft account, none of these normally apply.

Make an always-on PC more useful

Automatic sign-in pairs well with a few other features:

The bottom line

Use Microsoft's free Sysinternals Autologon (v3.10) to switch on automatic sign-in: enter the account details, click Enable and restart, and hold Shift at start-up if you need to skip it. It's best kept to a physically secure media PC, streaming host or home server running a dedicated standard account, because anyone at the PC gets full access and an administrator can recover the stored password. Avoid the manual registry method, which stores the password in plain text.

In this article

Sources

  1. 01Microsoft Learn, Autologon (Sysinternals)
  2. 02Microsoft Learn, Configure Windows to automate logon
  3. 03Microsoft Support, Go passwordless in Windows
  4. 04Microsoft Support, Sign-in options in Windows

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Use rclone to Copy, Sync and Mount Cloud Storage in Windows 11

How-To

How to Use rclone to Copy, Sync and Mount Cloud Storage in Windows 11

rclone is a free command-line tool for copying, syncing and mounting more than 70 cloud storage services. We explain how to install it on Windows 11 with winget, connect OneDrive or Google Drive, copy and sync safely with a dry run, mount a drive letter with WinFsp and encrypt backups.

Marcus Thorne5 min

Best Free SFTP and FTP Clients for Windows in 2026

Best Picks

Best Free SFTP and FTP Clients for Windows in 2026

WinSCP, FileZilla, Cyberduck and Windows' built-in OpenSSH sftp command are the best free ways to move files between your PC and a server, NAS or web host. We compare their protocols, sync and scripting tools, licensing and platforms using each developer's own documentation.

Hannah Vance5 min

How to Use simplewall to Control Which Apps Can Go Online in Windows 11

How-To

How to Use simplewall to Control Which Apps Can Go Online in Windows 11

simplewall is a free, open-source tool that blocks every app from going online until you allow it, using the Windows Filtering Platform rather than Windows Firewall. We explain how to install it, build an allow list, enable filtering safely, fix Windows Update access, create rules and remove it cleanly.

Marcus Thorne5 min