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.
Method 1: Sysinternals Autologon (recommended)
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.
Download Autologon from its page on Microsoft Learn (search for "Sysinternals Autologon") and extract the zip.
Run autologon.exe.
Fill in the Username, Domain and Password fields in the dialog for the account that should sign in.
Click Enable.
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: