Restoring VM snapshots can mess up Microsoft activation and you can end up with a legit licence getting revoked.
Here’s a quick guide on where to download Windows+Office and activate both of them permanently.
Everything is based on the awesome Microsoft Activation Scripts site, I’m just highlighting how easy it is
Disclaimer; probably don’t do this unless you do have an actual licence (although it works fine and there’s no way for anyone to tell)
Download
Windows/Office ISOs are listed on the the Genuine Installation Media page. All of them should work but the ones with the symbol are recommended.
When you’re installing either skip the product key step or close the window.
Activation
Pop open a Terminal or Command Prompt and enter
irm https://massgrave.dev/get | iex
to download and launch the activator.
Once it loads select option 1, HWID, to activate Windows then once that’s done option 2, Ohook, for Office.
After you reboot it should all be fully legit.