If files on your Windows computer were infected with malware but you sync them to Google Drive, you may be able to recover those files.
Step 1: Download the latest Microsoft security updates
Before you restore your files, make sure you remove the malware from your computer.
See information on the Windows security update.
Step 2: Try to restore files from the trash
Some harmful software puts your original files in the trash and replaces them with encrypted versions.
Learn how to get files out of your trash.
Step 3: Restore older versions
If your files aren’t in the trash, you can try to restore an older version from drive.google.com.