Restore Your OneDrive and Ransomware Basics
Recognize a ransomware attack on your files, report it the right way, and use Restore your OneDrive to roll back many files at once.
By the end of this lesson you can
- Recognize signs that ransomware or a bad sync changed many files
- Know who to tell first at work, and why you don't try to fix it alone
- Use Restore your OneDrive with a date preset or a custom activity
- Explain what restoring does to files created after the restore point
Presentation Slides
Review the slides below, then complete the reading and challenge.

Lesson Notes
Read through the key concepts before you try the challenge.
When many files go wrong at once
You open OneDrive first thing in the morning.
Overnight, five front desk files were renamed to end in .locked, none of them open, and a new file called READ_ME_TO_RECOVER.txt is demanding payment. Luis in IT confirms it: an infected home laptop that was synced to a coworker's account reached shared files. He has cleaned the laptop and asks you to roll the files back.
Your task: Report it, then use Restore your OneDrive to undo the attack without undoing more than necessary.
Ransomware is malicious software that encrypts or scrambles files so they can't be opened, then demands money to unlock them. Signs include many files renamed with an unfamiliar extension, files that won't open, and a new note asking for payment. A sync accident (someone deleting or overwriting a whole folder) can look similar.
Restore your OneDrive
Restore your OneDrive rolls back everything that changed in your OneDrive after a point you choose, within the last 30 days. Work or school accounts have it; for personal accounts it needs a Microsoft 365 subscription.
- Sign in to OneDrive on the web. Work or school account: select Settings (gear) › Restore OneDrive. Personal account: select Settings › Options › Restore your OneDrive.
- Under Select a date, choose a preset (Yesterday, One week ago, Three weeks ago) or Custom date and time.
- Use the activity chart and the activity feed to review what changed. With Custom date and time, select the earliest activity you want to undo; every activity after it is selected too.
- Select Restore and confirm.
| Item | After the restore |
|---|---|
| Files changed after the restore point | Go back to how they were |
| Files deleted after the restore point | Come back |
| Files created after the restore point | Move to the Recycle bin, where you can still restore them |
| Files permanently deleted from the Recycle bin | Can't be recovered |
Put the response in order
Drag these steps into the order you should do them after a ransomware attack at work.
Drag each card into place, or tap a card and then tap where it goes.
- 1.
- 2.
- 3.
- 4.
- 5.
Ransomware detection for Microsoft 365 subscribers
With a Microsoft 365 subscription on a personal account, Microsoft 365 can detect a ransomware attack on your OneDrive files. You get a notification on your device and an email, and when you go to restore, a suggested restore date is filled in for you. (Microsoft says non-subscribers get their first detection and recovery free.)
Knowledge Check
You find dozens of front desk files renamed to end in .locked and a payment note. What do you do first?
After you restore your OneDrive to yesterday at 9 PM, what happens to a file you created this morning?
Practice Simulation
Practice what this lesson taught in a working copy of the app. Tasks appear under the window, just like GMetrix.
Practice simulation
Roll back a ransomware attack
Overnight, five front desk files were renamed to end in .locked and a ransom note appeared. You reported it, and Luis in IT has cleaned the infected laptop. Now roll your OneDrive back to just before the attack.
Loading the simulation...
Challenge
Apply what you've learned in this lesson.
Don't restore your real OneDrive for practice; it would undo your real work. Look, then practice the restore in the Challenge Lab.
- Sign in to OneDrive on the web with your school account and open Settings › Restore OneDrive (personal accounts: Settings › Options › Restore your OneDrive).
- Choose One week ago under Select a date and look at the activity chart and feed. Take a screenshot. Then leave the page without selecting Restore.
- Do the full restore in the Challenge Lab below: report the attack, roll back to the earliest bad activity, and remove the ransom note.
Challenge Lab
School computers block some of these settings. Do the challenge here in a simulated computer instead. When you finish, enter your name and print or save your results to submit.
Practice simulation
Challenge Lab: Restore your OneDrive after an attack
Challenge Lab. A ransomware attack renamed five front desk files overnight. IT has cleaned the infected device. Review the activity, roll back to the earliest bad activity, confirm the files are back, and remove the ransom note.
Loading the simulation...
Finished this lesson?
Progress is saved in this browser only. It is not a grade — official progress lives in Brightspace.