FixSecurity and scams
Remove malware with Windows Security
- Applies to
- Windows 11 and Windows 10
- Difficulty
- Moderate
- Time
- About 120 min
- Risk
- Can remove data
- Reviewed
Quick answer
Open Windows Security, update its protection, then run a Quick scan followed by a Full scan. If something keeps coming back, run the Microsoft Defender Offline scan, which checks your PC before Windows starts.
Windows 11 and Windows 10 come with Windows Security, which includes Microsoft Defender Antivirus. It's free, already installed and kept up to date by Windows Update, so you don't need to download anything to clean your PC. Work through the scans in order: each one is more thorough than the last.
Fix 1Update Windows Security's protection
A scan can only recognize threats it knows about. Microsoft publishes new security intelligence (the descriptions of known threats) several times a day, and fetching the latest before scanning gives the best chance of catching something new.
- Search Start for Windows Security and open it.
- Select Virus & threat protection.
- Under Virus & threat protection updates, select Protection updates, then Check for updates.
Fixed? You can stop here. Still happening: go to Fix 2
Fix 2Run a quick scan
A quick scan checks the places malware most often hides, such as startup locations and system folders. It takes a few minutes and catches most common threats.
- In Virus & threat protection, select Quick scan.
- Keep using the PC if you like. When the scan finishes, read the result under Current threats.
- If it lists anything, select Start actions to remove or quarantine it, then restart the PC if asked.
A good result is No current threats. If the quick scan suggests a deeper scan, carry on to the next fix.
Fixed? You can stop here. Still happening: go to Fix 3
Fix 3Run a full scan
A full scan checks every file and program on your drives, including ones a quick scan skips. It's slower but much more thorough.
- In Virus & threat protection, select Scan options.
- Choose Full scan, then select the button under the list of scan types to start it.
- Leave it running. It can take an hour or more on a large drive, and you can keep working meanwhile.
- Deal with anything it lists using Start actions, then restart.
To see what any scan found and what was done about it, select Protection history in Virus & threat protection.
Fixed? You can stop here. Still happening: go to Fix 4
Fix 4Run the Microsoft Defender Offline scan
Some malware hides itself while Windows is running, or puts itself back after each removal. The offline scan restarts the PC and scans before Windows loads, so that kind of malware has nowhere to hide. Microsoft recommends it when the same threat keeps returning.
- Save your work and close your apps, because the PC restarts.
- In Virus & threat protection, select Scan options.
- Choose Microsoft Defender Antivirus (offline scan). On Windows 10 and some Windows 11 versions it's called Microsoft Defender Offline scan.
- Select the button under the list to start it, confirm, and select Yes if Windows asks for permission.
- The PC restarts and shows a scan screen. It usually takes around 15 minutes, then Windows starts normally.
Afterwards, open Windows Security and check Protection history to see the results.
Fixed? You can stop here. Still happening: go to Fix 5
Fix 5Remove unwanted apps and turn on unwanted-app blocking
A lot of what people call a virus is really unwanted software: toolbars, "PC cleaners" and ad-filled apps bundled with free downloads. They often aren't malware in the strict sense, so you may need to uninstall them yourself. Windows Security can then block that kind of app in future.
- Open Settings then
Apps then (on Windows 10, Settings thenInstalled apps Apps then ).Apps & features - Sort the list by install date and look at anything installed around when the problems started.
- Uninstall apps you don't recognize or didn't mean to install. Leave anything from your PC maker, Microsoft, Intel, AMD, NVIDIA or Realtek, which are usually drivers and system tools.
- In Windows Security, select App & browser control > Reputation-based protection settings.
- Turn on Potentially unwanted app blocking, and make sure Block apps and Block downloads are both ticked.
If your browser's homepage or search engine has been changed, also follow browser homepage or search engine changed by itself to remove extensions.
Fixed? You can stop here. Still happening: go to Fix 6
Fix 6If it keeps coming back, reset Windows
When malware survives every scan, or has damaged Windows so it doesn't work properly, reinstalling Windows is the most reliable way to get a clean system. Microsoft suggests this when a threat has made changes that can't be undone.
- Back up your personal files.
- Follow Reset this PC. Remove everything is the most thorough choice after a serious infection.
- After the reset, run Windows Update, then scan your backup with Windows Security before you open the files.
Fixed? You can stop here. Still happening: what to do next
After the cleanup
Malware sometimes captures passwords, so change the important ones (email, bank, Microsoft account) and turn on two-step verification where you can. Keep Windows Update on, and our Windows Health Check shows how to confirm your protection is switched on.
If none of these worked
Stop here rather than trying riskier changes. These are the right places to go next:
- Microsoft SupportOfficial help for Windows, including the Get Help app built into Windows.
- Your PC maker's support siteFor hardware faults, drivers and warranty repairs. Find your model in Settings then
System then , then type the maker's web address yourself.About - A local repair shop you can visitFor hardware faults such as a failing drive, screen or battery.
Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam
Sources and review
Checked against Microsoft's own documentation:
- Microsoft Support: Virus and threat protection in the Windows Security app
- Microsoft Support: Troubleshoot problems with detecting and removing malware
- Microsoft Support: Protect your PC from unwanted software
Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.