To remove malware from Windows, disconnect from the internet, update Microsoft Defender, run a full scan in Windows Security, then run a Microsoft Defender Offline scan for stubborn threats. Afterward, remove suspicious apps and browser extensions, change passwords entered while infected, and check that your security settings were not changed.
Key takeaways
- Disconnect first, then scan with Microsoft Defender — a full scan followed by an offline scan removes most infections.
- Stubborn malware that returns after a scan usually needs an offline scan or a second-opinion scanner run from a clean PC.
- After removal, change passwords, check browser extensions and startup apps, and restore any security settings the malware changed.
Malware on a Windows PC is stressful, but most infections can be removed without paying anyone and without losing your files. The tools you need are already built into Windows 10 and 11, and the process is the same whether the infection is adware, a browser hijacker, a trojan or a stubborn rootkit.
How do I know my Windows PC has malware?
Malware rarely announces itself clearly. Look for a pattern: sudden slowness, pop-ups, a changed homepage, new programs you did not install, or security warnings that appear outside your antivirus app.
Other warning signs include your fans running hard when the PC is idle, your browser redirecting searches to an unfamiliar site, friends receiving strange messages from your accounts, or your antivirus being switched off without your action. Any one of these can have an innocent cause, so treat them as a reason to scan, not as a diagnosis.
One red flag deserves immediate action: a message or pop-up that claims your PC is infected and tells you to call a number or pay for a fix. That is almost always a scam, often called tech-support fraud. Close the browser, do not call the number, and do not let anyone connect to your PC remotely. Our guide to how to know if your phone is hacked covers similar scam tactics on mobile, and the same rule applies here: real security software does not ask you to call a stranger.
What should I do before removing malware?
Contain the infection first, so it cannot spread, steal more data or download new payloads while you work. These steps take five minutes and make everything after them safer.
- Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops malware from sending data out or downloading more malware.
- Save your open work and close programs. Some scans restart the PC, and you do not want to lose unsaved files.
- Do not log in to banking, email or shopping. Wait until the PC is clean, or use a different, clean device for anything sensitive.
- Note what you saw. Write down strange program names, pop-up text and when the problems started. It helps if you later need support.
- Back up important files if you can. Copy documents and photos to an external drive, but skip programs and installers. Scan that backup later before restoring it.
If the PC holds work files for your business, tell your IT team or manager before you start cleaning. A work PC may be part of a wider incident, and your company may need to check other machines too. The small business cybersecurity checklist explains how to prepare for this kind of event before it happens.
How do I remove malware from Windows step by step?
Work through these steps in order, from the least disruptive to the most thorough. Most infections are gone by step three, so do not jump to a full reset unless the earlier steps fail.
Step 1: Update Microsoft Defender
Open Start, search for "Windows Security", then go to "Virus and threat protection". Under "Virus and threat protection updates", select "Check for updates" and install what is offered.
Updated definitions matter because malware changes constantly. A scan with old definitions can miss a threat that was added to the database yesterday. If you disconnected from the internet in the previous step, reconnect briefly for this update, then disconnect again if you prefer, or stay connected for the scans.
Step 2: Run a quick scan
In "Virus and threat protection", under "Current threats", select "Scan options", choose "Quick scan" and select "Scan now". This checks the folders and processes where malware most often hides and takes only a few minutes.
If Defender finds a threat, let it quarantine or remove it, then restart the PC if asked. Quarantine isolates the file so it cannot run, which is safer than deleting it outright while you are still investigating.
Step 3: Run a full scan
Go back to "Scan options", choose "Full scan" and select "Scan now". A full scan checks every file and running program, so it can take from 30 minutes to several hours on a large drive. Let it finish, even if the progress bar seems slow.
When it finishes, open "Protection history" to see what was found and what Defender did with it. If the same threat appears again after a restart, move to the offline scan.
Step 4: Run a Microsoft Defender Offline scan
The offline scan restarts your PC into a clean environment outside normal Windows, so malware that is running cannot defend itself. Microsoft says the scan takes about 15 minutes and focuses on firmware and rootkits, including threats that infect the master boot record.
Before you start, save your work: the PC signs you out and restarts. If BitLocker is enabled on your system drive, suspend BitLocker protection first, or you may be asked for the BitLocker recovery key when the PC restarts. The offline scan does not apply to ARM-based Windows PCs or Windows Server.
To run it, open Windows Security, go to "Virus and threat protection", select "Scan options", choose "Microsoft Defender Antivirus (offline scan)" and select "Scan now". You can also start it from PowerShell as an administrator with the command Start-MpWDOScan. Full details are in Microsoft's Defender Offline documentation.
Step 5: Get a second opinion
No single scanner catches everything, so run one reputable second-opinion scanner after Defender. Malwarebytes offers a free scanner, and ESET offers a free online scanner; both are designed to run alongside your existing antivirus for a one-off check.
Download the scanner from the vendor's own website, on a clean PC if possible, and transfer it by USB if your infected PC cannot be trusted to download safely. Remove anything the second scan finds, then restart and run a quick Defender scan again to confirm the PC is clean.
Step 6: Remove suspicious apps and extensions
Open Settings, go to "Apps", then "Installed apps", and sort by install date. Uninstall anything you do not recognize, especially programs installed around the time the problems started. Do the same in each browser: open the extensions page and remove anything unfamiliar.
Also check your browser homepage, default search engine and startup pages, which hijackers commonly change. Reset them to the values you want, and clear your browsing data if pop-ups keep appearing from a site you visited.
Which scan should I use: quick, full, custom or offline?
Each scan type has a different job. Quick scans are for a fast check, full scans are for a thorough check, custom scans target one folder or drive, and offline scans catch threats that hide while Windows is running.
| Scan type | What it checks | When to use it | How long it takes |
|---|---|---|---|
| Quick scan | Common hiding places and running processes | First check, or after a warning | A few minutes |
| Full scan | Every file and running program | After a quick scan finds something, or once a month | 30 minutes to several hours |
| Custom scan | Folders or drives you choose | Checking a USB drive or a downloaded folder | Depends on size |
| Offline scan | Firmware, boot records and rootkits outside Windows | Threat keeps returning after normal scans | About 15 minutes plus restart |
For a suspected infection, run a quick scan, then a full scan, then an offline scan if anything returns. For routine health, a quick scan weekly and a full scan monthly is enough for most home PCs.
What should I do after removing malware?
Removal is only half the job. Malware often changes settings, steals credentials or leaves a back door, so spend twenty minutes on cleanup before you call the PC safe.
- Change passwords. Start with email and banking, then any account you used while the PC was infected. Change them from a clean device, and check whether any password appears in a known breach with our pwned password checker.
- Check startup apps and scheduled tasks. In Task Manager, open the Startup apps tab and disable anything unfamiliar. Malware often adds itself here so it restarts with Windows.
- Restore security settings. Confirm real-time protection is on in Windows Security, check that Windows Firewall is enabled, and look for new proxy settings or VPN profiles you did not add.
- Install updates. Run Windows Update and update your browser and other apps. Many infections arrive through a known vulnerability that a patch would have closed.
- Turn on two-factor authentication. Even if a password was stolen, a second factor stops most account takeovers.
If you entered payment card details while infected, check your statements for unfamiliar charges and tell your bank. If the malware was ransomware and files were encrypted, do not pay: check whether a free decryptor exists, restore from a clean backup, and report the incident. CISA's guidance on protecting against malicious code covers the same prevention basics for homes and small businesses.
Why does malware keep coming back after I remove it?
Malware that returns usually has a second copy somewhere the scanner did not reach: a scheduled task, a startup entry, a browser extension, an infected USB drive, or a compromised restore point. Finding that second copy is the whole job.
Check Task Scheduler for tasks you did not create, look at the startup folders, and scan every USB drive you used recently. Also check for a second user account or a remote-access tool you did not install. If the PC was infected through a malicious browser extension, removing the malware but leaving the extension means the infection simply reinstalls itself.
Rootkits are the hardest case because they load before Windows and hide from normal scans. That is exactly what the offline scan is for, since it runs outside the normal Windows kernel. If an offline scan and a second-opinion scan both fail, a Windows reset is the reliable answer.
How do I reset Windows when malware will not go away?
Resetting Windows reinstalls the operating system and removes installed programs, which also removes almost any malware. It is the right choice when scans cannot clean the threat or when you need certainty.
First, back up your personal files to an external drive and scan that backup from a clean PC. Then go to Settings, select "System", then "Recovery", and choose "Reset PC". Pick "Remove everything" for a badly infected machine, and choose the cloud download option so Windows downloads a fresh copy instead of reusing local files that might be compromised.
After the reset, install Windows updates before anything else, reinstall only the apps you need from their official sources, and restore your files only after scanning the backup. Do not restore a full system image made while the PC was infected.
How can I prevent malware on Windows in the future?
Prevention is cheaper than cleanup. Keep real-time protection on, install updates promptly, and be careful about what you download and click. Most Windows malware still arrives through a malicious download, a phishing attachment or a fake update prompt.
- Keep Defender's real-time protection on. Do not disable it to install a program unless you are certain the program is safe.
- Install Windows and browser updates quickly. Turn on automatic updates where you can.
- Download software only from official sources. Avoid cracked software, free download sites and email attachments you were not expecting.
- Use a standard user account for daily work. Malware running as a standard user has less power than malware running as an administrator.
- Back up regularly. A recent, tested backup turns a ransomware attack from a disaster into an inconvenience.
- Be suspicious of urgency. A message that says you must act now, pay now or download now is trying to stop you thinking.
For a wider setup, work through the small business cybersecurity checklist, which covers backups, updates, passwords and device security together.
The bottom line
Most Windows malware can be removed with the tools already on your PC: disconnect, update Defender, run a full scan, then an offline scan for anything stubborn, and finish with a second-opinion check.
The cleanup after the scan matters just as much as the scan itself. Change any passwords you used while infected, remove suspicious apps and extensions, install your updates, and check whether a password you use has appeared in a breach with the free pwned password checker.
Frequently asked questions
How do I know if my Windows PC has malware?
Common signs are sudden slowness, pop-ups you did not ask for, a changed browser homepage or search engine, new toolbars, programs you do not remember installing, and security warnings that appear outside your antivirus app. One sign alone is not proof, so run a full scan before deciding.
Can Microsoft Defender remove malware by itself?
Yes, in most cases. Microsoft Defender Antivirus is built into Windows 10 and 11 and can quarantine or remove most common malware during a full scan. For threats that hide in the boot process or keep returning, run a Microsoft Defender Offline scan, which scans from outside normal Windows.
Should I pay for a malware removal tool?
Usually not at first. The built-in Defender scan plus a free second-opinion scan from a reputable vendor covers most home infections. Paid tools add real-time protection and support, which are useful afterward, but do not pay a website or pop-up that claims your PC is infected.
What should I do if malware keeps coming back after a scan?
Run an offline scan, then a second-opinion scanner, and check startup apps, scheduled tasks and browser extensions for anything unfamiliar. If it still returns, back up your personal files to an external drive, scan that backup, and reset Windows using the cloud download option.
Is it safe to back up files from an infected PC?
Back up documents, photos and other personal files, but do not back up programs, installers or executable files, which can carry the infection. Scan the backup with your antivirus before you restore it to a clean system, and do not restore a full system image made while the PC was infected.
Do I need to change my passwords after removing malware?
Yes, if you typed any passwords, bank details or payment information while the PC was infected, or if the malware could have included a keylogger. Change them from a clean device, starting with email and banking, and turn on two-factor authentication where it is available.
How long does a full malware scan take?
A quick scan takes a few minutes. A full scan can take from 30 minutes to several hours depending on how many files you have and how fast your drive is. A Microsoft Defender Offline scan takes about 15 minutes, according to Microsoft, plus the restart time.
When should I reset Windows instead of cleaning it?
Reset Windows when scans cannot remove the threat, when system files are damaged, when ransomware has encrypted your files and you have clean backups, or when you need to be certain nothing is left. A reset is the most reliable cleanup for a badly infected PC.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Microsoft's Defender Offline documentation, Microsoft Support guidance on Windows Security, and CISA guidance on malicious code.
How we write and fact-check →