How to Get Rid of Virus on Laptop: Safe Steps That Work
How to get rid of virus on laptop safely: isolate the PC, run an offline scan, and secure your accounts after cleanup.
A browser window opens on its own, the fan spins up while the desktop sits idle, and a red banner announces that five threats were found. You didn't install anything. Now you're deciding whether to shut the laptop down, pay the cleaner on screen, or start deleting files.
Most laptops that arrive with a "virus" are in exactly this state: worried owner, unclear evidence, browser full of tabs. Some of them are infected. Plenty aren't. Either way, the mistake is acting on the pop-up instead of on the evidence.
The order that works is unglamorous. Confirm what you're looking at, protect anything you might need later, remove the infection in a sequence that survives a reboot, secure the accounts the malware could have touched, then decide whether the machine is trustworthy. Here is how to get rid of a virus on a laptop without destroying the things you'll wish you'd kept.
Spot a Laptop Virus Before You Act
A sluggish laptop with a hot fan and a pop-up every ten minutes feels like malware. Often it's 8 GB of memory doing the work of 16, a dozen programs loading at sign-in, a runaway browser extension, or a drive that's starting to fail. Those need a cleanup, not an incident response.
One symptom alone is weak evidence. Two or more together, say a toolbar you never installed plus a program in the apps list you don't recognize, is a much stronger signal.
| Symptom | Likely cause | First check |
|---|---|---|
| Slow start-up and sluggish apps | Too many startup programs, low memory or malware | Review startup apps and Task Manager CPU and memory use |
| Pop-ups or new browser toolbars | Adware or an unwanted browser extension | Remove unknown extensions and reset browser settings |
| Programs you don't recognize in the apps list | Bundled software or dropped malware | Uninstall only programs you don't recognize, then scan |
| Security software turned off | Malware disabling defenses | Treat as a confirmed infection and isolate the laptop before scanning |
| Fan running hard or random crashes | Background process such as cryptomining | Check Task Manager for unfamiliar processes at high CPU |
| Files renamed or locked with a ransom note | Ransomware | Isolate the laptop immediately and handle it as ransomware |
The five-minute checks behind the table
- Task Manager: press Ctrl+Shift+Esc, open the Processes tab, and sort by CPU. Look for a process at sustained high usage whose name you can't place. Note it, don't kill it yet.
- Installed apps: Settings, then Apps, then Installed apps. Sort by install date. Anything installed the same day the symptoms started deserves a look.
- Browser extensions: open the extensions page in Chrome, Edge or Firefox, and remove anything you don't recognize. Then check the default search engine and homepage, because hijackers change both.
- Protection history: Windows Security, Virus & threat protection, Protection history. Past detections and their outcomes are listed there, including cleanup that didn't finish.
The single sign that settles the question is a security tool that switched itself off and you didn't do it. Real-time protection disabled, antivirus vanished from the tray, a browser policy you never set. Something with administrator rights made those changes. Treat it as a confirmed infection, isolate the laptop, and move to removal rather than waiting for more evidence.
If you want the longer version of what different infections do to a machine, file damage, data theft and the performance hit, our guide to what a virus does to a computer walks through it.
What Not to Destroy
The reflex is to shut the laptop down and wipe it. That order is sometimes exactly wrong: it can destroy the evidence you need and, in a ransomware case, remove the only map you have of what was touched.
CISA's ransomware guidance is to isolate the affected computer first, by unplugging Ethernet or removing it from Wi-Fi, and to power it down only when a network disconnection isn't possible. Shutdown also eliminates volatile memory evidence that can show how the infection got in, according to the CISA StopRansomware guide.
Isolate first, investigate second, wipe last. Pulling the cable stops the spread and keeps the clues that tell a technician, an insurer or the police what happened.
Before you close anything, photograph the ransom note, the error messages and anything on screen that looks wrong. Use your phone, not the infected laptop. Don't delete encrypted files and don't reinstall Windows yet if an employer, an insurer, a lawyer or a fraud report might need the state of the machine preserved.
Then widen the view. Which other household devices share the same router? Are there mapped drives, a NAS or cloud folders the laptop could write to? An infection that reached a shared drive is a different job from one that stayed on the laptop.
| Infection type | Immediate action | Mistake to avoid |
|---|---|---|
| Adware or browser hijacker | Disconnect, run a full scan and reset browser settings | Paying a fake cleaner or calling a number shown in a pop-up |
| Spyware or credential stealer | Disconnect, scan, then secure accounts from another device | Changing passwords on the infected laptop |
| Ransomware | Isolate from the network, photograph ransom notes and screens, keep power on if possible | Deleting encrypted files or wiping the system before reporting |
| Encrypted files with unknown cause | Isolate and record error messages before any restore | Reconnecting backup drives before their integrity is checked |
Backups only help if they were offline or otherwise out of reach of the infected machine. A drive that was plugged in during the encryption event is not a backup, it's another casualty.
Which brings up the question people ask most: can I reconnect the backup drive to check my files? Not yet. Wait until the infection is contained and the backup's integrity and restore path have been assessed, because a routine plug-in can re-infect a freshly cleaned laptop in seconds.
How to Remove a Laptop Virus Step by Step
A suspected infection calls for a staged cleanup done in a fixed order. Every step exists because a specific mistake undoes it, and the slip that breaks each one is flagged as you go.

- Disconnect from the network. Unplug Ethernet or switch Wi-Fi off. This cuts command-and-control traffic and keeps the infection from reaching other devices on your network. The common slip is leaving Wi-Fi on "just to download the scanner", which lets a live infection keep taking orders while you work.
- Save your work and close applications. A scan that needs a reboot will otherwise cost you open documents, and closed apps release file locks so the scanner can read what sits on disk.
- Update definitions from a trusted connection if that's safe. An outdated definition set is the most common reason a scan comes back clean while the laptop clearly isn't. If you can't update safely, a second device and a fresh installer are the alternative.
- Run the Microsoft Defender Offline scan. In Windows Security, go to Virus & threat protection, then Scan options, choose Microsoft Defender Offline scan, and select Scan now, as laid out in the Microsoft Defender Offline documentation. The laptop reboots into a separate environment outside the normal Windows kernel, which is why bootkits and rootkits that interfere with the Windows shell or master boot record have a harder time hiding there.
- Review Protection history and quarantine every detection. Read the outcome line by line rather than the headline. A detection marked blocked tells a different story from one where cleanup started and stopped.
- Install Windows and application updates. Malware nearly always arrives through a weakness that already has a patch. Removing the infection while leaving the hole open invites the same visitor back.
- Plan your credential changes on a separate, clean device. Email, banking and administrator passwords come first, and the session cleanup that follows them matters just as much as the passwords themselves.
A scan alone does not finish the job. Steps 5 through 7 are where most cleanup attempts fail.
What a clean result actually looks like
Three things, together. Protection history shows no active detections after a normal restart. No alerts return within a day of ordinary use. Nothing has flipped itself back on: no browser redirects, no unfamiliar extensions, no security toggle that resets. Offline scan effectiveness depends on current definitions, the threat type and how intact the system was to begin with, so judge by those three signs rather than by how fast the machine feels.
If you'd rather follow along visually, this walkthrough covers the same sequence.
On a Mac, same order with different tools
Mac owners follow the identical sequence: disconnect Wi-Fi, save work, then open Activity Monitor and look for unfamiliar processes at high CPU. Check Login Items for startup entries you didn't add, and Privacy & Security for apps you never approved. Run the built-in or a trusted third-party scan, restart, and confirm the same healthy-result checks before touching a single password.
Secure Your Accounts After the Cleanup
A clean scan does not undo stolen passwords, cookies or session tokens. Modern infostealers lift browser credentials and live sessions, and Microsoft describes that stolen access as part of a commercialized cybercrime economy where it gets sold and reused for account takeover, ransomware or data theft, as detailed in the Microsoft Digital Defense Report 2025. The session a thief copied can still work long after the malware is gone. That is why removing the infection is only half the job.
Timing rule: change passwords from a device that was never infected. Doing it on the suspect laptop can simply expose the replacement credentials.

Work through this from your phone or another computer you trust, in the order below. The first three steps close the routes an attacker would use to undo everything that follows.
- Email first. It's the reset route for almost everything else, so a compromised inbox hands over the rest. Change the password, then check the account recovery details for anything you did not add.
- Revoke active sessions. In each account's security settings, sign out of all devices. A password change alone often leaves existing sessions alive, and a stolen session token bypasses the new password entirely.
- Remove MFA methods, recovery addresses and phone numbers you didn't add. Attackers register their own so they can walk back in after you lock them out.
- Review recent sign-ins and financial activity. Flag locations you've never been and transactions you don't recognize, then call the bank about anything unexplained rather than waiting for a statement.
- Change banking, cloud storage and password-manager passwords, then clear saved passwords from the infected laptop's browser so a leftover copy can't be reused.
- Turn on phishing-resistant MFA wherever it's offered. A passkey or hardware key is much harder for an attacker to bypass than a password plus a texted code, because there is nothing to copy, forward or intercept. Enable it on your email and banking accounts first, where a takeover costs you most.
Signs the account needs professional help rather than another scan: logins from places you've never been, recovery details changed without you, mail sent from your address that you didn't write, or an account that keeps locking you out after every reset. At that point the fix runs through the provider's account-recovery process, not the laptop.
Choose Reputable Security Software and Stay Protected
One current, reputable scanner beats a drawer full of free cleaners. NIST's guidance for desktops and laptops names the three eradication tool types that do the work: antivirus software, spyware-detection and removal utilities, and patch-management software. It also notes that automated eradication, such as triggering scans remotely, is far more efficient than manual cleanup machine by machine, according to NIST Special Publication 800-83.
On Windows, leave Microsoft Defender running with real-time protection and current definitions, or run one reputable third-party suite. Don't run two antivirus programs side by side. They lock each other out of the same files, slow everything down, and can leave you with two half-finished cleanups.
There's a detail in Protection History worth knowing: Windows distinguishes a threat that was blocked and removed from one where remediation is incomplete, meaning the tool attempted cleanup and couldn't finish. An alert that disappears is not proof of anything. If the outcome says incomplete, run a full or offline scan and investigate rather than closing the window.
If you're unsure what real-time protection is doing on your machine, our explainer on what antivirus software does covers scanning, quarantine and the defenses that sit between you and a download.
Five habits cut most reinfections, and all of them fit into this week:
- Turn on automatic updates for Windows, your browser and the apps you use. Most successful infections walk through a door that already had a patch.
- Use a standard user account for daily work. Administrator rights only when installing something, because malware inherits whatever rights your account has.
- Treat attachments and links as unverified until you've checked the sender through another channel. Unsafe email attachments, unsafe websites and infected USB drives remain the three reliable delivery routes.
- Refuse unknown USB drives, including the free one from a conference bag.
- Keep one backup offline, on a drive that's disconnected when you're not backing up.
Ignore cleaners that manufacture urgency with countdown timers, list infections you can't verify, or print a phone number to call. Legitimate security tools don't ask you to phone a call center about a scan result.
Confirm the Cleanup and Decide Your Next Step
A finished cleanup leaves evidence behind, so spend ten minutes looking for it. Run a follow-up scan for malware after two or three days of normal use, then confirm four things.

- No active detections in Protection history after a normal restart.
- No unknown startup entries or browser extensions left behind.
- Windows and application updates fully installed, with no pending restarts.
- Every key account using new credentials, with old sessions revoked.
That last item deserves emphasis. Passwords and session tokens stolen before the cleanup stay usable after the malware is gone, so a laptop can come back clean while your email account remains open to whoever took it. Account recovery is part of the removal job, not a chore for later.
Hold all four checks for several days of ordinary browsing and the laptop can stop being treated as infected.
Persistence looks different. Detections that return after a restart, security controls that switch themselves off, an administrator account you didn't create, redirects that continue after cleanup, or Protection history entries reading remediation incomplete all mean the infection is still live. Check the install dates of programs and the dates on account changes to pin down when it started, because that date decides which backups you can trust.
NIST frames this as a four-phase incident process, preparation, detection and analysis, containment or eradication, and recovery, and notes that eradication may need several techniques at once because an infection can involve multiple files, processes, accounts or exploited weaknesses, per NIST SP 800-83 Revision 1. For a fully compromised laptop, its recommended recovery options are a rebuild from scratch or a restore from a known-good backup, since a single scan cannot be assumed to have removed every alteration.
The decision rule follows from that. If persistence signs continue, or you can't trust the machine, rebuild it or restore from a backup made before the infection date. A missing pop-up proves nothing, so decide on the signs rather than on how the laptop feels. Bring in professional help when encrypted files, unexplained account activity or money at risk are involved.
If you want a technician to walk the whole sequence with you, 247TechTeam offers a Quick Fix Session at $49.00, one remote session of up to 60 minutes on one computer, Windows or Mac, with a session summary sent by email, and its antivirus includes a 7-day free trial with no credit card required. Technicians never ask for passwords or payment details during a session and never run anything on your computer without explicit consent, so treat any unsolicited call about your laptop as a scam.
When the checklist leaves you with an alert you can't explain, a browser that keeps redirecting, or accounts that need securing in the right order, 247TechTeam can take it from there. Antivirus protection for Windows and Mac runs alongside remote help from certified technicians. To start a remote support session, use the remote support entry point on the 247TechTeam website, and the technician can walk you through the remaining cleanup steps on your computer.