It's kind of complicated, and involves loading a LIVE Ubuntu Session, but it CAN be done. ***WARNING: THIS MAY INVOLVE CHANGING BIOS SETTINGS*** However, Windows should automatically activate if you fresh install the same version that came with it. In the event that it does not:
1. Download any version of Ubuntu on an ISO, and use a program like Unetbootin or Rufus to copy it to an empty USB of at least 4 GB in size (<-will format)
2. Boot your computer off of it*
Shut down your computer and turn it back on, IMMEDIATELY pressing the key to get into the boot menu (may be f2, f12, esc, or others. Search online by manufacturer)
*hold SHIFT and click Restart by clicking your name on the start screen (I haven't ran 8.1 in a while so I may be stale) and find UEFI Firmware settings. Once in the setup, disable secure boot (and/or enable Legacy/CSM boot; windows should still boot in either mode). Do this only if the USB fails to boot.
3. Once in Ubuntu, choose Try Ubuntu, and open a terminal (Windows key and type "terminal").
4. Run the command:
sudo cat /sys/firmware/acpi/tables/MSDM
Jackpot.