←Module 4
Lesson · 15 min

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
▶ Practice simulation on this page▶ Challenge Lab

Presentation Slides

Review the slides below, then complete the reading and challenge.

When many files go wrong at once
1 / 6

Lesson Notes

Read through the key concepts before you try the challenge.

When many files go wrong at once

On the job

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.

At work, report it first. Tell your supervisor and IT immediately, don't pay anything, and don't try to fix it alone. Infected devices must be cleaned before you restore files, or they can be encrypted again. Microsoft's own steps start with confirming the files are infected and cleaning every device with antivirus software before restoring.

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.

  1. Sign in to OneDrive on the web. Work or school account: select Settings (gear) › Restore OneDrive. Personal account: select Settings › Options › Restore your OneDrive.
  2. Under Select a date, choose a preset (Yesterday, One week ago, Three weeks ago) or Custom date and time.
  3. 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.
  4. Select Restore and confirm.
ItemAfter the restore
Files changed after the restore pointGo back to how they were
Files deleted after the restore pointCome back
Files created after the restore pointMove to the Recycle bin, where you can still restore them
Files permanently deleted from the Recycle binCan't be recovered
What restoring does
Every activity after the restore point is undone, including good work. Pick the earliest bad activity, not an earlier date, and redo any legitimate changes afterward. If you restored to the wrong point, run Restore again and select the restore activity to undo it.
Drag and drop: put in order

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. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 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

Check your understanding

You find dozens of front desk files renamed to end in .locked and a payment note. What do you do first?

Check your understanding

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.

  1. Sign in to OneDrive on the web with your school account and open Settings › Restore OneDrive (personal accounts: Settings › Options › Restore your OneDrive).
  2. 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.
  3. Do the full restore in the Challenge Lab below: report the attack, roll back to the earliest bad activity, and remove the ransom note.
On a school computer, do this in the Challenge Lab below. Deliverable: Submit your Challenge Lab results page (Print or save results on the finish card), plus your screenshot from step 2 if you took it, to your instructor or course folder.

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.