To remove a trojan virus, disconnect the PC from the internet, run a full scan and a Microsoft Defender Offline scan, quarantine everything detected, then hunt down the ways it restarts itself: startup apps, scheduled tasks and unfamiliar programs. Because many trojans steal passwords or open a back door, you also need to change your passwords from a clean device once the PC is clean.
A trojan is malware disguised as something you wanted: a free game, a "cracked" program, a fake invoice or a bogus update. It does not spread by itself like a worm. Instead, it relies on you running it, and then quietly does its real job in the background.
What trojans usually do
Knowing the type helps you decide how urgent the clean-up is and what to do afterwards.
| Trojan type | What it does | Extra step after removal |
|---|---|---|
| Infostealer | Copies saved browser passwords, cookies and crypto wallets | Change all passwords, sign out of all sessions |
| Remote-access trojan (RAT) / backdoor | Lets an attacker control the PC remotely | Change passwords, check for new user accounts |
| Downloader / dropper | Fetches and installs more malware | Scan again: there may be several infections |
| Banking trojan | Targets online banking logins | Contact your bank, watch statements |
Infostealers are a particular concern. The Flashpoint 2025 Global Threat Intelligence Report says infostealer malware infected 23 million devices in 2024 and stole 2.1 billion credentials. Our guide to infostealer malware explains what they take.
Step 1: Cut off the attacker
- Turn off Wi-Fi or unplug the network cable. A remote-access trojan cannot be controlled, and a stealer cannot send data, without a connection.
- Do not sign in to any accounts on the infected PC until you have finished.
- If you think a remote-access tool is in use (the mouse moves by itself, windows open on their own), shut down immediately and continue when you are ready to work offline.
Step 2: Scan with Windows Security
- Open Settings > Privacy & security > Windows Security > Virus & threat protection. On Windows 10 the path starts Settings > Update & Security.
- Click Protection updates > Check for updates (reconnect briefly if necessary).
- Go to Scan options, select Full scan and click Scan now.
- Remove or quarantine every detection, then repeat with Microsoft Defender Offline scan, which restarts the PC and scans before Windows loads. This catches trojans that hide while Windows is running.
Step 3: Find how the trojan restarts itself
Trojans are designed to survive a reboot. Even after the main file is removed, a leftover launcher can bring it back. Check each of these:
- Startup apps: Task Manager (
Ctrl + Shift + Esc) > Startup apps. Right-click an unknown entry and choose Open file location to see where it lives. Files running fromAppDataorTempfolders with random names deserve suspicion. See unknown programs running at startup for help judging entries. - Startup folder: press
Windows + R, typeshell:startupand press Enter. Delete shortcuts you do not recognise. - Scheduled tasks: search the Start menu for Task Scheduler, open Task Scheduler Library and look for tasks with odd names that run programs from AppData or Temp.
- Installed apps: Settings > Apps > Installed apps. Uninstall the program that carried the trojan, such as the "free" tool you downloaded just before problems began.
- User accounts: Settings > Accounts > Other users. A new account you did not create may have been added by an attacker.
Step 4: Run a thorough trojan scan
Trojans change constantly to avoid detection, so definitions that are only a few days old can miss new variants. Update Threat Eraser's definitions, then run a Full Scan of every fixed drive, including inside ZIP archives, to find any trojan files and leftover launchers. Our guide to choosing a malware scanner explains what to look for.
Step 5: Lock down your accounts
Removing the trojan does not undo what it already took. From a different, clean device:
- Change your email password first, then banking, shopping, social media and work accounts.
- Use the "sign out of all devices" option where available. Stolen session cookies can let criminals stay logged in even after a password change.
- Turn on two-step verification.
- Tell your bank if a banking trojan was involved, and watch your statements.
When to reset Windows instead
If a remote-access trojan has been active for a long time, if detections keep returning, or if the PC handles business data, the safest choice is to back up your documents (scan the backup too) and use Settings > System > Recovery > Reset this PC. Do not restore programs from the same unknown sources.
How Threat Eraser helps remove trojans
Threat Eraser is a virus, malware and trojan scanner and remover that labels each detection by category, including trojan, backdoor/remote-access tool and spyware/infostealer, with a Critical, High, Medium or Low severity so you know what you are dealing with. It matches files by MD5, SHA-1 and SHA-256 hash and by byte-pattern signatures, runs malware detection rules that recognise malware families by their structure, looks inside ZIP archives, and flags disguised names such as setup.pdf.exe. Its Quick Scan focuses on AppData, temporary and Startup folders, which are exactly where trojans like to sit.
Definitions update automatically every time it starts. Threat Eraser quarantines detected files so they cannot run, erases them permanently or restores anything you need back to its original place, and turns on Real-Time Watch so new downloads are checked a moment after they arrive. Files are scanned on your PC and never uploaded.
Learn more about the Threat Eraser trojan remover.
Frequently asked questions
Is a trojan the same as a virus?
Not exactly. A virus spreads by copying itself, while a trojan disguises itself as wanted software and relies on you running it.
Can a trojan steal my passwords?
Yes, many trojans are infostealers that copy saved browser passwords and login cookies. Change your passwords from a clean device after removal.
Why does the trojan come back after I delete it?
A leftover launcher, such as a startup entry, scheduled task or downloader, is usually reinstalling it. Check Task Manager's Startup apps and Task Scheduler.
