TechBuzzPro

How to Protect Your Computer from Viruses on Windows

· 7 min read · Security & Privacy

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Protecting a Windows PC from viruses comes down to three habits: keep Windows and your apps updated, run the built-in Microsoft Defender antivirus with real-time protection on, and avoid opening or installing things you did not expect. You do not need a paid security suite to do this; the tools already in Windows handle the basics well if you let them. This guide walks through the settings and behaviours that actually matter, in the order that gives you the most protection for the least effort.

What You'll Need

  • A Windows 10 or Windows 11 PC with administrator access (some security settings require it).
  • Microsoft Defender Antivirus, which is built into Windows and enabled by default.
  • A reliable internet connection for updates and cloud-based protection.
  • Optional: a password manager and a backup drive or cloud backup service, both of which reduce the damage a virus can do.

Step-by-Step

  1. Turn on real-time protection. Open Settings > Privacy & security > Windows Security, then click Virus & threat protection. Under Virus & threat protection settings, make sure Real-time protection, Cloud-delivered protection, and Automatic sample submission are all switched on. Real-time protection is the single most important setting: it scans files as they are opened or downloaded. Menu labels can differ slightly between Windows versions and regions, so if you do not see an exact match, look for the closest wording.
  2. Run a full scan now. In the same Virus & threat protection screen, click Scan options, choose Full scan, and click Scan now. A full scan checks every file on your drives, not just the common infection points, and can take an hour or more. You can keep using the PC while it runs, though it will be slower.
  3. Keep Windows Update on. Go to Settings > Windows Update and click Check for updates. Leave automatic updates enabled so security patches install without you thinking about it. Most real-world infections exploit flaws that Microsoft has already fixed, so an unpatched PC is the easiest target.
  4. Update your other software too. Browsers, PDF readers, office suites, and messaging apps all need patching. Turn on automatic updates inside each app where the option exists. On Windows 11 you can also check Settings > Windows Update > Advanced options for the option to get updates for other Microsoft products.
  5. Use a standard user account for daily work. In Settings > Accounts, check whether your everyday account is an administrator. If it is, create a second administrator account and change your daily account to a standard user. Standard users cannot install system-wide software or change core settings without entering an admin password, which blocks a lot of malware from taking hold.
  6. Treat email attachments and links with suspicion. Do not open attachments you were not expecting, even from people you know, and hover over links to check the real destination before clicking. Virus-laden attachments usually arrive as ZIP files, Office documents asking you to "enable editing" or "enable macros", or HTML files.
  7. Download only from official sources. Get software from the publisher's own website or the Microsoft Store, not from download aggregator sites that bundle extra installers. During any installer, choose the custom or advanced option and decline any pre-ticked extras.
  8. Turn on controlled folder access if you want extra ransomware protection. In Windows Security > Virus & threat protection > Manage ransomware protection, enable Controlled folder access. This stops unknown apps from changing files in your Documents, Pictures, and other protected folders. Be aware it can block legitimate programs until you allow them, so expect to approve apps occasionally.
  9. Back up important files. Use OneDrive, an external drive, or Windows Backup so that a virus, ransomware, or a failed drive cannot destroy the only copy. Keep at least one backup disconnected from the PC when it is not in use, because ransomware can encrypt connected drives.
  10. Check your protection status regularly. Open Windows Security from the taskbar and confirm there are no yellow or red warnings. If Defender has been turned off by another program, you will see a warning there.

Common Mistakes

  • Installing two antivirus programs at once. Running a second real-time antivirus alongside Defender often causes conflicts and slowdowns. Windows will usually disable Defender automatically when it detects another antivirus, but the cleaner setup is one real-time scanner at a time.
  • Disabling real-time protection "just for a minute". Windows turns it back on automatically after a short period, but that window is exactly when malware slips through. Do not disable it to install something you are unsure about.
  • Clicking "Remind me later" on updates indefinitely. Deferred updates pile up, and the security patches are the ones you most need.
  • Assuming a pop-up warning is real. Browser pop-ups claiming "Your PC is infected, call this number" are scams, not Windows messages. Close the tab or the browser; never call the number.
  • Reusing the same password everywhere. A virus is not the only risk; stolen credentials from one breached site let attackers into others. Use a password manager to generate unique passwords.

Tips

  • Run a quick scan weekly and a full scan monthly if you download and install a lot of software.
  • Use the Windows Security app's Protection history to see what Defender has blocked; it helps you spot a pattern of risky downloads.
  • Keep a USB recovery drive or know how to use Windows recovery options, in case malware damages the system.
  • When in doubt about a file, upload it to VirusTotal (a free multi-engine scanner) before opening it.
  • Sign out of your Microsoft account on shared PCs and use a PIN or Windows Hello instead of a simple password.

Troubleshooting

Defender will not turn on. First restart the PC, then check Windows Security again. If a third-party antivirus is installed, Windows may be deferring to it; uninstall the other antivirus if you want Defender to run. If the setting is greyed out, your organisation may manage the PC through group policy, or malware may have tampered with it. In that case, run Windows Security > Virus & threat protection > Scan options > Microsoft Defender Offline scan, which restarts the PC and scans before Windows loads.

Defender found a threat but cannot remove it. Note the threat name, then run a full scan in Safe Mode: hold Shift while choosing Restart from the Start menu, then choose Troubleshoot > Advanced options > Startup Settings > Restart and select Safe Mode. Run the scan there, then restart normally.

The PC is very slow after enabling protection. A full scan running in the background is the usual cause; wait for it to finish. If slowness persists, check Task Manager for unfamiliar processes using high CPU and search the process name before ending it.

You suspect an infection but scans come back clean. Change your important passwords from a different, trusted device, check for unknown browser extensions and startup apps, and consider resetting Windows with the "Keep my files" option. A reset removes installed programs, so back up documents first.

Frequently Asked Questions

Do I need to buy antivirus software for Windows?

No. Microsoft Defender is included, updated automatically, and provides solid real-time protection for typical home use. A paid suite mainly adds extras like parental controls or VPNs, which you can get separately.

How often should I scan my PC?

Real-time protection runs constantly. A weekly quick scan and a monthly full scan are reasonable habits, especially if you download files often.

Can a virus survive a Windows reset?

A standard reset that keeps files can leave some malware in place if it has infected user folders. For a suspected serious infection, back up documents and choose the option to remove everything, then reinstall your apps from official sources.

Is it safe to use a free antivirus instead of Defender?

Reputable free antivirus tools exist, but running two real-time scanners at once causes problems. Pick one and let Windows Security manage the rest.

What should I do if I clicked a suspicious link?

Disconnect from the internet, run a full scan, change passwords for accounts you were signed into, and check Protection history in Windows Security for any blocked items.

Does Windows Defender protect against ransomware?

Defender includes ransomware detection and, if you enable it, controlled folder access to block unauthorised changes to your files. Backups remain your strongest defence.