Before you start
- Understanding measured boot, the TPM and UAC: see Windows 11 under the hood
In plain words
Securing Windows is like securing a house: a sturdy lock isn't enough. You also need a safe for valuables (BitLocker), an alarm that recognises intruders (Defender), inside doors that close (standard accounts, firewall) and walls nobody can get through, even with the caretaker's keys (core isolation). The good news: all of this is already installed, you just need to check it's switched on.
This guide is aimed at a personal PC or a small organisation. In a business, the same settings are deployed through Group Policy or MDM (Intune or another), and the rules mentioned here are tested in audit mode first.
1. Taking stock
The Windows Security app gives an overview: every section should show a green tick. In PowerShell (administrator), the full diagnosis:
# Antivirus: active protections and signature date
Get-MpComputerStatus | Select-Object AMRunningMode,
RealTimeProtectionEnabled, IsTamperProtected,
AntivirusSignatureLastUpdated
# System drive encryption
Get-BitLockerVolume -MountPoint C: |
Select-Object VolumeStatus, ProtectionStatus, EncryptionMethod
# Virtualisation-based security (2 = running)
Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard `
-ClassName Win32_DeviceGuard |
Select-Object VirtualizationBasedSecurityStatus,
SecurityServicesRunning
# Firewall: all three profiles must be enabled
Get-NetFirewallProfile | Select-Object Name, Enabled
In SecurityServicesRunning, the value 1 means Credential Guard and 2 memory integrity (HVCI).
2. Microsoft Defender
The built-in antivirus is enough for ordinary personal and business use, as long as its protections stay on (see also Antivirus and system security). A third-party antivirus disables it automatically: don't install two.
The settings to check in Windows Security › Virus & threat protection › Manage settings:
| Setting | Recommended state | Role |
|---|---|---|
| Real-time protection | On | Scans every file opened |
| Cloud-delivered protection | On | Quick verdict on unknown files |
| Automatic sample submission | On (or "Prompt me") | In-depth analysis of suspicious files |
| Tamper Protection | On | Stops malware from disabling Defender |
| Potentially unwanted app blocking | On | Blocks adware and booby-trapped installers |
Set-MpPreference -PUAProtection Enabled
Update-MpSignature
Start-MpScan -ScanType QuickScan
The offline scan (Scan options › Microsoft Defender Antivirus (offline scan)) restarts the PC in a minimal environment to hunt down malware that hides during normal operation.
3. Attack surface reduction rules
ASR rules block behaviour typical of attacks rather than known files: an Office macro launching a program, a downloaded script running a file, a tool reading the memory of lsass.exe. They work with Defender, even without a business subscription, and are set through PowerShell or Group Policy.
Microsoft recommends turning on the standard protection rules straight away, then testing the others in audit mode before blocking.
| Rule | GUID | Roll-out |
|---|---|---|
| Block abuse of exploited vulnerable signed drivers | 56a863a9-875e-4185-98a7-b882c64b5ce5 |
Block directly |
Block credential stealing from lsass.exe |
9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2 |
Block directly (unnecessary if LSA protection is on) |
| Block persistence through WMI event subscription | e6db77e5-3df2-4cf1-b95a-636979351e5b |
Block directly on a personal PC |
| Block executable content from email client and webmail | be9ba2d9-53ea-4cdc-84e5-9b1eeee46550 |
Audit, then block |
| Block all Office applications from creating child processes | d4f940ab-401b-4efc-aadc-ad5f3c50688a |
Audit, then block |
| Block JavaScript or VBScript from launching downloaded executable content | d3e037e1-3eb8-44c8-a917-57927947596d |
Audit, then block |
| Use advanced protection against ransomware | c1db55ab-c21a-4637-bb3f-a12568109d35 |
Audit, then block |
Step 1. Turn on the standard rules:
$std = '56a863a9-875e-4185-98a7-b882c64b5ce5',
'9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2',
'e6db77e5-3df2-4cf1-b95a-636979351e5b'
foreach ($id in $std) {
Add-MpPreference -AttackSurfaceReductionRules_Ids $id `
-AttackSurfaceReductionRules_Actions Enabled
}
Step 2. Put the others in audit (AuditMode instead of Enabled), use the PC normally for one to two weeks, then check events 1121 (blocked) and 1122 (audited) in Event Viewer › Microsoft › Windows › Windows Defender › Operational.
Step 3. If nothing legitimate shows up, switch them to Enabled. Check the final state:
$p = Get-MpPreference
for ($i = 0; $i -lt $p.AttackSurfaceReductionRules_Ids.Count; $i++) {
'{0} {1}' -f $p.AttackSurfaceReductionRules_Ids[$i],
$p.AttackSurfaceReductionRules_Actions[$i]
}
The value 1 means block, 2 audit, 0 off.
4. Against ransomware: controlled folder access
Controlled folder access only lets trusted apps modify Documents, Pictures, Desktop and the folders you add. Ransomware trying to encrypt your files is blocked.
Set-MpPreference -EnableControlledFolderAccess Enabled
Add-MpPreference -ControlledFolderAccessProtectedFolders 'D:\Projects'
Add-MpPreference -ControlledFolderAccessAllowedApplications `
'C:\Program Files\MySoftware\app.exe'
At first, some legitimate apps (drawing software, games that save to Documents) will be blocked: a notification appears, and the app can be allowed in Windows Security › Ransomware protection. This protection doesn't replace an offline backup: see Windows 11 maintenance and repair.
5. Smart App Control, SmartScreen and the Mark of the Web
SmartScreen checks the reputation of downloaded files and websites. It relies on the Mark of the Web, which Windows writes on every downloaded file (see Windows 11 under the hood). Only unblock a file (Properties › Unblock) if you're sure where it came from.
Smart App Control goes further: it only allows apps that are signed or judged safe by Microsoft's reputation service. It suits a family or office PC very well, a developer workstation less so.
- Since April 2026, it can be turned back on without reinstalling Windows (Windows Security › App & browser control).
- The October 2026 update (KB5127648) introduced a bug: on PCs where it had been turned off, the switch stays greyed out. Microsoft plans a fix in an upcoming update.
6. The firewall
Windows Firewall filters incoming connections according to three profiles:
| Profile | When | Recommended behaviour |
|---|---|---|
| Domain | PC connected to an Active Directory domain | Managed by the organisation |
| Private | Trusted network (home) | File sharing possible |
| Public | Any unknown network (café, hotel, station) | No incoming connections |
Step 1. Check that every unknown network is set to Public: Settings › Network & internet › Wi-Fi › (network) › Network profile type.
Step 2. To go further, the advanced firewall (wf.msc) or PowerShell allow precise rules. Example: allow Remote Desktop only from the local administration network:
New-NetFirewallRule -DisplayName "RDP from ADMIN" -Direction Inbound `
-Protocol TCP -LocalPort 3389 -RemoteAddress 10.10.10.0/24 `
-Profile Private,Domain -Action Allow
Step 3. Turn on logging of blocked connections for troubleshooting:
Set-NetFirewallProfile -Profile Public,Private -LogBlocked True `
-LogFileName "%SystemRoot%\System32\LogFiles\Firewall\pfirewall.log"
For the general principle of firewalls, see Understanding firewalls.
7. BitLocker and device encryption
BitLocker encrypts the disk: a stolen PC or a removed drive gives up no data. The key is protected by the TPM, which only releases it if the boot chain is intact.
| Windows edition | What's available |
|---|---|
| Home | "Device encryption", turned on automatically on most recent PCs set up with a Microsoft account |
| Pro, Enterprise, Education | Full BitLocker: choice of protectors, secondary and removable drives (BitLocker To Go), policies |
Step 1. Check the status and protectors:
manage-bde -status C:
manage-bde -protectors -get C:
Step 2. Back up the recovery key (48 digits) in at least two places outside the PC: a password manager, a printout kept somewhere safe. With a Microsoft account, it's also saved in the online account; with a local account, it's saved nowhere until you back it up.
(Get-BitLockerVolume -MountPoint C:).KeyProtector |
Where-Object KeyProtectorType -eq 'RecoveryPassword' |
Select-Object KeyProtectorId, RecoveryPassword
Step 3. For a business laptop, add a startup PIN (TPM + PIN protector). It protects against hardware attacks on the TPM chip. First enable the policy Computer Configuration › Administrative Templates › Windows Components › BitLocker Drive Encryption › Operating System Drives › Require additional authentication at startup, then:
manage-bde -protectors -add C: -TPMAndPIN
Before a BIOS update
Suspend BitLocker for one restart, otherwise the change to the boot chain will trigger the recovery key prompt:
Suspend-BitLocker -MountPoint C: -RebootCount 1
8. Core isolation and credential protection
These protections rely on virtualisation-based security (see Windows 11 under the hood). They're in Windows Security › Device security › Core isolation.
| Protection | What it prevents | Note |
|---|---|---|
| Memory integrity (HVCI) | Loading unsigned or modified code into the kernel | Can be blocked by an old incompatible driver, flagged on the same page |
| Local Security Authority protection (LSA) | Malicious tools reading credentials from memory | On by default on recent installations |
| Credential Guard | Theft of password hashes and Kerberos tickets | On by default on domain-joined Enterprise and Education editions |
| Vulnerable driver blocklist | Loading drivers known to be abused | On with memory integrity |
If memory integrity won't turn on, the page names the faulty driver: update it, or uninstall the software that installed it (often an old motherboard, RGB or overclocking utility).
9. Accounts and sign-in
- Work with a standard account and keep a separate administrator account for installing software. Malware launched by mistake won't be able to modify the system.
- Windows Hello (PIN, face, fingerprint) replaces the password. The PIN is tied to the device and protected by the TPM: stolen, it's useless on another machine.
- Passkeys saved in Windows Hello replace the password on compatible sites and resist phishing.
- LAPS (Local Administrator Password Solution), built into Windows, gives each PC a unique local administrator password that is renewed automatically. It needs Active Directory or Entra ID to store the passwords: it's a fleet tool, not one for a standalone PC. See Creating an Active Directory domain.
10. Security checklist
| Item | Done? |
|---|---|
| Windows Security: all sections green | ☐ |
| Tamper Protection and unwanted app blocking turned on | ☐ |
| Standard ASR rules turned on, the others tested in audit | ☐ |
| Controlled folder access turned on, legitimate apps allowed | ☐ |
| Unknown networks on the Public profile | ☐ |
| BitLocker or device encryption active | ☐ |
| Recovery key backed up in two places outside the PC | ☐ |
| Memory integrity and LSA protection active | ☐ |
| Standard account for daily use, Windows Hello set up | ☐ |
| Windows updates and drivers up to date, Secure Boot 2023 certificates present | ☐ |
| Offline backup in place | ☐ |