en
Back to Digital security
Monitor with a green protection shield and a computer clean badge
Digital security

Computer Virus: How to Remove Threats in 10 Steps

Remove viruses and malicious programs with the official guides from Microsoft, Apple and CISA: disconnect, scan, remove the threats and protect your accounts and files.

⚪ Intermediate Estimated time 15 minutes Step by step 10 fixes

By

Quick answer: what to do now

  1. If you notice something serious, like locked files, disconnect the computer from the internet.
  2. Update the antivirus and run a full scan in Windows Security.
  3. If the threat comes back, use the Microsoft Defender offline scan.
  4. Uninstall programs and extensions you don't recognize.
  5. On another device, change the passwords of your important accounts.

What's your case?

Computer virus: 10 fixes to remove it

  1. Fake attachments and linksEmails and messages that imitate companies.Protect your accounts →
  2. Programs from unknown sourcesPirated downloads or shady websites.Remove what you don't know →
  3. Browser extensionsThey change the home page and show ads.Review your extensions →
  4. Outdated systemOld flaws make infection easier.Update everything →
  5. Antivirus off or outdatedWithout updates, it misses new threats.Run a scan →
  6. No backupRansomware can lock your files.Protect your folders →

1Disconnect from the internet if it's serious

Use when: files got locked, payment demands appear or someone is controlling the computer.

CISA, the US cybersecurity agency, says to disconnect the computer from the internet to limit the damage. At work, tell your IT team right away.

  • Turn off Wi-Fi or unplug the network cable.
  • Unplug USB drives and external hard drives so they don't get infected.

Reconnect only to update the antivirus in step 2 and download what you need.

2Update the antivirus and Windows

Windows

Windows Security › Virus & threat protection › Protection updates

Click Check for updates. Then install anything waiting in Windows Update.

Microsoft recommends updating before scanning, so Microsoft Defender recognizes the newest threats.

3Run a full scan

  1. Open Windows Security (search for it in the Start menu).
  2. Click Virus & threat protection.
  3. Under Current threats, click Scan options.
  4. Choose Full scan and click Scan now.
Windows Security Scan options with Full scan selected and the Microsoft Defender offline scan highlighted, and the Scan now button
Full scan in Windows Security

Close other programs during the scan. Microsoft suggests restarting the PC and scanning before opening other apps.

4Use the offline scan if the virus comes back

Use when: the same threat returns after being removed.

The offline scan restarts the computer and looks for threats outside Windows, where some of them hide.

  1. Save anything you have open.
  2. In Scan options, choose Microsoft Defender Antivirus (offline scan) and click Scan now.
  3. The PC restarts, runs the scan and restarts again.

The results show up afterward in Protection history.

5Check the history and remove threats

  1. In Windows Security, open Protection history.
  2. Click the threat to see its severity and the affected file.
  3. Under Actions, choose Remove.
Windows Security Protection history with a severe quarantined threat and the Actions menu open with Remove highlighted
Remove the threat from protection history

Don't use Restore or Allow on device on a file you're not sure is safe.

6Uninstall unknown programs and extensions

Use when: ads, toolbars or a home page you didn't choose appear.

  • Programs: in Settings › Apps › Installed apps, sort by date and uninstall what you didn't install.
  • Extensions: in your browser, open the extensions page and remove the ones you don't recognize.

For browser pop-ups and ads, see the remove browser pop-ups guide.

7On a Mac, install apps only from trusted sources

Mac

System Settings › Privacy & Security › Security

Under Allow applications from, choose App Store or App Store and Known Developers.

Mac System Settings under Privacy & Security with Allow applications from and the App Store and Known Developers option highlighted
Mac: trusted sources only

Apple explains that macOS checks an app before it first opens and warns you when opening downloaded scripts and files that may be harmful. Delete apps you don't recognize by dragging them from the Applications folder to the Trash.

8Change your passwords on another device

CISA recommends changing passwords after an infection, including those saved in the browser.

  • Use another, clean device, such as your phone, to change the passwords for your email, bank and social media.
  • Turn on two-factor authentication for those accounts.

If you see strange sign-ins, follow the account hacked guide.

9Turn on ransomware protection

Controlled folder access stops unknown programs from changing your documents, photos and other protected folders.

Windows

Virus & threat protection › Manage ransomware protection

Turn on Controlled folder access. If a trusted program gets blocked, allow it under Allow an app through Controlled folder access.

Also keep a backup off the computer, as CISA recommends: an unplugged external drive or the cloud.

10Reset or reinstall the system

Use when: the virus caused damage that scanning can't undo.

  1. Back up only your files (documents and photos), not programs.
  2. Reset or reinstall Windows from the recovery options. CISA notes that reinstalling the system usually erases files and programs.
  3. Restore your files from a backup made before the infection, such as OneDrive version history.
  4. Update the system and all programs before using the computer again.

If it's a work computer, don't do this yourself: contact your IT team.

Sign and what to do

Signs of a computer virus, likely cause and what to do
SignLikely causeWhat to do
Antivirus alertThreat detectedCheck the history (step 5)
Pop-ups and adsAdware or extensionRemove programs (step 6)
Slow for no reasonHidden program runningFull scan (step 3)
Virus keeps coming backThreat hidden in the systemOffline scan (step 4)
Locked filesRansomwareDisconnect (step 1) and restore (step 10)
Accounts used by strangersStolen passwordsChange passwords (step 8)
Strange app on a MacUnknown sourceMac steps (step 7)

Frequently asked questions

How do I know if my computer has a virus?

There's no single sign. Antivirus alerts, slowness for no reason, pop-ups, programs you didn't install and accounts used by strangers are the most common.

Does Windows already have an antivirus?

Yes. Microsoft Defender comes with Windows and lives in Windows Security. Keep it updated and run a full scan when you suspect something.

What's the difference between a quick scan and a full scan?

A quick scan checks the folders where threats are usually found. A full scan checks every file and program and can take over an hour.

What is the Microsoft Defender offline scan?

It's a scan that restarts the PC and looks for threats outside Windows. Use it when the virus keeps coming back.

What does "threat quarantined" mean?

That Microsoft Defender isolated the file. Open Protection history and choose Remove under Actions.

A website said my computer is infected. Is it true?

Website warnings and pop-ups asking you to download a "cleaner" are usually scams. Close the page and use only the antivirus already on your computer.

Can a Mac get a virus?

Yes, mostly through apps from unknown sources. In Privacy & Security, allow only the App Store or known developers.

Do I need to wipe my computer?

Only if the full and offline scans don't fix it or the virus caused damage. Back up your files first.

Should I pay a ransomware demand?

Disconnect the computer and get professional help before deciding anything. Restoring from a backup made before the infection is the safest path.

How do I avoid getting a virus again?

Keep your system and programs updated, download apps only from official sources, be wary of attachments and links, and back up often.

More practical solutions in Digital security.

Sources

The images in this guide are illustrations made by Fixfy. Threat names are fictional and menus may vary by system version.