Quick answer: what to do now
- If you notice something serious, like locked files, disconnect the computer from the internet.
- Update the antivirus and run a full scan in Windows Security.
- If the threat comes back, use the Microsoft Defender offline scan.
- Uninstall programs and extensions you don't recognize.
- On another device, change the passwords of your important accounts.
What's your case?
Computer virus: 10 fixes to remove it
- Fake attachments and linksEmails and messages that imitate companies.Protect your accounts →
- Programs from unknown sourcesPirated downloads or shady websites.Remove what you don't know →
- Browser extensionsThey change the home page and show ads.Review your extensions →
- Outdated systemOld flaws make infection easier.Update everything →
- Antivirus off or outdatedWithout updates, it misses new threats.Run a scan →
- 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 updatesClick 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
- Open Windows Security (search for it in the Start menu).
- Click Virus & threat protection.
- Under Current threats, click Scan options.
- Choose Full scan and click Scan now.

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.
- Save anything you have open.
- In Scan options, choose Microsoft Defender Antivirus (offline scan) and click Scan now.
- The PC restarts, runs the scan and restarts again.
The results show up afterward in Protection history.
5Check the history and remove threats
- In Windows Security, open Protection history.
- Click the threat to see its severity and the affected file.
- Under Actions, choose Remove.

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 › SecurityUnder Allow applications from, choose App Store or App Store and Known Developers.

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 protectionTurn 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.
- Back up only your files (documents and photos), not programs.
- Reset or reinstall Windows from the recovery options. CISA notes that reinstalling the system usually erases files and programs.
- Restore your files from a backup made before the infection, such as OneDrive version history.
- 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
| Sign | Likely cause | What to do |
|---|---|---|
| Antivirus alert | Threat detected | Check the history (step 5) |
| Pop-ups and ads | Adware or extension | Remove programs (step 6) |
| Slow for no reason | Hidden program running | Full scan (step 3) |
| Virus keeps coming back | Threat hidden in the system | Offline scan (step 4) |
| Locked files | Ransomware | Disconnect (step 1) and restore (step 10) |
| Accounts used by strangers | Stolen passwords | Change passwords (step 8) |
| Strange app on a Mac | Unknown source | Mac 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.
Related content
More practical solutions in Digital security.
Account Hacked: Immediate Steps to Protect Your Access
Learn how to respond quickly if you suspect that your email account, social media account, or application has been accessed without authorization.
Phishing Scam: How to Identify Fake Links and Messages
Learn how to recognize phishing attempts through email, SMS, messaging apps, and social networks to protect your personal and financial information.
Forgot My Email Password: How to Recover Access
Recover access to your email account using official recovery channels and strengthen security after resetting your password.
Sources
- Microsoft Support: virus and threat protection in the Windows Security app
- Microsoft Support: troubleshoot problems with detecting and removing malware
- Apple Support: protect your Mac from malware
- CISA: Recovering from Viruses, Worms, and Trojan Horses
The images in this guide are illustrations made by Fixfy. Threat names are fictional and menus may vary by system version.