In the first 60 minutes after discovering ransomware, a small office should isolate the affected machine without shutting it down, photograph all evidence before taking any other action, and call a managed IT or incident response provider before attempting recovery. Whether the event costs one day or one month of operations depends almost entirely on whether clean, tested backups exist and whether a response plan was in place before the attack began.
The ransom note is on the screen. Your stomach drops. Every instinct says do something — restart the computer, call your nephew who's good with tech, maybe just pay and get it over with. All three responses can make the situation significantly worse.
Here is what to do instead, minute by minute.
Minutes 0–5: Stop. Look. Do not touch.
Ransomware encrypts files while it spreads. Every second the infected machine stays connected to your network, the attack surface grows. Before you pull any plugs, take out your phone and photograph the ransom note on screen. That image is evidence. Note the exact time, the machine involved, and what you were doing when the note appeared.
Do not click "pay now." Do not click anything on the infected machine.
Minutes 5–15: Isolate the infected machine — not the whole office
Disconnect the affected computer from your network immediately:
- If wired: unplug the ethernet cable from the back of the machine.
- If wireless: disable Wi-Fi on that machine only, or physically remove it from the room.
- If a network-attached storage device or shared file server shows encrypted folders, disconnect it the same way.
Do not shut the machine down. Ransomware variants increasingly delete themselves after encrypting files. A powered-on machine may still hold forensic artifacts — active processes, memory contents — that an incident response professional can use. Shutting it down destroys that evidence and can complicate recovery.
Leave the router and internet connection running for every other machine in the office. Your team needs access to Microsoft 365 and cloud systems for the next steps.
Minutes 15–25: Check your Microsoft 365 environment — from a clean device
Open a browser on an unaffected machine and sign in to the Microsoft 365 admin center at admin.microsoft.com. You are looking for two things:
- Microsoft Defender for Business alerts. M365 Business Premium includes Defender for Business. Check the security dashboard for active threat detections and which endpoints, if any, are flagged beyond the machine you already isolated.
- OneDrive Files Restore. OneDrive for Business includes a Files Restore feature that lets a user roll back their OneDrive to any point within the past 30 days. If the encrypted files lived in OneDrive, a restore point may already exist. Confirm the option is available. Do not restore yet.
Do not sign in to Microsoft 365 from the infected machine under any circumstances.
Minutes 25–40: Locate your backups — and leave them alone for now
Your recovery outcome hinges on one question: where are your backups, and when were they last tested? Work through this list on paper:
- OneDrive version history. Files stored in OneDrive retain version history. Check whether affected files show prior clean versions in the file's version history panel.
- Dedicated cloud or managed backup. If your office uses a separate backup service, identify the most recent restore point and the date of the last successful test restore.
- External drives. Drives that were physically disconnected at the time of the attack are likely clean. Leave them unplugged until an IT professional confirms the environment is clear.
Write down every restore point you find. Do not start restoring files. Ransomware can persist inside backed-up data, and restoring to an unclean environment reinfects everything you just recovered.