How to Remove a Trojan: Full Guide
In this article
This guide shows you how to remove a Trojan horse virus from your Windows PC, step by step. Trojans are malware that hide inside legitimate-looking files, and once active, they can steal data, install more malware, or give someone remote control of your computer. You'll learn how to disconnect from the internet, run a full antivirus scan, use specialized removal tools, and clean up any leftover damage. The methods below work for most current Windows versions (10 and 11) and require no advanced technical skills.
What You'll Need
- A Windows PC (Windows 10 or 11).
- Another device (phone or another computer) to download tools if your PC is severely infected.
- An external USB drive or cloud storage to back up important files (optional but recommended).
- Your Windows product key or Microsoft account login (in case you need to reinstall Windows).
Step-by-Step
- Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops the Trojan from sending your data or downloading more malware.
- Enter Safe Mode. Restart your PC and, while it's booting, press the power button when you see the Windows logo (or hold Shift and click Restart). Choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 or F4 for Safe Mode. In Safe Mode, only essential programs run, which often prevents the Trojan from loading.
- Open Task Manager and look for suspicious processes. Press Ctrl+Shift+Esc. Look for processes with strange names, high CPU or memory usage, or ones you don't recognize. Right-click and select "Open file location" to see where the file lives. If you're sure it's malicious, right-click and "End task." Do not delete files yet—just note the names and locations.
- Run a full antivirus scan. If you have Windows Defender (built-in), go to Windows Security > Virus & threat protection > Scan options and choose Full scan. If you have a third-party antivirus, use its full scan option. Let it complete—this can take an hour or more. If it finds a Trojan, follow the prompts to quarantine or remove it.
- Use a dedicated Trojan removal tool. Download and run Malwarebytes (free version) or AdwCleaner. These are designed to catch Trojans that regular antivirus might miss. Run a full scan and remove anything found.
- Check startup programs. Press Ctrl+Shift+Esc, go to the Startup tab, and disable anything you don't recognize or that looks suspicious. This prevents the Trojan from launching on boot.
- Check browser extensions and home page. Open your browser (Chrome, Edge, Firefox) and remove any unfamiliar extensions. Reset your home page and search engine to default if they've been changed.
- Change your passwords. After the Trojan is removed, change passwords for your email, social media, and online banking. Do this from a different, clean device if possible, because the Trojan might have logged keystrokes.
- Update your operating system and software. Run Windows Update and install all updates. Also update your browsers and plugins. Trojans often exploit outdated software.
- Backup and restore if needed. If the Trojan persists or you can't remove it, back up your important files to an external drive, then reinstall Windows using the "Reset this PC" feature (Settings > System > Recovery > Reset PC). Choose "Remove everything."
Common Mistakes
- Not disconnecting from the internet. If you stay online, the Trojan can re-infect your system or send your data.
- Running only a quick scan. Quick scans miss many Trojans. Always do a full scan.
- Deleting files manually without knowing what they are. You might delete a system file and break Windows. Only delete files you're certain are malicious, and even then, quarantine first.
- Ignoring Safe Mode. Trojans often hide in normal mode. Safe Mode gives you a better chance of removing them.
- Not changing passwords after removal. Even if the Trojan is gone, your credentials might already be compromised.
- Reusing the same USB drive that was plugged in during infection. It could be infected too.
Tips
- Always download removal tools from the official websites (e.g., Malwarebytes.com).
- Keep your antivirus definitions up to date—most Trojans are stopped by current definitions.
- Use a standard user account for daily tasks, not an administrator account, to limit what malware can do.
- Enable Windows Defender's "Tamper Protection" so malware can't disable it.
- Regularly back up your important files to an external drive or cloud service.
- Be cautious with email attachments and downloads from untrusted sources—that's how most Trojans get in.
Troubleshooting
Antivirus scan won't run or keeps crashing. The Trojan might be blocking it. Try running the scan from Safe Mode, or use a bootable rescue disk (like Windows Defender Offline) that runs before Windows starts.
Trojan keeps coming back after removal. There may be a rootkit or a scheduled task that re-downloads it. Run a rootkit scan (Windows Defender has this option under "Scan options"). Check Task Scheduler for suspicious tasks and disable them.
System is too slow or unstable to work with. If you can't even open Task Manager, use a different computer to download a rescue disk and burn it to a USB, then boot from that USB and scan your hard drive.
You can't access the internet at all after removal. The Trojan might have changed your proxy or DNS settings. Go to Settings > Network & Internet > Proxy and turn off any manual proxy. Also, flush DNS by opening Command Prompt as admin and typing ipconfig /flushdns.
You're not sure if the Trojan is fully gone. Run a second full scan with a different tool (e.g., Malwarebytes after Windows Defender). Also, check for unusual network activity by opening Task Manager > Performance > Resource Monitor and looking for processes with high network usage.
Frequently Asked Questions
Can a Trojan be removed without antivirus software? Yes, but it's much harder. You can manually delete files and registry entries, but you risk missing something. Using a dedicated removal tool is strongly recommended.
Is it safe to use my computer while removing a Trojan? No. Disconnect from the internet and avoid logging into any accounts until you're sure the Trojan is gone.
Will I lose my files if I reset Windows? The "Reset this PC" feature offers a "Keep my files" option, but that might leave remnants of the Trojan. For a clean removal, choose "Remove everything" and back up your files first.
How do I know if I have a Trojan? Signs include slow performance, pop-ups, changed browser settings, new toolbars, and unknown programs starting up. But some Trojans are silent, so regular scans are important.
Can Trojans infect my phone? Yes, but this guide is for PCs. On Android, you can boot into Safe Mode and uninstall suspicious apps. On iPhone, Trojans are rare but possible if you've sideloaded apps.
Should I pay a ransom if the Trojan demands money? No. There's no guarantee you'll get your files back, and it funds criminal activity. Instead, try to restore from backup or use a decryption tool if available.