Windows Security & Firewall Setup: Step-by-Step
In this article
To set up proper security and firewalls on Windows, turn on Windows Security's real-time protection, confirm the built-in Microsoft Defender Firewall is enabled for all network profiles, and keep Windows Update current. That combination blocks most everyday threats without extra software. This guide walks through the exact settings to check, the mistakes that leave holes open, and what to do when something stops working. Menu labels can differ slightly by Windows version, device and region, so treat the paths below as a map rather than a script.
What You'll Need
- A Windows 10 or Windows 11 PC with an administrator account (you cannot change firewall or security settings from a standard account).
- An internet connection for updates and for downloading anything you choose to add.
- About 15–20 minutes, plus a restart if updates are pending.
- Optional: a password manager, so you can use strong, unique passwords without reusing them.
Step-by-Step
- Open Windows Security. Click Start, type Windows Security, and open the app. You can also reach it from Settings > Privacy & security > Windows Security. This is the central dashboard for virus protection, firewall, account protection and device health.
- Check virus and threat protection. Select Virus & threat protection. If real-time protection is off, turn it on. If a third-party antivirus is installed, Windows Security will show that app instead and Defender steps back automatically — that is normal and you should not run two real-time antivirus engines side by side.
- Run a quick scan. On the same page, choose Quick scan. It takes a few minutes and catches common active threats. If it finds something, follow the recommended action (usually Quarantine or Remove) and restart if prompted.
- Turn on the firewall for every profile. Go to Firewall & network protection. You will see separate status lines for Domain, Private and Public networks. Click each one and switch Microsoft Defender Firewall to On. Public is the profile used on café, airport and hotel Wi-Fi, so it matters most when travelling.
- Block all incoming connections on Public networks. Still under the Public profile, enable Block all incoming connections, including those in the list of allowed apps. This stops other devices on the same Wi-Fi from reaching your PC while still letting you browse, stream and download normally.
- Review allowed apps. On the Firewall & network protection page, open Allow an app through firewall. Look for entries you do not recognise or no longer use, and clear their checkboxes. Be careful with anything labelled as a Windows feature or a game you actively play — removing those can break updates or multiplayer.
- Enable network protection and controlled folder access. Under App & browser control, turn on Reputation-based protection and Network protection if available. Under Virus & threat protection > Manage ransomware protection, enable Controlled folder access so unknown apps cannot silently modify your Documents, Pictures and Desktop folders.
- Harden your account. In Windows Security, open Account protection and turn on Windows Hello sign-in if your device supports it. Then go to Settings > Accounts > Sign-in options and require sign-in on wake. Use a standard (non-administrator) account for daily browsing and reserve the admin account for installs.
- Update Windows and drivers. Open Settings > Windows Update and install everything pending, including optional updates that include security fixes. Restart when asked. Updates patch the flaws that firewalls and antivirus cannot cover.
- Check the firewall from the command line (optional verification). Open Windows Terminal or Command Prompt as administrator and run
netsh advfirewall show allprofiles. Each profile should report State ON. This is a read-only check and changes nothing. - Test that browsing still works. Open a browser and load a site, then try a video call. If everything loads, the firewall is doing its job without blocking normal traffic. If a specific app fails, see Troubleshooting below.
Common Mistakes
- Turning the firewall off to fix a connection problem. This is the most common and most damaging shortcut. Fix the app's rule instead, or temporarily allow that one app through the firewall, then turn the rule back off.
- Running two antivirus products at once. Two real-time scanners fight each other, slow the PC and can cause false positives. Pick one and let Windows Security defer to it.
- Leaving the Public profile open. Many people enable the firewall only on Private and forget that hotel and café Wi-Fi uses the Public profile. Check all three.
- Approving every app that asks for firewall access. Only allow apps you installed and recognise. A random prompt is often the first sign of unwanted software.
- Ignoring updates for months. A firewall blocks ports, not exploits in outdated software. Pending updates are an open door.
- Using an administrator account for everyday browsing. If malware runs under an admin account, it inherits admin rights. A standard account limits the damage.
Tips
- Use a password manager and turn on two-factor authentication for your Microsoft account; account takeover bypasses most local security.
- Keep a system image or File History backup on an external drive. Ransomware protection is stronger when you can restore rather than pay.
- Name your home network as Private only when you trust every device on it; guest devices belong on a separate network or the Public profile.
- Review the firewall's allowed-apps list every few months and remove anything you no longer use.
- If you install a third-party firewall, let it manage the rules and disable Defender Firewall to avoid conflicts — never run both as active managers.
Troubleshooting
If an app cannot connect after you enable the firewall, first check whether the app is listed under Allow an app through firewall and whether the correct network type (Private or Public) is ticked. Add the app with Change settings > Allow another app only if you trust it. If the whole connection fails, restart the PC and the router, then run the built-in troubleshooter from Settings > System > Troubleshoot > Other troubleshooters. If Windows Update will not download, confirm the Windows Update service is running and that the firewall is not blocking it — do not disable the firewall permanently. If you cannot open Windows Security at all, restart and try again; if it still fails, run a full scan from Windows Security's scan options or use the Microsoft Defender Offline scan, which restarts the PC into a clean environment. Before any reset or reinstall, back up your files, because those steps can remove apps and personal data.
Frequently Asked Questions
Do I need a third-party firewall on Windows?
No. Microsoft Defender Firewall is built in, enabled by default and adequate for most home users. A third-party firewall adds convenience features but is not required, and running two active firewalls causes conflicts.
Does the firewall block viruses?
Not directly. The firewall blocks unwanted network connections; antivirus and real-time protection catch malicious files. You need both layers.
Why does Windows Security say my antivirus is managed by an organisation?
That usually means a third-party security suite or a work/school policy is in control. Check with your IT administrator if it is a work device; on a personal PC, uninstall the extra suite if you want Defender to manage protection again.
Can I turn off the firewall for a specific app only?
Yes. Use Allow an app through firewall to permit that app on the network type you choose, rather than disabling the whole firewall.
Is it safe to use Public network mode at home?
Yes, it is the safer default. It hides your PC from other devices, so you lose file and printer sharing until you switch the network to Private.
How often should I check these settings?
After major Windows updates, after installing new security software, and whenever you join a new Wi-Fi network. A quick look at the firewall status page takes under a minute.