Restore Files and Folders in OneDrive for Business
Question details
The user wants to know whether OneDrive for Business supports rolling back files and folders after accidental changes or ransomware activity.

- Product
- OneDrive for Business
- Device & OS
- not provided
- Scenario
- Recover an earlier state of files and folders after unwanted changes.
- Observed behavior
- OneDrive Restore can return an entire OneDrive to an earlier point within the previous 30 days.
Sign in to OneDrive on the web with the affected work or school account and identify when the unwanted changes began. If ransomware is involved, remove the malware from affected devices before restoring files.
Restore the Entire OneDrive to an Earlier Point
Use OneDrive Restore to undo widespread file and folder changes from the previous 30 days.
This rolls back actions across the OneDrive, not just a single file. Review the activity history carefully so you choose a point before the unwanted changes.
Sign in to OneDrive on the web, select Settings, and choose Restore your OneDrive. If the option is not visible, select Options and look for Restore your OneDrive.
On the Restore page, choose a date from the dropdown or select Custom date and time. Use the activity chart and list to find a point before the unwanted changes.
Select Restore and confirm the action. When it finishes, open the affected files and folders in OneDrive to check their contents.

Restore a Previous Version of One File
Use version history when only one file needs to be rolled back.
Edit Recovered Office Files with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move existing documents into WPS. Use OneDrive to perform the rollback; WPS does not replace OneDrive Restore.

Frequently Asked Questions
Can I roll back all of my OneDrive for Business files at once?
Yes. In OneDrive on the web, select Settings > Restore your OneDrive and choose a point within the previous 30 days.
How do I restore just one file?
Find the file in OneDrive, open its More options menu, and select Version history. Choose an available earlier version and select Restore.
What if I cannot find Restore your OneDrive?
Check Settings > Options for the restore option. If it is still unavailable, contact your Microsoft 365 administrator to check your access.
Should I restore OneDrive immediately after a ransomware attack?
First remove the malware from affected devices. Then use Settings > Restore your OneDrive to select a point before the ransomware changes.




