How to remove malware from Windows Safe Mode with Networking
Malware can interfere with antivirus software, block security tools, redirect browsers, or relaunch itself whenever Windows starts normally. Safe Mode with Networking loads Windows with a limited set of drivers and services while keeping internet access available, creating a useful environment for downloading trusted scanners and security updates.
This mode is especially helpful when a trojan, spyware program, adware bundle, or browser hijacker prevents normal cleanup. It does not automatically remove threats, however. A careful process is still required, and networking should be used only when necessary because some infections can communicate with remote servers.
Before deleting anything, identify suspicious symptoms and protect important files. If ransomware may be involved, avoid opening encrypted files repeatedly or installing random decryptors. The site’s ransomware guidance provides additional background on file-encrypting threats and their common warning signs.
Why safe mode can help
During a standard Windows startup, malware may launch through scheduled tasks, startup folders, services, browser extensions, or registry entries. Some threats also monitor security programs and terminate them before a scan can finish. Safe Mode reduces the number of components that load, which can prevent certain malicious processes from becoming active.
The Networking option adds drivers and services needed for internet access. This allows you to update Microsoft Defender, download a reputable malware scanner, research a suspicious file, or submit a sample to a trusted security service. Use this access sparingly, and disconnect from the internet after downloading the tools you need if the infection appears active.
Prepare Windows before restarting
Save your work and disconnect external storage devices that are not required. USB drives, portable hard disks, and network shares can contain malicious files or become encrypted during a ransomware incident. If possible, copy essential documents to a clean backup location, but do not back up executable files or unknown installers.
Make a note of suspicious pop-ups, unfamiliar applications, changed browser settings, and recently installed software. You should also confirm that you can sign in with an administrator account. If Windows displays a fake security warning requesting payment or remote access, do not call the displayed number or install the suggested program.
If you suspect file encryption rather than ordinary malware, shut down unnecessary network-connected devices. For recovery methods that do not depend on a decryptor, review this file recovery guide before making major changes to the affected drive.
Enter Safe Mode with Networking
The exact route differs slightly between Windows versions, but the Advanced Startup environment provides the most consistent method.
- Open Settings, select System, choose Recovery, and click Restart now beside Advanced startup. In Windows 10, the option may appear under Update & Security > Recovery.
- After the blue recovery screen appears, select Troubleshoot, then Advanced options, followed by Startup Settings.
- Choose Restart and wait for the numbered startup menu.
- Press the key for Enable Safe Mode with Networking, commonly 5 or F5.
- Sign in normally and check the desktop for the “Safe Mode” label in the corners.
If Windows cannot reach the desktop, hold Shift while selecting Restart from the sign-in screen or Start menu. Repeated failed boots may also open the Windows Recovery Environment automatically. Avoid interrupting the process repeatedly, as forced shutdowns can worsen file-system problems.
Scan for malicious software
Once Safe Mode with Networking loads, update Microsoft Defender or install one reputable, well-known on-demand scanner. Do not run several real-time antivirus products simultaneously because they can conflict and produce unreliable results. Close browsers and other applications before starting a full scan.
Use a full or offline scan when available, rather than relying only on a quick scan. Review every detection before removal, since a false positive can affect legitimate system files. Items identified as potentially unwanted programs, cracked software, key generators, or suspicious browser components deserve careful attention.
| Item to check |
What to do |
| Antivirus detections |
Quarantine confirmed threats and record their names |
| Unknown applications |
Remove them through Windows Apps or Programs and Features |
| Suspicious processes |
Research the file location before ending or deleting a process |
| Startup entries |
Disable unfamiliar entries after confirming they are not system components |
| Browser extensions |
Remove extensions you did not install or no longer trust |
| Quarantined files |
Keep them isolated until the system has been tested |
Restart Windows normally after the scan completes, then run another scan outside Safe Mode. A threat that disappears temporarily may return when regular services and scheduled tasks load again. If detections continue, use Microsoft Defender Offline or a trusted rescue environment rather than repeatedly deleting files manually.
Remove persistence and browser changes
Malware often survives through more than one location. In normal Windows mode, review Settings > Apps > Installed apps and uninstall software installed shortly before the problem began. Avoid removing Microsoft components or drivers unless a reliable security tool specifically identifies them as malicious.
Check Task Manager > Startup apps, the browser’s extension page, and scheduled tasks for unfamiliar entries. A suspicious filename alone is not proof of infection; verify its publisher and file path before taking action. Files inside temporary folders, user profile application-data directories, or randomly named folders deserve extra scrutiny, especially when linked to a recent alert.
Reset altered browser search engines, home pages, and notification permissions. Clear malicious site permissions and remove unknown proxy settings. If redirects continue after extensions are removed, create a fresh browser profile or reset the browser, while preserving only bookmarks and other known-clean data.
Return to normal operation safely
After cleanup, restart the computer normally and confirm that Windows Security is active, browser redirects have stopped, and unfamiliar processes no longer reappear. Install pending Windows updates and update browsers, document readers, media players, and other frequently targeted software.
Use these practical safeguards to reduce the chance of another infection:
- Keep real-time antivirus protection enabled and allow its definitions to update automatically.
- Download programs only from official websites and choose custom installation when available.
- Use separate, regularly tested backups, including an offline or disconnected copy of important files.
- Remove pirated software, key generators, and unknown browser extensions.
- Enable multi-factor authentication for email, cloud storage, and other important accounts.
If malware returns after cleanup, avoid repeatedly resetting the system without preserving evidence. Record detection names, suspicious file paths, and timestamps, then consider a clean Windows installation after securing personal files. A professional incident-response specialist may be appropriate when business systems, financial data, or multiple devices are affected.
Run one final full scan, reconnect external storage only after it has been checked, and monitor the computer for several days. Prompt action, reliable backups, and cautious software habits make Safe Mode cleanup far more effective when Windows is affected by malware.