How to Remove a Virus from Your Computer: Step by Step

Safe ways to clean viruses and malware from your computer.

Onur Altun2 min readUpdated 2026-10-04
How to Remove a Virus from Your Computer: Step by Step editorial illustration

Contain the immediate problem

Unexpected redirects, unknown programs and security alerts warrant investigation, but they do not identify the exact cause by themselves. Stop interacting with suspicious pages and disconnect from shared resources if you suspect an active infection. Avoid signing into sensitive accounts on the affected machine while the issue is unresolved.

Scan with trusted tools

Open the security application already installed on the device, update its definitions when safe and run a scan. Review its findings instead of blindly dismissing or allowing files. Microsoft Defender Offline can inspect some threats outside the normal running Windows session; save your work because that scan restarts the computer.

Check what allowed the problem

After cleaning, review unwanted browser extensions, unfamiliar startup programs and recent downloads. Repeated detection may mean the source or another component remains. Keep the operating system and applications supported and updated. For suspected credential theft, secure accounts from a separate trusted device.

Recovery and follow-up

If damage remains or confidence in the system is low, discuss a clean installation and restoration from an appropriate backup. Do not restore an unknown executable simply because it appeared in a backup. Record the security product's detection names, actions and remaining symptoms for support.

For device-specific or current product instructions, see Microsoft: malware troubleshooting.

Need help with your own device?

Describe the problem with the model, symptoms and checks already tried. For related help, explore computer service or remote support.

Let’s work together

Need help with this topic?

Describe the actual problem and context so the advice can fit your situation.

Chat on WhatsApp
Site search

Find a page, service or guide

Start typing to search the site.

↑↓ navigateEnter openEsc close