I made a huge mistake while using ExifTool to change location data on a photo. Instead of just updating one photo, I accidentally applied the command to the entire Pictures folder. Is there a way to undo this? I'm really worried about losing my data!
4 Answers
You might want to restore your files from backups if you have them. If you're using OneDrive, you can easily recover previous versions. Just check your OneDrive app for options to restore. It sounds like you might be in luck if nothing in the folders was affected.
Also, if you have backups on an external hard drive, just plug it in and look for the most recent copies of your pictures!
Just a heads up, ExifTool isn't a PowerShell cmd-let, so be careful jumping between the two. Make sure you're on solid ground regarding what each tool can and can't do.
Remember, changing files through PowerShell doesn't have a built-in undo feature. Treat this more like a Windows tech support issue. Searching online for help or looking through tech forums could give you better guidance!
It's tough to assist without knowing the exact command you used. It would really help if you could share the specific code you applied that caused this issue. The more precise you are, the better advice you'll get!
I totally get that, it was really just a simple mistake on my part. What I did was run: .exiftool -gpslatitude="**insert here**" -gpslongitude="**insert here**" -gpslatituderef="N" -gpslongituderef="E" "C:Usersinsert hereOneDrivePictures" without specifying a file name. Lesson learned!
Ah, I see where it went wrong! Always double-check these commands before running them to make sure you're targeting the right files!

Yeah, I can help with OneDrive! You just need to go to the OneDrive website, navigate to the Pictures folder, and there should be an option to view version history. From there, you can restore your files to an earlier state.