Malware/Worm and ransomware

Remove WannaCry and recover encrypted Windows files

PC911 editorialReviewed

WannaCry combines file encryption with the ability to spread between vulnerable machines. If files are changing or a ransom screen appeared, unplug the network immediately. Keep backup disks disconnected while you find out which computers were reached.

Which situation matches your files or alert?

A scanner blocked an unused copy
Record the affected file and successful action. Check whether the copy was opened on another PC. A detection in an old archive alone does not show that your documents were encrypted.
Documents are unreadable on one or more PCs
Disconnect affected devices and pause access to shared folders. On a business network, alert the team that runs file servers before starting scans or erasing disks.

How to remove WannaCry manually

  1. Preserve the damaged set

    Photograph the ransom screen and keep a separate copy of encrypted files if no intact backup is known. Keep filenames and extensions as they are.

  2. Recover Windows and patch peers

    Rebuild a confirmed infected home PC from trusted media. Apply supported Windows updates and have every previously connected Windows device checked before reconnecting the recovered PC.

  3. Restore useful files

    Choose an offline backup created before the first changed file. Restore a small folder to the recovered computer, open representative documents, and only then restore the rest.

If Windows blocked a file before it ran
  1. Confirm the action. Open Start → Windows Security → Virus & threat protection → Protection history. Expand the matching entry and compare its time and affected path. If action is required, choose Quarantine or Remove as offered. Leave an already quarantined item in quarantine.
  2. Remove unused copies and check. Delete only identified, unrun copies from Downloads or extracted folders. For a replaceable archive containing the file, remove the entire archive. In Scan options run a Full scan, then review Protection history for a new occurrence or a failed action.

Virus and threat protection and scan options

If the guide calls for a clean Windows installation
  1. Preserve what you need. Keep the affected PC offline. On a work machine, contact IT before scanning, restarting or erasing it. On a personal PC verify a readable backup of essential data and locate your BitLocker recovery key if encryption is enabled. Preserve any encrypted originals or evidence first. If the only copy of important data is on this PC, arrange data recovery before proceeding.
  2. Make trusted installation media. On a known-clean Windows computer use Microsoft’s media creation instructions and a blank USB drive of at least 8 GB. Creating the installer erases that USB. Disconnect backup drives and other removable storage from the affected PC.
  3. Boot from the USB and reinstall. Start the affected PC using its manufacturer’s boot menu and select the installation USB. In Windows Setup choose Install Windows and the clean-install option. This erases apps, settings and files on the selected system drive. Confirm the intended disk by its capacity and the manufacturer’s instructions. If it is unclear which disk is Windows, stop at the drive-selection screen. Follow Microsoft’s disk-selection steps linked below, then complete Setup.
  4. Update and restore in small batches. Install Windows updates and current security definitions first. Download apps anew from their publishers. Scan selected personal files before restoring them, and check Windows Security after a restart. Keep original backup and evidence copies until you have opened and verified the data you need.

Automatic scanning with Malwarebytes

Malwarebytes can quarantine detected WannaCry components. Encrypted documents need an intact backup or a separately verified recovery option for the particular files.

PC911 may earn a commission if you buy through this link. You can run an on-demand scan with Malwarebytes Free.

Get Malwarebytes for Windows
  1. Start the scanner. Open the official Malwarebytes installer through PC911’s link. On a compromised PC use a trusted device to obtain the installer. If setup needs internet on a PC you have isolated, keep it offline and follow the recovery procedure above or your IT team’s instructions.
  2. Quarantine detections. Open Malwarebytes for Windows and choose Scan on the dashboard. When the Threat Scan finishes, review the detected items, select the unwanted ones and click Quarantine. Restart if prompted.
  3. Check the result. Run a second scan and open View report or View Scan Report. If a detection returns, note its exact path and time and follow the confirmed-infection procedure above.

How to verify recovery

Check that restored photos and documents open normally and that files on shared storage keep their original names after reconnection. An obsolete machine that cannot receive security fixes should stay isolated.