What Is lsm.exe? Real Definition & Safety
In this article
lsm.exe is a legitimate Windows system process named Local Session Manager. It is a core operating system component that manages user session states, including logon, logoff, and Terminal Services sessions. The file is located in C:\Windows\System32\lsm.exe and is signed by Microsoft. In normal conditions, it is safe and should not be disabled. However, because malware sometimes uses similar names, you should verify the file's location and signature if you suspect a problem.
What Does lsm.exe Do?
The Local Session Manager (LSM) service is responsible for tracking and managing the state of user sessions on a Windows computer. It works with other Windows services like the Session Manager Subsystem (smss.exe) and the Win32 subsystem to handle:
- Logon and logoff operations for local and remote users
- Session state transitions (e.g., from logged-on to disconnected)
- Terminal Services and Remote Desktop session management
- Fast User Switching between multiple user accounts
You can see the service in the Services console (services.msc) as Local Session Manager with the service name LSM. It runs under the LocalSystem account and starts automatically at boot. If you open Task Manager and go to the Details tab, you will see lsm.exe running with a low CPU and memory footprint.
Is lsm.exe Safe or a Virus?
In its default state, lsm.exe is safe. The genuine file is a Microsoft-signed system binary. However, malware can disguise itself by using the same filename. To determine if the process on your system is legitimate, check the following:
- File location: Right-click the process in Task Manager and select “Open file location.” The genuine file is always in
C:\Windows\System32. If it appears inC:\Users\[username]\AppData,Temp, or any other folder, it is likely malicious. - Digital signature: Right-click the file in Explorer, go to Properties > Digital Signatures, and confirm the signer is Microsoft Windows.
- CPU/memory usage: The real lsm.exe typically uses very little CPU (near 0%) and under 20 MB of RAM. If it shows high usage, investigate further.
- Startup location: Check Task Manager > Startup. The genuine LSM service starts via the Windows Service Control Manager, not through the Startup tab. If you see an entry for lsm.exe in Startup, it is suspicious.
If you find a file named lsm.exe outside System32, run a full antivirus scan with Microsoft Defender or your preferred security software. Do not delete the genuine file—doing so can break Windows logon and session management.
Why Is lsm.exe Running and Using CPU?
It is normal for lsm.exe to run at all times; it is a core service. However, if you notice high CPU usage (e.g., 50% or more), it is not typical. Possible causes include:
- A corrupted system file—run
sfc /scannowin an elevated Command Prompt to repair. - Malware masquerading as lsm.exe—verify the file path and signature as described above.
- An issue with the LSM service itself—try restarting the service (but note that doing so will sign off all users, so do it only when you can log back in).
If the process is genuine but still consuming high CPU, check for pending Windows updates and install them. Also run a disk check (chkdsk /f) to rule out file system errors.
Can I Disable or Delete lsm.exe?
No. You should never disable or delete lsm.exe because it is a required Windows component. Disabling the Local Session Manager service will prevent users from logging on, cause Fast User Switching to fail, and break Remote Desktop functionality. The service is protected by Windows and cannot be stopped from the Services console without significant system instability. If you are trying to improve performance, look elsewhere—lsm.exe is not the cause of slowdowns.
How to Remove a Fake lsm.exe
If you confirmed that the lsm.exe on your system is not in C:\Windows\System32, follow these steps to remove the malicious file:
- Boot into Safe Mode (Settings > System > Recovery > Advanced startup, then choose Safe Mode).
- Open Task Manager and end the suspicious process if it is running.
- Delete the file from its location (e.g.,
C:\Users\[username]\AppData\Roaming). - Run a full offline scan with Microsoft Defender (Windows Security > Virus & threat protection > Scan options > Microsoft Defender Offline scan).
- Check for any startup entries referencing the file and disable them in Task Manager > Startup.
- Restart normally and verify the file is gone.
If the malware persists, consider using a dedicated removal tool from a reputable vendor or performing a Windows Reset (which removes all installed apps and may delete personal files—back up first).
Common Misconceptions About lsm.exe
“lsm.exe is a virus.” This is false for the genuine file. The misconception arises because malware often uses legitimate-looking names. Always check the file path and signature before assuming it’s malicious.
“lsm.exe is related to LSM (Linux Security Module).” No, on Windows it stands for Local Session Manager. The name collision with Linux’s Loadable Security Module is coincidental.
“Disabling lsm.exe improves gaming performance.” Disabling it will not improve performance; it will break session management and may cause system instability. It is a low-resource process.
Frequently Asked Questions
Is lsm.exe a virus?
No, the genuine lsm.exe is a Microsoft-signed system file. If it is located in C:\Windows\System32, it is safe. If it appears elsewhere, it could be malware and should be scanned.
Why does lsm.exe show in Task Manager?
It is a normal Windows service that runs continuously to manage user sessions. It appears in the Details tab of Task Manager. You can see its CPU and memory usage there.
Can I end lsm.exe from Task Manager?
You can end the process, but Windows will immediately restart it because it is a protected service. Ending it may cause a brief sign-out or system delay. It is not recommended.
How do I know if lsm.exe is real?
Right-click the process in Task Manager and select “Open file location.” The path must be C:\Windows\System32\lsm.exe. Also check the digital signature in the file’s Properties to confirm it is from Microsoft.
What should I do if lsm.exe is using high CPU?
First, verify the file location and signature. If it is genuine, run sfc /scannow and check for Windows updates. If it is fake, follow the removal steps above.