A computer infected with malware can cause severe performance issues, compromise your personal data, and put your digital identity at massive risk. A decade ago, users had to rely heavily on expensive, resource-heavy third-party antivirus suites just to keep their computers functional. However, the cybersecurity landscape has shifted dramatically. Today, Microsoft has integrated an incredibly powerful suite of security tools directly into the core kernel of Windows 10 and Windows 11. These built-in utilities—primarily operating under the umbrella of Windows Security and Microsoft Defender—are completely free, consume far fewer system resources, and are highly effective at isolating and destroying malicious software. In this comprehensive technical guide, we will walk you through the exact, step-by-step process of utilizing these native Windows tools to completely eradicate malware, rootkits, and ransomware from your machine without spending a single dime on external software.
(Official Reference: Stay protected with Windows Security – Microsoft Support)
Signs Your Windows PC is Infected with Malware
Before initiating a full-scale system sweep, it is important to recognize the symptoms of a malware infection. Cybercriminals design modern malware to be as stealthy as possible, but malicious background processes inevitably leave a footprint on your system’s performance. You might notice your computer’s cooling fans spinning at maximum speed even when you are just staring at the desktop, indicating that a hidden cryptominer is utilizing 100% of your CPU or GPU. Other tell-tale signs include your web browser’s homepage being hijacked to a strange search engine, unprompted advertisements popping up on your screen even when your browser is closed, or critical system tools (like the Task Manager or Registry Editor) suddenly becoming “disabled by your administrator.” If you are experiencing unexplained system crashes, missing files, or severe internet throttling, your system has likely been compromised and requires immediate remediation.
Method 1: Disconnect from the Internet and Boot into Safe Mode
The absolute first step when dealing with an active malware infection is containment. You must immediately physically disconnect your computer from the internet (unplug the Ethernet cable or disable the Wi-Fi on your laptop). Many modern trojans and ransomware variants constantly “phone home” to a command-and-control server to download additional malicious payloads or upload your stolen data. By cutting the connection, you halt the attack in its tracks. Once disconnected, you must boot your computer into Safe Mode. Safe Mode is a specialized diagnostic state that loads Windows using only the bare minimum of drivers and core services required to function. Because most malware is programmed to launch automatically alongside your normal third-party startup apps, booting into Safe Mode effectively paralyzes the virus, preventing it from actively defending itself or hiding its files while you attempt to delete it.
To access Safe Mode, click the Start menu, hold down the Shift key on your keyboard, and click Restart. When the blue troubleshooting screen appears, navigate to Troubleshoot > Advanced options > Startup Settings and click Restart. Once your PC reboots, press the 4 key (or F4) to Enable Safe Mode without networking.
Method 2: Delete Temporary Files to Remove Malicious Payloads
Malware frequently relies on your computer’s temporary storage folders to hide its initial executable payloads. When you accidentally click a malicious link or download an infected email attachment, the virus usually unpacks itself into the Windows Temp directory before embedding itself deeper into the registry. By aggressively clearing out your temporary files before running a system scan, you can physically delete the dormant malware files, drastically reducing the scanning time and preventing the virus from reinstalling itself upon reboot.
To clear these files using native tools, open the Start menu, type Disk Cleanup, and press Enter. Select your primary C: drive and click OK. In the Disk Cleanup window, click the button labeled Clean up system files (you will need administrator privileges to do this). Once the tool finishes calculating, check every single box in the list—specifically focusing on “Temporary files,” “Temporary Internet Files,” and “Thumbnails.” Click OK and confirm the deletion. This simple action often removes the bulk of adware and browser hijackers instantly.
(Official Reference: Disk cleanup in Windows – Microsoft Support)
Method 3: Run a Full System Scan via Windows Security
With the temporary files cleared and the PC running safely in isolation, it is time to deploy Microsoft’s primary defense mechanism: the Microsoft Defender Antivirus engine. While Windows Security runs a “Quick Scan” automatically in the background on a daily basis, a quick scan only checks the most common startup folders and registry keys where malware typically resides. To ensure complete eradication, you must manually trigger a “Full Scan,” which forces the engine to scrutinize every single file, folder, and hidden directory across your entire hard drive.
-
Open the Start menu, type Windows Security, and hit Enter.
-
Click on Virus & threat protection in the left-hand sidebar.
-
Under the “Current threats” section, click on the blue Scan options link (do not click the large Quick Scan button).
-
Select the radio button for Full scan.
-
Click Scan now.
Depending on the size of your hard drive and the number of files you have, a Full Scan can take anywhere from an hour to several hours. Do not interrupt this process. If Defender detects any malicious files, it will immediately quarantine them, neutralizing the threat.
Method 4: Execute the Microsoft Defender Offline Scan for Rootkits
Sometimes, highly sophisticated malware—such as rootkits or advanced persistent threats—can embed themselves so deeply into the Windows operating system that they can actively hide themselves from standard antivirus scans. They manipulate the OS kernel to feed false “clean” reports to the security software. To combat this, Microsoft built the “Defender Offline Scan.” This powerful tool reboots your computer into a highly secure, specialized environment completely outside of the standard Windows operating system. Because the core OS is not running, the rootkit cannot hide, allowing Defender to locate and permanently delete the deeply embedded files without interference.
-
Navigate back to Windows Security > Virus & threat protection > Scan options.
-
Scroll to the bottom of the list and select Microsoft Defender Offline scan.
-
Save any open work and close all applications, then click Scan now.
-
Your PC will restart and boot into a black screen with the Defender logo. The offline scan will run automatically for approximately 15 minutes, eradicate any stubborn threats, and then reboot normally back to your desktop.
Method 5: Run the Windows Malicious Software Removal Tool (MRT)
Even if Windows Security gives you a clean bill of health after a full scan, it is always a best practice to get a second opinion. Fortunately, you do not need to download a third-party scanner for this. Microsoft quietly includes a standalone, constantly updated utility called the Malicious Software Removal Tool (MRT) within Windows. Unlike a general antivirus that looks for all types of suspicious behavior, MRT is specifically engineered to hunt down and reverse the damage caused by the most prevalent, high-severity malware families currently circulating the internet.
-
Press the Windows Key + R on your keyboard to open the Run dialog box.
-
Type
mrtinto the text box and press Enter. -
Click Yes on the User Account Control prompt.
-
The MRT wizard will open. Click Next.
-
Select Full scan and click Next.
The tool will silently sweep your system for specific high-threat infections and automatically reverse any malicious changes made to your system registry.
Preventative Maintenance: How to Keep Your PC Clean
After successfully removing the malware, you must harden your system’s defenses to prevent future attacks. Windows 11 includes several advanced, hardware-level security features that are turned off by default on older machines but can be enabled manually.
First, open Windows Security, navigate to Device security, and click on Core isolation details. Turn the toggle for Memory integrity to the “On” position. This feature utilizes hardware virtualization to protect your computer’s core processes from being tampered with by malicious code. Second, navigate to Virus & threat protection, scroll down to Ransomware protection, and click Manage ransomware protection. Enable Controlled folder access. This strict security protocol actively prevents unauthorized applications from modifying, encrypting, or deleting files in your critical folders (like Documents, Pictures, and Desktop), rendering ransomware attacks completely useless against your personal data.
Final Words
The days of feeling helpless against a computer virus without an expensive IT professional are long gone. The native security ecosystem built into modern versions of Windows is robust, efficient, and heavily fortified against modern cyber threats. By methodically isolating your machine in Safe Mode, purging temporary payloads, executing both Full and Offline scans, and leveraging the hidden MRT utility, you can confidently strip malware from your system. Remember that the best defense is a proactive one; keep your Windows operating system updated, avoid downloading pirated software, and leave your built-in Defender active to ensure a seamless and secure computing experience.




