The Big Picture: Opening the Front Door
Everything so far happened without you. Now the PC is ready to meet you. This final stage does four things:
- Shows a sign-in screen and asks who you are.
- Checks your password, PIN or face.
- Builds your personal workspace: your settings, your files, your desktop.
- Starts your programs: the taskbar, and anything set to start with Windows.
In Section 8, smss.exe started winlogon.exe in session 1. That is where we begin.
winlogon.exe ─► LogonUI.exe (screen) ─► lsass.exe (checks) ─► profile loads ─► userinit.exe ─► explorer.exe
9.1 9.2 9.3 / 9.4 9.5 9.6 9.6
9.1 Winlogon Process (winlogon.exe)
What it is: winlogon.exe is the Windows Logon program. It is the manager of sign-in and sign-out for the session. Every user session has its own Winlogon.
Its jobs:
- Watch for the Secure Attention Sequence (SAS). That is Ctrl + Alt + Del. Only Windows itself can see this key combination. A fake sign-in screen written by a malicious program cannot catch it. So when you press Ctrl + Alt + Del, you know you are talking to the real Windows. (This is why some company PCs ask you to press it before sign-in.)
- Start the sign-in screen (
LogonUI.exe) when needed. - Hand your credentials to
lsass.exeto be checked. - Load your profile after a successful sign-in.
- Start your shell: the program that gives you the desktop. By default, it starts
userinit.exe, which finally startsexplorer.exe. - Handle lock, sign out, shut down. When you press
Win + L(lock), Winlogon shows the lock screen again.
Winlogon works on its own private desktop (a separate screen area for windows). Your normal programs run on a different desktop and cannot spy on the sign-in screen.
9.2 Login Prompt Appears
What it is: The sign-in screen is a separate program called LogonUI.exe. Winlogon starts it, and it draws the background picture, the clock, your name and the password box.
LogonUI does not decide anything about passwords. It only collects them. It uses small plug-ins called credential providers: one for password, one for PIN, one for fingerprint or face (Windows Hello), one for a smart card, and so on. Those little plug-ins are what show you the different ways to sign in.
| Credential provider | What it collects |
|---|---|
| Password | Text typed in a box |
| PIN | A short number, tied to this PC (and the TPM chip) |
| Windows Hello face/fingerprint | A scan checked on the device |
| Smart card / security key | A card or a key plugged in |
When you press Enter, LogonUI passes the data to Winlogon, which passes it to the LSASS (next topic).
The sign-in screen is the end of the "boot" visible to most people. Yet a lot is still going on behind it: the Automatic (Delayed Start) services (Section 8.3) and more drivers are still starting. Because of this, a PC can feel "ready" before it really is, and be slow for the first minute.
Try this: Wait at the sign-in screen for 30 seconds before typing. Sometimes the first sign-in is faster, because the PC finished its background start-up work.
9.3 LSASS (Local Security Authority)
What it is: lsass.exe is the Local Security Authority Subsystem Service. It is the security office of Windows. It was started during Section 8.2, and it is the part that really decides whether you may enter.
Its jobs:
- Check credentials (Section 9.4).
- Create the access token for a successful sign-in (explained below).
- Enforce security policy: password rules, lockout after failed tries.
- Write security events (like "an account logged on") to the Security log.
LSASS uses authentication packages, small modules for different methods:
| Package | Used for |
|---|---|
| MSV1_0 | Local accounts and older network sign-in (checks against the local SAM database) |
| Kerberos | Company (domain) sign-in with a central server |
| Other providers | Microsoft accounts and Azure/Entra accounts, which connect to online services |
Because LSASS holds secrets (it checks passwords and keeps sign-in information in memory), it is a top target for attackers. Windows has extra protections for it. You should never be asked to "install a tool to read LSASS". And lsass.exe should always live in C:\Windows\System32, with only one copy running.
9.4 Authentication
What it is: Authentication means proving who you are. After you type your password, this is what happens inside:
- Winlogon gives LSASS your user name and password (or PIN, or scan).
- LSASS never compares plain passwords. It turns your password into a hash (a scrambled, fixed-length fingerprint that cannot be turned back into the password) and compares the hash with the one it has stored.
- Where it compares:
- A local account: it looks in the SAM (the hive from Section 6.3).
- A Microsoft or work account: it may check a cached copy, or ask an online server.
- A company domain account: it asks a domain controller using Kerberos.
- If the check passes, LSASS builds an access token.
The access token is like a badge with your name, your group memberships and your privileges (what you are allowed to do). Every program that you start gets a copy of this token. Whenever a program asks for a file or a setting, Windows reads the badge and decides yes or no. This is how Windows keeps your files private from other users.
| Result | What you see |
|---|---|
| Correct | "Welcome" screen, then the desktop |
| Wrong password | "The password is incorrect" |
| Too many wrong tries | Account locked for a while (if policy says so) |
| Domain server not reachable | May use cached credentials, or say the domain is unavailable |
LSASS records the result in the Security log in Event Viewer: Event ID 4624 for a successful sign-in and 4625 for a failed one. (You may need to run Event Viewer as administrator.)
9.5 User Profile Loading
What it is: Your profile is your personal workspace: your desktop picture, your documents, browser settings and app settings. It is stored in C:\Users\YourName.
After the token is made, the User Profile Service (ProfSvc) loads the profile:
- Finds your profile folder
C:\Users\YourName. If it is your first sign-in, Windows creates it, copying a template from theDefaultuser profile. (This is the "Hi... We're setting things up for you" screen on a new account.) - Loads your registry hive, the file
NTUSER.DAT, into the registry asHKEY_CURRENT_USER(HKCU). Now all your personal settings are available. - Applies Group Policy, if the PC is on a company domain. Group Policy is a set of rules from the administrator, such as a fixed wallpaper or blocked settings.
- Sets your environment: variables like
%USERPROFILE%, drive mappings, printers. - Connects network drives and cloud folders (like OneDrive) as needed.
A big or damaged profile makes sign-in slow or fails it. If Windows says "We can't sign in to your account", the profile may be corrupt.
C:\Users\YourName\
├─ Desktop, Documents, Downloads, ... ← your files
├─ AppData\ ← settings of your programs (hidden folder)
└─ NTUSER.DAT ← your registry hive (becomes HKEY_CURRENT_USER)
Windows tip: You can see your profile folder by typing
%USERPROFILE%into File Explorer's address bar.
9.6 Explorer.exe and Desktop
What it is: explorer.exe is the program that is the Windows desktop. It draws the taskbar, the Start menu, the desktop icons and the File Explorer windows. It is the shell (the program that gives you the main way to use the PC).
How it starts:
- Winlogon starts
userinit.exe, as listed in the registry (the Userinit value). userinit.exedoes some quick set-up work: it runs sign-in scripts if any exist.- It then starts the shell, listed in the registry's Shell value. By default that is
explorer.exe. userinit.exethen ends. That is whyexplorer.exehas no visible "parent" in Task Manager's tree: the parent has already quit.explorer.exedraws the desktop, the taskbar and the notification icons.- A desktop manager (
dwm.exe) is running, composing all windows into the final picture. (Windows draws every window to its own area, and DWM combines them with effects like transparency.)
Test it: In Task Manager, select Windows Explorer → right-click → Restart. The taskbar disappears and comes back. You just restarted the shell without restarting Windows.
At this point you see your desktop. But Windows is not quite done: your startup applications (next topic) are starting.
9.7 Startup Applications
What it is: Startup applications are programs that start by themselves when you sign in: chat apps, cloud storage, update helpers, drivers' tray icons. They add to the time before your PC feels ready. Each one competes for the disk, CPU and memory.
Where do they come from? Windows has several places where a program can ask to be started:
| Place | What it is |
|---|---|
Registry Run keys | HKCU\Software\Microsoft\Windows\CurrentVersion\Run (this user) and HKLM\Software\Microsoft\Windows\CurrentVersion\Run (everyone) |
| Startup folder | Open it with Win + R, then shell:startup. Anything inside starts when you sign in. |
| Task Scheduler | Tasks set to run "At log on" |
| Services | Background helpers that start before you sign in (Section 8) |
Windows intentionally waits a short time (around ten seconds is typical) after the desktop appears before it starts the startup apps. This lets the desktop become responsive first.
How to see and manage them (safe):
- Open Task Manager (
Ctrl + Shift + Esc). - Choose the Startup apps tab (called Startup in older Windows).
- Look at the Status (Enabled or Disabled) and Startup impact (Low, Medium, High). The top-right shows Last BIOS time, the time the firmware took (on UEFI PCs).
- Right-click an item and choose Disable to stop it starting. This does not remove the program. You can turn it on again.
You can also list them in PowerShell:
Get-CimInstance Win32_StartupCommand | Select-Object Name, Command, Location| Do disable | Do not disable |
|---|---|
| Chat apps you rarely use | Your antivirus or security program |
| Game launchers | Your touchpad or audio driver helpers |
| Cloud sync you do not need at start | Anything you do not recognise, until you look it up |
Rule of thumb: If you disable something and a function stops working, turn it back on. Nothing here is permanent.
Summary
| Term | Plain meaning |
|---|---|
winlogon.exe | Manages sign-in, sign-out and starting your shell |
| Secure Attention Sequence | Ctrl + Alt + Del, which only Windows can see |
LogonUI.exe | Draws the sign-in screen |
| Credential provider | Plug-in for one way of signing in (password, PIN, face...) |
lsass.exe | The security office; checks credentials and builds your token |
| Hash | A scrambled fingerprint of a password |
| Access token | Your digital badge with your name, groups and privileges |
| SAM | The local account database |
| Kerberos | Sign-in method for company domains |
| Profile | Your personal workspace in C:\Users\Name |
NTUSER.DAT | Your registry hive; becomes HKEY_CURRENT_USER |
userinit.exe | Starts your shell and then exits |
explorer.exe | The shell: desktop, taskbar, Start menu |
dwm.exe | The Desktop Window Manager that composes the screen |
| Startup apps | Programs that start with your sign-in |